Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/at91/at91.c
Context not available. | |||||
static struct resource * | static struct resource * | ||||
at91_alloc_resource(device_t dev, device_t child, int type, int *rid, | at91_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 at91_softc *sc = device_get_softc(dev); | struct at91_softc *sc = device_get_softc(dev); | ||||
struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
Context not available. | |||||
return (NULL); | return (NULL); | ||||
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. | |||||
struct resource *r) | struct resource *r) | ||||
{ | { | ||||
#if 0 | #if 0 | ||||
u_long p; | rman_res_t p; | ||||
int error; | int error; | ||||
if (type == SYS_RES_MEMORY) { | if (type == SYS_RES_MEMORY) { | ||||
Context not available. |