Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/interrupt.h
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, | ||||
error = bus_setup_intr(dev->bsddev, res, INTR_TYPE_NET | INTR_MPSAFE, | error = bus_setup_intr(dev->bsddev, res, INTR_TYPE_NET | INTR_MPSAFE, | ||||
NULL, linux_irq_handler, irqe, &irqe->tag); | NULL, linux_irq_handler, irqe, &irqe->tag); | ||||
if (error) { | if (error) { | ||||
bus_release_resource(dev->bsddev, SYS_RES_IRQ, rid, irqe->res); | bus_release_resource(dev->bsddev, SYS_RES_IRQ, rid, irqe->res); | ||||
kfree(irqe); | kfree(irqe); | ||||
return (-error); | return (-error); | ||||
} | } | ||||
list_add(&irqe->links, &dev->irqents); | list_add(&irqe->links, &dev->irqents); | ||||
if (name != NULL) | |||||
hselasky: Note that some drivers in FreeBSD may pass a NULL for name. | |||||
Done Inline ActionsAh! thanks I will fix it. anish: Ah! thanks I will fix it. | |||||
(void)bus_describe_intr(dev->bsddev, res, irqe->tag, "%s", name); | |||||
return 0; | return 0; | ||||
} | } | ||||
static inline int | static inline int | ||||
enable_irq(unsigned int irq) | enable_irq(unsigned int irq) | ||||
{ | { | ||||
struct irq_ent *irqe; | struct irq_ent *irqe; | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |
Note that some drivers in FreeBSD may pass a NULL for name.