Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sparc64/central/central.c
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | for (child = OF_child(node); child != 0; child = OF_peer(child)) { | ||||
device_set_ivars(cdev, cdi); | device_set_ivars(cdev, cdi); | ||||
} | } | ||||
return (bus_generic_attach(dev)); | return (bus_generic_attach(dev)); | ||||
} | } | ||||
static int | static int | ||||
central_adjust_resource(device_t bus __unused, device_t child __unused, | central_adjust_resource(device_t bus __unused, device_t child __unused, | ||||
int type __unused, struct resource *r __unused, u_long start __unused, | int type __unused, struct resource *r __unused, rman_res_t start __unused, | ||||
u_long end __unused) | rman_res_t end __unused) | ||||
{ | { | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
static int | static int | ||||
central_print_child(device_t dev, device_t child) | central_print_child(device_t dev, device_t child) | ||||
{ | { | ||||
Show All 14 Lines | central_probe_nomatch(device_t dev, device_t child) | ||||
central_print_res(device_get_ivars(child)); | central_print_res(device_get_ivars(child)); | ||||
type = ofw_bus_get_type(child); | type = ofw_bus_get_type(child); | ||||
printf(" type %s (no driver attached)\n", | printf(" type %s (no driver attached)\n", | ||||
type != NULL ? type : "unknown"); | type != NULL ? type : "unknown"); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
central_alloc_resource(device_t bus, device_t child, int type, int *rid, | central_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_list *rl; | struct resource_list *rl; | ||||
struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
struct central_softc *sc; | struct central_softc *sc; | ||||
struct resource *res; | struct resource *res; | ||||
bus_addr_t coffset; | bus_addr_t coffset; | ||||
bus_addr_t cend; | bus_addr_t cend; | ||||
bus_addr_t phys; | bus_addr_t phys; | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |