Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/bus.h
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
enum intr_polarity { | enum intr_polarity { | ||||
INTR_POLARITY_CONFORM = 0, | INTR_POLARITY_CONFORM = 0, | ||||
INTR_POLARITY_HIGH = 1, | INTR_POLARITY_HIGH = 1, | ||||
INTR_POLARITY_LOW = 2 | INTR_POLARITY_LOW = 2 | ||||
}; | }; | ||||
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; | |||||
void (*destruct)(struct intr_map_data *); | |||||
}; | |||||
/** | /** | ||||
* CPU sets supported by bus_get_cpus(). Note that not all sets may be | * CPU sets supported by bus_get_cpus(). Note that not all sets may be | ||||
* supported for a given device. If a request is not supported by a | * supported for a given device. If a request is not supported by a | ||||
* device (or its parents), then bus_get_cpus() will fail with EINVAL. | * device (or its parents), then bus_get_cpus() will fail with EINVAL. | ||||
*/ | */ | ||||
enum cpu_sets { | enum cpu_sets { | ||||
LOCAL_CPUS = 0, | LOCAL_CPUS = 0, | ||||
INTR_CPUS | INTR_CPUS | ||||
▲ Show 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | |||||
int bus_generic_print_child(device_t dev, device_t child); | int bus_generic_print_child(device_t dev, device_t child); | ||||
int bus_generic_probe(device_t dev); | int bus_generic_probe(device_t dev); | ||||
int bus_generic_read_ivar(device_t dev, device_t child, int which, | int bus_generic_read_ivar(device_t dev, device_t child, int which, | ||||
uintptr_t *result); | uintptr_t *result); | ||||
int bus_generic_release_resource(device_t bus, device_t child, | int bus_generic_release_resource(device_t bus, device_t child, | ||||
int type, int rid, struct resource *r); | int type, int rid, struct resource *r); | ||||
int bus_generic_resume(device_t dev); | int bus_generic_resume(device_t dev); | ||||
int bus_generic_resume_child(device_t dev, device_t child); | int bus_generic_resume_child(device_t dev, device_t child); | ||||
int bus_generic_map_intr(device_t dev, device_t child, int *rid, | |||||
rman_res_t *start, rman_res_t *end, | |||||
rman_res_t *count, struct intr_map_data **imd); | |||||
int bus_generic_setup_intr(device_t dev, device_t child, | int bus_generic_setup_intr(device_t dev, device_t child, | ||||
struct resource *irq, int flags, | struct resource *irq, int flags, | ||||
driver_filter_t *filter, driver_intr_t *intr, | driver_filter_t *filter, driver_intr_t *intr, | ||||
void *arg, void **cookiep); | void *arg, void **cookiep); | ||||
struct resource * | struct resource * | ||||
bus_generic_rl_alloc_resource (device_t, device_t, int, int *, | bus_generic_rl_alloc_resource (device_t, device_t, int, int *, | ||||
rman_res_t, rman_res_t, rman_res_t, u_int); | rman_res_t, rman_res_t, rman_res_t, u_int); | ||||
▲ Show 20 Lines • Show All 475 Lines • Show Last 20 Lines |