VirtualBox

Changeset 33113 in vbox for trunk/src


Ignore:
Timestamp:
Oct 13, 2010 5:44:44 PM (14 years ago)
Author:
vboxsync
Message:

EFI: IdeController detects AHCI IDE Emulation and patches supported modes enabling (PIO mode 4 only).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxIdeControllerDxe/IdeController.c

    r33027 r33113  
    8282};
    8383
     84static BOOLEAN gfIdeAhciEmulation = FALSE;
     85
    8486EFI_STATUS
    8587EFIAPI
     
    204206    Status = EFI_UNSUPPORTED;
    205207  }
     208  if (PciSubClass == 0x6)
     209    gfIdeAhciEmulation = TRUE;
    206210
    207211Done:
     
    513517    return EFI_OUT_OF_RESOURCES;
    514518  }
     519  EFI_ATA_COLLECTIVE_MODE *pSupportedModes = (*SupportedModes);
     520  pSupportedModes->PioMode.Mode = 3; /* AtaPioMode4 see VBoxIdeBusDxe/IdeData.h */
     521  if (gfIdeAhciEmulation)
     522  {
     523     pSupportedModes->UdmaMode.Valid = FALSE;
     524     pSupportedModes->MultiWordDmaMode.Valid = FALSE;
     525  }
    515526
    516527  return EFI_SUCCESS;
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