Same conversion as with resources from static arrays to lists, except
there is no free list.
Converting resource arrays to lists reduced the size of each device
struct from 1092 to 228 bytes.
Converting link arrays to lists reduced the size of each device struct
from 228 to 68 bytes.
fam10_pci.diff makes fam10 and k8 northbridge code a little more
similar before the conversion.
The next step for fam10 and k8 would be to reorganize the links so
that the southbridge link is always first. This would make some of
the code a lot easier to follow. Something to consider would be
adding link numbers to the device tree, since that would allow the
southbridge link to start in the correct place.
Signed-off-by: Myles Watson <mylesgw at gmail.com>
Abuild tested. Boot tested on serengeti_cheetah,
serengeti_cheetah_fam10, and qemu.
Thanks,
Myles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fam10_pci.diff
Type: text/x-patch
Size: 29506 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100609/efd8e71c/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: links.diff
Type: text/x-patch
Size: 102346 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100609/efd8e71c/attachment-0001.diff>