Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/interrupt.h
Show All 33 Lines | |||||
#include <linux/cpu.h> | #include <linux/cpu.h> | ||||
#include <linux/device.h> | #include <linux/device.h> | ||||
#include <linux/pci.h> | #include <linux/pci.h> | ||||
#include <linux/irqreturn.h> | #include <linux/irqreturn.h> | ||||
#include <linux/hardirq.h> | #include <linux/hardirq.h> | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/interrupt.h> | #include <sys/interrupt.h> | ||||
#include <sys/intr_compat.h> | |||||
typedef irqreturn_t (*irq_handler_t)(int, void *); | typedef irqreturn_t (*irq_handler_t)(int, void *); | ||||
#define IRQF_SHARED RF_SHAREABLE | #define IRQF_SHARED RF_SHAREABLE | ||||
int lkpi_request_irq(struct device *, unsigned int, irq_handler_t, | int lkpi_request_irq(struct device *, unsigned int, irq_handler_t, | ||||
irq_handler_t, unsigned long, const char *, void *); | irq_handler_t, unsigned long, const char *, void *); | ||||
int lkpi_enable_irq(unsigned int); | int lkpi_enable_irq(unsigned int); | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static inline int | static inline int | ||||
irq_set_affinity_hint(int vector, cpumask_t *mask) | irq_set_affinity_hint(int vector, cpumask_t *mask) | ||||
{ | { | ||||
int error; | int error; | ||||
if (mask != NULL) | if (mask != NULL) | ||||
error = intr_setaffinity(vector, CPU_WHICH_IRQ, mask); | error = intr_setaffinity(intr_get_event(vector), CPU_WHICH_IRQ, | ||||
mask); | |||||
else | else | ||||
error = intr_setaffinity(vector, CPU_WHICH_IRQ, cpuset_root); | error = intr_setaffinity(intr_get_event(vector), CPU_WHICH_IRQ, | ||||
cpuset_root); | |||||
return (-error); | return (-error); | ||||
} | } | ||||
/* | /* | ||||
* LinuxKPI tasklet support | * LinuxKPI tasklet support | ||||
*/ | */ | ||||
typedef void tasklet_func_t(unsigned long); | typedef void tasklet_func_t(unsigned long); | ||||
Show All 27 Lines |