Changeset View
Changeset View
Standalone View
Standalone View
sys/sparc64/sbus/sbus.c
Context not available. | |||||
static struct resource * | static struct resource * | ||||
sbus_alloc_resource(device_t bus, device_t child, int type, int *rid, | sbus_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 sbus_softc *sc; | struct sbus_softc *sc; | ||||
struct rman *rm; | struct rman *rm; | ||||
Context not available. | |||||
int i, slot; | int i, slot; | ||||
int isdefault, passthrough; | int isdefault, passthrough; | ||||
isdefault = (start == 0UL && end == ~0UL); | isdefault = (start == 0 && end == ~0); | ||||
passthrough = (device_get_parent(child) != bus); | passthrough = (device_get_parent(child) != bus); | ||||
rle = NULL; | rle = NULL; | ||||
sc = device_get_softc(bus); | sc = device_get_softc(bus); | ||||
Context not available. | |||||
static int | static int | ||||
sbus_adjust_resource(device_t bus, device_t child, int type, | sbus_adjust_resource(device_t bus, device_t child, int type, | ||||
struct resource *r, u_long start, u_long end) | struct resource *r, rman_res_t start, rman_res_t end) | ||||
{ | { | ||||
struct sbus_softc *sc; | struct sbus_softc *sc; | ||||
int i; | int i; | ||||
Context not available. |