Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/bus.h
Show First 20 Lines • Show All 545 Lines • ▼ Show 20 Lines | |||||
int bus_set_resource(device_t dev, int type, int rid, | int bus_set_resource(device_t dev, int type, int rid, | ||||
rman_res_t start, rman_res_t count); | rman_res_t start, rman_res_t count); | ||||
int bus_get_resource(device_t dev, int type, int rid, | int bus_get_resource(device_t dev, int type, int rid, | ||||
rman_res_t *startp, rman_res_t *countp); | rman_res_t *startp, rman_res_t *countp); | ||||
rman_res_t bus_get_resource_start(device_t dev, int type, int rid); | rman_res_t bus_get_resource_start(device_t dev, int type, int rid); | ||||
rman_res_t bus_get_resource_count(device_t dev, int type, int rid); | rman_res_t bus_get_resource_count(device_t dev, int type, int rid); | ||||
void bus_delete_resource(device_t dev, int type, int rid); | void bus_delete_resource(device_t dev, int type, int rid); | ||||
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(device_t child, struct sbuf *sb); | ||||
int bus_child_location_str(device_t child, char *buf, size_t buflen); | int bus_child_location(device_t child, struct sbuf *sb); | ||||
void bus_enumerate_hinted_children(device_t bus); | void bus_enumerate_hinted_children(device_t bus); | ||||
int bus_delayed_attach_children(device_t bus); | int bus_delayed_attach_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, 0, ~0, 1, flags)); | return (bus_alloc_resource(dev, type, rid, 0, ~0, 1, flags)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 415 Lines • Show Last 20 Lines |