Author: blueswirl Date: 2009-02-02 18:06:37 +0100 (Mon, 02 Feb 2009) New Revision: 438
Modified: openbios-devel/arch/x86/openbios.c Log: Fix x86 PCI initialization
Modified: openbios-devel/arch/x86/openbios.c =================================================================== --- openbios-devel/arch/x86/openbios.c 2009-02-01 11:25:16 UTC (rev 437) +++ openbios-devel/arch/x86/openbios.c 2009-02-02 17:06:37 UTC (rev 438) @@ -13,6 +13,7 @@ #include "openbios/kernel.h" #include "openbios/stack.h" #include "openbios/drivers.h" +#include "openbios/pci.h" #include "sys_info.h" #include "openbios.h" #include "relocate.h" @@ -21,6 +22,15 @@
static unsigned char intdict[256 * 1024];
+#ifdef CONFIG_DRIVER_PCI +static const pci_arch_t default_pci_host = { + .name = "Intel,i440FX", + .vendor_id = PCI_VENDOR_ID_INTEL, + .device_id = PCI_DEVICE_ID_INTEL_82441, + .io_base = 0x1000, +}; +#endif + static void init_memory(void) { /* push start and end of available memory to the stack @@ -41,6 +51,7 @@
modules_init(); #ifdef CONFIG_DRIVER_PCI + arch = &default_pci_host; ob_pci_init(); #endif #ifdef CONFIG_DRIVER_IDE