Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/xscale/i8134x/obio.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
device_add_child(dev, "uart", 1); | device_add_child(dev, "uart", 1); | ||||
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 = NULL; | bus_space_tag_t bt = NULL; | ||||
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); | ||||
int unit = device_get_unit(child); | int unit = device_get_unit(child); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |