Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/interrupt.h
Show All 28 Lines | |||||
*/ | */ | ||||
#ifndef _SYS_INTERRUPT_H_ | #ifndef _SYS_INTERRUPT_H_ | ||||
#define _SYS_INTERRUPT_H_ | #define _SYS_INTERRUPT_H_ | ||||
#include <sys/_lock.h> | #include <sys/_lock.h> | ||||
#include <sys/_mutex.h> | #include <sys/_mutex.h> | ||||
#include <sys/ck.h> | #include <sys/ck.h> | ||||
#include <sys/sysctl.h> | |||||
struct intr_event; | struct intr_event; | ||||
struct intr_thread; | struct intr_thread; | ||||
struct trapframe; | struct trapframe; | ||||
/* | /* | ||||
* Describe a hardware interrupt handler. | * Describe a hardware interrupt handler. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | |||||
void *intr_handler_source(void *cookie); | void *intr_handler_source(void *cookie); | ||||
int intr_setaffinity(int irq, int mode, void *mask); | int intr_setaffinity(int irq, int mode, void *mask); | ||||
void _intr_drain(int irq); /* LinuxKPI only. */ | void _intr_drain(int irq); /* LinuxKPI only. */ | ||||
int swi_add(struct intr_event **eventp, const char *name, | int swi_add(struct intr_event **eventp, const char *name, | ||||
driver_intr_t handler, void *arg, int pri, enum intr_type flags, | driver_intr_t handler, void *arg, int pri, enum intr_type flags, | ||||
void **cookiep); | void **cookiep); | ||||
void swi_sched(void *cookie, int flags); | void swi_sched(void *cookie, int flags); | ||||
int swi_remove(void *cookie); | int swi_remove(void *cookie); | ||||
/* For handling the core interrupt counters and names */ | |||||
extern int intr_event_sysctl_intrnames(SYSCTL_HANDLER_ARGS); | |||||
extern int intr_event_sysctl_intrcnt(SYSCTL_HANDLER_ARGS); | |||||
#endif | #endif |