[OpenBIOS] [PATCH 2/2] prep: add an IDE controller to the i82378 PCI-ISA bridge

Hervé Poussineau hpoussin at reactos.org
Mon Dec 16 22:52:36 CET 2013


On PReP machines, IDE controller is really on the pc87312 Super I/O chip,
but we currently don't detect it.

Signed-off-by: Hervé Poussineau <hpoussin at reactos.org>
---
 drivers/pci.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci.c b/drivers/pci.c
index ee35b61..7f1b49a 100644
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -876,6 +876,9 @@ int i82378_config_cb(const pci_config_t *config)
 #ifdef CONFIG_DRIVER_PC_KBD
     ob_pc_kbd_init(config->path, "8042", arch->io_base, 0x60ULL, 0);
 #endif
+#ifdef CONFIG_DRIVER_IDE
+    ob_ide_init(config->path, 0x1f0, 0x3f6, 0x170, 0x376);
+#endif
 
     return 0;
 }
-- 
1.7.10.4




More information about the OpenBIOS mailing list