Changeset View
Changeset View
Standalone View
Standalone View
sys/sparc64/ebus/ebus.c
Context not available. | |||||
static struct resource * | static struct resource * | ||||
ebus_alloc_resource(device_t bus, device_t child, int type, int *rid, | ebus_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 ebus_softc *sc; | struct ebus_softc *sc; | ||||
struct resource_list *rl; | struct resource_list *rl; | ||||
Context not available. | |||||
uint64_t cend, cstart, offset; | uint64_t cend, cstart, offset; | ||||
int i, isdefault, passthrough, ridx; | int i, isdefault, passthrough, ridx; | ||||
isdefault = (start == 0UL && end == ~0UL); | isdefault = (start == 0 && end == ~0); | ||||
passthrough = (device_get_parent(child) != bus); | passthrough = (device_get_parent(child) != bus); | ||||
sc = device_get_softc(bus); | sc = device_get_softc(bus); | ||||
rl = BUS_GET_RESOURCE_LIST(bus, child); | rl = BUS_GET_RESOURCE_LIST(bus, child); | ||||
Context not available. | |||||
static int | static int | ||||
ebus_adjust_resource(device_t bus __unused, device_t child __unused, | ebus_adjust_resource(device_t bus __unused, device_t child __unused, | ||||
int type __unused, struct resource *res __unused, u_long start __unused, | int type __unused, struct resource *res __unused, rman_res_t start __unused, | ||||
u_long end __unused) | rman_res_t end __unused) | ||||
{ | { | ||||
return (ENXIO); | return (ENXIO); | ||||
Context not available. |