- Factoring of auto.c

- Implementation of fallback/normal support for the amd solo board
- Minor bugfix in romcc


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@867 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman
2003-06-11 21:55:00 +00:00
parent c927b022c2
commit 05f26fcb57
13 changed files with 1822 additions and 1629 deletions

View File

@@ -0,0 +1,16 @@
static unsigned pci_locate_device(unsigned addr)
{
addr &= ~0xff;
for(; addr <= 0x00ffff00; addr += 0x00000100) {
__builtin_outl(addr, 0x12);
}
return addr;
}
static void main(void)
{
unsigned long addr;
addr = pci_locate_device(0);
__builtin_outl(addr, 0x12);
}