VirtualBox

Changeset 34331 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 24, 2010 4:24:17 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68094
Message:

PCI: more 4.0 interfaces

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/PCIInternal.h

    r34268 r34331  
    2424typedef struct PCIIOREGION
    2525{
    26     /** Current PCI mapping address, 0xffffffff means not mapped. 
     26    /** Current PCI mapping address, 0xffffffff means not mapped.
    2727        @todo: make address and size 64-bit. */
    2828    uint32_t                        addr;
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r33758 r34331  
    28772877
    28782878    /* PCI vendor, just a free bogus value */
    2879     pThis->dev.config[0x00] = 0xee;
    2880     pThis->dev.config[0x01] = 0x80;
     2879    PCIDevSetVendorId(&pThis->dev, 0x80ee);
    28812880    /* device ID */
    2882     pThis->dev.config[0x02] = 0xfe;
    2883     pThis->dev.config[0x03] = 0xca;
     2881    PCIDevSetDeviceId(&pThis->dev, 0xcafe);
    28842882    /* class sub code (other type of system peripheral) */
    2885     pThis->dev.config[0x0a] = 0x80;
     2883    PCIDevSetClassSub(&pThis->dev, 0x80);
    28862884    /* class base code (base system peripheral) */
    2887     pThis->dev.config[0x0b] = 0x08;
     2885    PCIDevSetClassBase(&pThis->dev, 0x08);
    28882886    /* header type */
    2889     pThis->dev.config[0x0e] = 0x00;
     2887    PCIDevSetHeaderType(&pThis->dev, 0x00);
    28902888    /* interrupt on pin 0 */
    2891     pThis->dev.config[0x3d] = 0x01;
     2889    PCIDevSetInterruptPin(&pThis->dev, 0x01);
    28922890
    28932891    /*
     
    30443042    if (RT_FAILURE(rc))
    30453043        return rc;
    3046     if (pThis->dev.devfn == 32 || iInstance != 0)
     3044    if (pThis->dev.devfn != 32 || iInstance != 0)
    30473045        Log(("!!WARNING!!: pThis->dev.devfn=%d (ignore if testcase or no started by Main)\n", pThis->dev.devfn));
    30483046    rc = PDMDevHlpPCIIORegionRegister(pDevIns, 0, 0x20, PCI_ADDRESS_SPACE_IO, vmmdevIOPortRegionMap);
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