Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/gpio/gpiobusvar.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
#define GPIO_INTR_CONFORM GPIO_INTR_NONE | #define GPIO_INTR_CONFORM GPIO_INTR_NONE | ||||
struct gpiobus_pin_data | struct gpiobus_pin_data | ||||
{ | { | ||||
int mapped; /* pin is mapped/reserved. */ | int mapped; /* pin is mapped/reserved. */ | ||||
char *name; /* pin name. */ | char *name; /* pin name. */ | ||||
}; | }; | ||||
#ifdef INTRNG | |||||
struct intr_map_data_gpio { | struct intr_map_data_gpio { | ||||
struct intr_map_data hdr; | struct intr_map_data hdr; | ||||
u_int gpio_pin_num; | u_int gpio_pin_num; | ||||
u_int gpio_pin_flags; | u_int gpio_pin_flags; | ||||
u_int gpio_intr_mode; | u_int gpio_intr_mode; | ||||
}; | }; | ||||
#endif | |||||
struct gpiobus_softc | struct gpiobus_softc | ||||
{ | { | ||||
struct mtx sc_mtx; /* bus mutex */ | struct mtx sc_mtx; /* bus mutex */ | ||||
struct rman sc_intr_rman; /* isr resources */ | struct rman sc_intr_rman; /* isr resources */ | ||||
device_t sc_busdev; /* bus device */ | device_t sc_busdev; /* bus device */ | ||||
device_t sc_owner; /* bus owner */ | device_t sc_owner; /* bus owner */ | ||||
device_t sc_dev; /* driver device */ | device_t sc_dev; /* driver device */ | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |