Use lists instead of arrays for resources in devices to reduce memory usage.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5576 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Myles Watson
2010-05-21 14:33:48 +00:00
parent c5b87c8f89
commit c25cc11ae3
25 changed files with 200 additions and 190 deletions

View File

@@ -520,9 +520,9 @@ static void ati_ragexl_init(device_t dev)
#define USE_AUX_REG 1
res = &dev->resource[0];
res = dev->resource_list;
if(res->flags & IORESOURCE_IO) {
res = &dev->resource[1];
res = res->next;
}
#if CONFIG_CONSOLE_BTEXT==1
@@ -532,7 +532,9 @@ static void ati_ragexl_init(device_t dev)
#if USE_AUX_REG==0
info->ati_regbase = res->base+0x7ff000+0xc00;
#else
res = &dev->resource[2];
/* Fix this to look for the correct index. */
//if (dev->resource_list && dev->resource_list->next)
res = dev->resource_list->next->next;
if(res->flags & IORESOURCE_MEM) {
info->ati_regbase = res->base+0x400; //using auxiliary register
}