VirtualBox

Changeset 67682 in vbox


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

DevPCI/DevACPI/DevBusLogic: no code change, just use symbolic constants for PCIDevSetCommand()

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r67672 r67682  
    17121712    PCIDevSetClassProg( &pBus->PciDev,   0x01); /* Supports subtractive decoding. */
    17131713    PCIDevSetHeaderType(&pBus->PciDev,   0x01); /* Single function device which adheres to the PCI-to-PCI bridge spec. */
    1714     PCIDevSetCommand(   &pBus->PciDev,   0x00);
    1715     PCIDevSetStatus(    &pBus->PciDev,   0x20); /* 66MHz Capable. */
     1714    PCIDevSetCommand(   &pBus->PciDev, 0x0000);
     1715    PCIDevSetStatus(    &pBus->PciDev, 0x0020); /* 66MHz Capable. */
    17161716    PCIDevSetInterruptLine(&pBus->PciDev, 0x00); /* This device does not assert interrupts. */
    17171717
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r67596 r67682  
    40244024
    40254025    /* See p. 50 of PIIX4 manual */
    4026     PCIDevSetCommand(&pThis->dev, 0x01);
     4026    PCIDevSetCommand(&pThis->dev, PCI_COMMAND_IOACCESS);
    40274027    PCIDevSetStatus(&pThis->dev, 0x0280);
    40284028
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r65919 r67682  
    40274027    PCIDevSetVendorId         (&pThis->dev, 0x104b); /* BusLogic */
    40284028    PCIDevSetDeviceId         (&pThis->dev, 0x1040); /* BT-958 */
    4029     PCIDevSetCommand          (&pThis->dev, 0x0003);
     4029    PCIDevSetCommand          (&pThis->dev, PCI_COMMAND_IOACCESS | PCI_COMMAND_MEMACCESS);
    40304030    PCIDevSetRevisionId       (&pThis->dev, 0x01);
    40314031    PCIDevSetClassProg        (&pThis->dev, 0x00); /* SCSI */
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