Add EBUS bridge, refactor PC serial and keyboard, generalize floppy

git-svn-id: svn://coreboot.org/openbios/openbios-devel@377 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-01-10 11:37:34 +00:00
parent 0c3877f095
commit 91a9c7865a
15 changed files with 508 additions and 398 deletions

View File

@@ -415,6 +415,24 @@ int vga_config_cb (const pci_config_t *config)
return 0;
}
int ebus_config_cb(const pci_config_t *config)
{
printk("ebus config %s addr %x size %x\n", config->path,
config->assigned[0] & ~0x0000000F, config->sizes[0]);
#ifdef CONFIG_DRIVER_EBUS
#ifdef CONFIG_DRIVER_FLOPPY
ob_floppy_init(config->path, "fdthree");
#endif
#ifdef CONFIG_DRIVER_PC_SERIAL
ob_pc_serial_init(config->path, "su", arch->io_base, 0x3f8ULL, 0);
#endif
#ifdef CONFIG_DRIVER_PC_KBD
ob_pc_kbd_init(config->path, "kb_ps2", arch->io_base, 0x60ULL, 0);
#endif
#endif
return 0;
}
static void ob_pci_add_properties(pci_addr addr, const pci_dev_t *pci_dev,
const pci_config_t *config)
{