Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/interrupt.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | struct intr_handler { | ||||
char ih_name[MAXCOMLEN + 1]; /* Name of handler. */ | char ih_name[MAXCOMLEN + 1]; /* Name of handler. */ | ||||
struct intr_event *ih_event; /* Event we are connected to. */ | struct intr_event *ih_event; /* Event we are connected to. */ | ||||
int ih_need; /* Needs service. */ | int ih_need; /* Needs service. */ | ||||
CK_SLIST_ENTRY(intr_handler) ih_next; /* Next handler for this event. */ | CK_SLIST_ENTRY(intr_handler) ih_next; /* Next handler for this event. */ | ||||
u_char ih_pri; /* Priority of this handler. */ | u_char ih_pri; /* Priority of this handler. */ | ||||
}; | }; | ||||
/* Interrupt handle flags kept in ih_flags */ | /* Interrupt handle flags kept in ih_flags */ | ||||
#define IH_NET 0x00000001 /* Network. */ | |||||
#define IH_EXCLUSIVE 0x00000002 /* Exclusive interrupt. */ | #define IH_EXCLUSIVE 0x00000002 /* Exclusive interrupt. */ | ||||
#define IH_ENTROPY 0x00000004 /* Device is a good entropy source. */ | #define IH_ENTROPY 0x00000004 /* Device is a good entropy source. */ | ||||
#define IH_DEAD 0x00000008 /* Handler should be removed. */ | #define IH_DEAD 0x00000008 /* Handler should be removed. */ | ||||
#define IH_SUSP 0x00000010 /* Device is powered down. */ | #define IH_SUSP 0x00000010 /* Device is powered down. */ | ||||
#define IH_CHANGED 0x40000000 /* Handler state is changed. */ | #define IH_CHANGED 0x40000000 /* Handler state is changed. */ | ||||
#define IH_MPSAFE 0x80000000 /* Handler does not need Giant. */ | #define IH_MPSAFE 0x80000000 /* Handler does not need Giant. */ | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |