Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/cavium/cns11xx/econa.c
Context not available. | |||||
static struct resource * | static struct resource * | ||||
econa_alloc_resource(device_t dev, device_t child, int type, int *rid, | econa_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 econa_softc *sc = device_get_softc(dev); | struct econa_softc *sc = device_get_softc(dev); | ||||
struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
Context not available. | |||||
} | } | ||||
if (rle->res) | if (rle->res) | ||||
panic("Resource rid %d type %d already in use", *rid, type); | panic("Resource rid %d type %d already in use", *rid, type); | ||||
if (start == 0UL && end == ~0UL) { | if (start == 0 && end == ~0) { | ||||
start = rle->start; | start = rle->start; | ||||
count = ulmax(count, rle->count); | count = ulmax(count, rle->count); | ||||
end = ulmax(rle->end, start + count - 1); | end = ulmax(rle->end, start + count - 1); | ||||
Context not available. |