Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/malta/obio.c
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | obio_attach(device_t dev) | ||||
bus_generic_probe(dev); | bus_generic_probe(dev); | ||||
bus_generic_attach(dev); | bus_generic_attach(dev); | ||||
return (0); | return (0); | ||||
} | } | ||||
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 resource *rv; | struct resource *rv; | ||||
struct rman *rm; | struct rman *rm; | ||||
bus_space_tag_t bt = 0; | bus_space_tag_t bt = 0; | ||||
bus_space_handle_t bh = 0; | bus_space_handle_t bh = 0; | ||||
struct obio_softc *sc = device_get_softc(bus); | struct obio_softc *sc = device_get_softc(bus); | ||||
switch (type) { | switch (type) { | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |