VirtualBox

Changeset 85930 in vbox


Ignore:
Timestamp:
Aug 28, 2020 4:40:15 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140125
Message:

AMD IOMMU: bugref:9654 Use the defines.

File:
1 edited

Legend:

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

    r85912 r85930  
    38473847
    38483848    /* Header. */
    3849     PDMPciDevSetVendorId(pPciDev,           IOMMU_PCI_VENDOR_ID);      /* AMD */
    3850     PDMPciDevSetDeviceId(pPciDev,           IOMMU_PCI_DEVICE_ID);      /* VirtualBox IOMMU device */
    3851     PDMPciDevSetCommand(pPciDev,            0);                        /* Command */
    3852     PDMPciDevSetStatus(pPciDev,             VBOX_PCI_STATUS_CAP_LIST); /* Status - CapList supported */
    3853     PDMPciDevSetRevisionId(pPciDev,         IOMMU_PCI_REVISION_ID);    /* VirtualBox specific device implementation revision */
    3854     PDMPciDevSetClassBase(pPciDev,          0x08);                     /* System Base Peripheral */
    3855     PDMPciDevSetClassSub(pPciDev,           0x06);                    /* IOMMU */
    3856     PDMPciDevSetClassProg(pPciDev,          0x00);                     /* IOMMU Programming interface */
    3857     PDMPciDevSetHeaderType(pPciDev,         0x00);                     /* Single function, type 0. */
    3858     PDMPciDevSetSubSystemId(pPciDev,        IOMMU_PCI_DEVICE_ID);      /* AMD */
    3859     PDMPciDevSetSubSystemVendorId(pPciDev,  IOMMU_PCI_VENDOR_ID);      /* VirtualBox IOMMU device */
    3860     PDMPciDevSetCapabilityList(pPciDev,     IOMMU_PCI_OFF_CAP_HDR);    /* Offset into capability registers. */
    3861     PDMPciDevSetInterruptPin(pPciDev,       0x01);                     /* INTA#. */
    3862     PDMPciDevSetInterruptLine(pPciDev,      0x00);                     /* For software compatibility; no effect on hardware. */
     3849    PDMPciDevSetVendorId(pPciDev,          IOMMU_PCI_VENDOR_ID);       /* AMD */
     3850    PDMPciDevSetDeviceId(pPciDev,          IOMMU_PCI_DEVICE_ID);       /* VirtualBox IOMMU device */
     3851    PDMPciDevSetCommand(pPciDev,           0);                         /* Command */
     3852    PDMPciDevSetStatus(pPciDev,            VBOX_PCI_STATUS_CAP_LIST); /* Status - CapList supported */
     3853    PDMPciDevSetRevisionId(pPciDev,        IOMMU_PCI_REVISION_ID);     /* VirtualBox specific device implementation revision */
     3854    PDMPciDevSetClassBase(pPciDev,         VBOX_PCI_CLASS_SYSTEM);     /* System Base Peripheral */
     3855    PDMPciDevSetClassSub(pPciDev,          VBOX_PCI_SUB_SYSTEM_IOMMU); /* IOMMU */
     3856    PDMPciDevSetClassProg(pPciDev,         0x00);                      /* IOMMU Programming interface */
     3857    PDMPciDevSetHeaderType(pPciDev,        0x00);                      /* Single function, type 0. */
     3858    PDMPciDevSetSubSystemId(pPciDev,       IOMMU_PCI_DEVICE_ID);       /* AMD */
     3859    PDMPciDevSetSubSystemVendorId(pPciDev, IOMMU_PCI_VENDOR_ID);       /* VirtualBox IOMMU device */
     3860    PDMPciDevSetCapabilityList(pPciDev,    IOMMU_PCI_OFF_CAP_HDR);     /* Offset into capability registers. */
     3861    PDMPciDevSetInterruptPin(pPciDev,      0x01);                      /* INTA#. */
     3862    PDMPciDevSetInterruptLine(pPciDev,     0x00);                      /* For software compatibility; no effect on hardware. */
    38633863
    38643864    /* Capability Header. */
Note: See TracChangeset for help on using the changeset viewer.

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