Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/bus.h
Show First 20 Lines • Show All 472 Lines • ▼ Show 20 Lines | |||||
int bus_child_present(device_t child); | int bus_child_present(device_t child); | ||||
int bus_child_pnpinfo_str(device_t child, char *buf, size_t buflen); | int bus_child_pnpinfo_str(device_t child, char *buf, size_t buflen); | ||||
int bus_child_location_str(device_t child, char *buf, size_t buflen); | int bus_child_location_str(device_t child, char *buf, size_t buflen); | ||||
void bus_enumerate_hinted_children(device_t bus); | void bus_enumerate_hinted_children(device_t bus); | ||||
static __inline struct resource * | static __inline struct resource * | ||||
bus_alloc_resource_any(device_t dev, int type, int *rid, u_int flags) | bus_alloc_resource_any(device_t dev, int type, int *rid, u_int flags) | ||||
{ | { | ||||
return (bus_alloc_resource(dev, type, rid, 0ul, ~0ul, 1, flags)); | return (bus_alloc_resource(dev, type, rid, 0, ~0, 1, flags)); | ||||
} | } | ||||
static __inline struct resource * | static __inline struct resource * | ||||
bus_alloc_resource_anywhere(device_t dev, int type, int *rid, | bus_alloc_resource_anywhere(device_t dev, int type, int *rid, | ||||
rman_res_t count, u_int flags) | rman_res_t count, u_int flags) | ||||
{ | { | ||||
return (bus_alloc_resource(dev, type, rid, 0ul, ~0ul, count, flags)); | return (bus_alloc_resource(dev, type, rid, 0, ~0, count, flags)); | ||||
} | } | ||||
/* | /* | ||||
* Access functions for device. | * Access functions for device. | ||||
*/ | */ | ||||
device_t device_add_child(device_t dev, const char *name, int unit); | device_t device_add_child(device_t dev, const char *name, int unit); | ||||
device_t device_add_child_ordered(device_t dev, u_int order, | device_t device_add_child_ordered(device_t dev, u_int order, | ||||
const char *name, int unit); | const char *name, int unit); | ||||
▲ Show 20 Lines • Show All 378 Lines • Show Last 20 Lines |