VirtualBox

Changeset 68369 in vbox


Ignore:
Timestamp:
Aug 10, 2017 1:15:16 PM (7 years ago)
Author:
vboxsync
Message:

DevATA: bugref:8965: enable IDE0/IDE1 at device creation time as this is not properly done by the EFI if ICH9 is used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r67959 r68369  
    73727372    }
    73737373
     7374    /** @todo
     7375     * This is the job of the BIOS / EFI!
     7376     *
     7377     * The same is done in DevPCI.cpp / pci_bios_init_device() but there is no
     7378     * corresponding function in DevPciIch9.cpp. The EFI has corresponding code
     7379     * in OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c: NotifyDev() but this
     7380     * function assumes that the IDE controller is located at PCI 00:01.1 which
     7381     * is not true if the ICH9 chipset is used.
     7382     */
     7383    PCIDevSetWord(&pThis->dev, 0x40, 0x8000); /* enable IDE0 */
     7384    PCIDevSetWord(&pThis->dev, 0x42, 0x8000); /* enable IDE1 */
     7385
    73747386    PCIDevSetCommand(   &pThis->dev, PCI_COMMAND_IOACCESS | PCI_COMMAND_MEMACCESS | PCI_COMMAND_BUSMASTER);
    73757387    PCIDevSetClassProg( &pThis->dev, 0x8a); /* programming interface = PCI_IDE bus master is supported */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette