Changeset View
Changeset View
Standalone View
Standalone View
sys/sparc64/sparc64/upa.c
Context not available. | |||||
int i, imr, j, rid; | int i, imr, j, rid; | ||||
#if 1 | #if 1 | ||||
device_t *children, schizo; | device_t *children, schizo; | ||||
u_long scount, sstart, ucount, ustart; | rman_res_t scount, sstart, ucount, ustart; | ||||
int nchildren; | int nchildren; | ||||
#endif | #endif | ||||
Context not available. | |||||
static struct resource * | static struct resource * | ||||
upa_alloc_resource(device_t dev, device_t child, int type, int *rid, | upa_alloc_resource(device_t dev, 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; | ||||
Context not available. | |||||
bus_addr_t cend, cstart; | bus_addr_t cend, cstart; | ||||
int i, isdefault, passthrough; | int i, isdefault, passthrough; | ||||
isdefault = (start == 0UL && end == ~0UL); | isdefault = (start == 0 && end == ~0); | ||||
passthrough = (device_get_parent(child) != dev); | passthrough = (device_get_parent(child) != dev); | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
rl = BUS_GET_RESOURCE_LIST(dev, child); | rl = BUS_GET_RESOURCE_LIST(dev, child); | ||||
Context not available. | |||||
static int | static int | ||||
upa_adjust_resource(device_t bus __unused, device_t child __unused, | upa_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); | ||||
Context not available. |