VirtualBox

Ignore:
Timestamp:
Jun 29, 2017 8:28:50 AM (7 years ago)
Author:
vboxsync
Message:

BIOS: Explicitly enable bus mastering for AHCI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/pciutil.c

    r62509 r67679  
    152152}
    153153
     154void pci_write_config_word(uint8_t bus, uint8_t dev_fn, uint8_t reg, uint16_t val)
     155{
     156    pci_write_cfgw((PCIBIOS_ID << 8) | PCIBIOS_WRITE_CONFIG_WORD, (bus << 8) | dev_fn, reg, val);
     157}
     158
    154159#if 0 /* Disabled to save space because they are not needed. Might become useful in the future. */
    155160/**
     
    174179}
    175180
    176 void pci_write_config_word(uint8_t bus, uint8_t dev_fn, uint8_t reg, uint16_t val)
    177 {
    178     pci_write_cfgw((PCIBIOS_ID << 8) | PCIBIOS_WRITE_CONFIG_WORD, (bus << 8) | dev_fn, reg, val);
    179 }
    180 
    181181void pci_write_config_dword(uint8_t bus, uint8_t dev_fn, uint8_t reg, uint32_t val)
    182182{
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