Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/intr.h
Show All 28 Lines | |||||
#ifndef _SYS_INTR_H_ | #ifndef _SYS_INTR_H_ | ||||
#define _SYS_INTR_H_ | #define _SYS_INTR_H_ | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#define INTR_IRQ_INVALID 0xFFFFFFFF | #define INTR_IRQ_INVALID 0xFFFFFFFF | ||||
enum intr_map_data_type { | |||||
INTR_MAP_DATA_ACPI, | |||||
INTR_MAP_DATA_FDT, | |||||
INTR_MAP_DATA_GPIO, | |||||
}; | |||||
struct intr_map_data { | |||||
enum intr_map_data_type type; | |||||
size_t size; | |||||
}; | |||||
#ifdef DEV_ACPI | #ifdef DEV_ACPI | ||||
struct intr_map_data_acpi { | struct intr_map_data_acpi { | ||||
struct intr_map_data hdr; | struct intr_map_data hdr; | ||||
u_int irq; | u_int irq; | ||||
enum intr_polarity pol; | enum intr_polarity pol; | ||||
enum intr_trigger trig; | enum intr_trigger trig; | ||||
}; | }; | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |