Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/rt305x/obio.c
Context not available. | |||||
struct resource *); | struct resource *); | ||||
static device_t obio_add_child(device_t, u_int, const char *, int); | static device_t obio_add_child(device_t, u_int, const char *, int); | ||||
static struct resource * | static struct resource * | ||||
obio_alloc_resource(device_t, device_t, int, int *, u_long, | obio_alloc_resource(device_t, device_t, int, int *, rman_res_t, | ||||
u_long, u_long, u_int); | rman_res_t, rman_res_t, u_int); | ||||
static int obio_attach(device_t); | static int obio_attach(device_t); | ||||
static int obio_deactivate_resource(device_t, device_t, int, int, | static int obio_deactivate_resource(device_t, device_t, int, int, | ||||
struct resource *); | struct resource *); | ||||
Context not available. | |||||
static struct resource * | static struct resource * | ||||
obio_alloc_resource(device_t bus, device_t child, int type, int *rid, | obio_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
{ | { | ||||
struct obio_softc *sc = device_get_softc(bus); | struct obio_softc *sc = device_get_softc(bus); | ||||
struct obio_ivar *ivar = device_get_ivars(child); | struct obio_ivar *ivar = device_get_ivars(child); | ||||
Context not available. | |||||
struct rman *rm; | struct rman *rm; | ||||
int isdefault, needactivate, passthrough; | int isdefault, needactivate, passthrough; | ||||
isdefault = (start == 0UL && end == ~0UL && count == 1); | isdefault = (start == 0 && end == ~0 && count == 1); | ||||
needactivate = flags & RF_ACTIVE; | needactivate = flags & RF_ACTIVE; | ||||
passthrough = (device_get_parent(child) != bus); | passthrough = (device_get_parent(child) != bus); | ||||
rle = NULL; | rle = NULL; | ||||
Context not available. |