VirtualBox

Changeset 34268 in vbox


Ignore:
Timestamp:
Nov 22, 2010 9:41:24 PM (14 years ago)
Author:
vboxsync
Message:

PCI: some 64-bit BARs bits

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pci.h

    r34231 r34268  
    5757/** Note: There are all sorts of dirty dependencies on the values in the
    5858 *  pci device. Be careful when changing this.
    59  *  @todo we should introduce 32 & 64 bits physical address types
    6059 */
    6160typedef enum PCIADDRESSSPACE
     
    6564    /** I/O space. */
    6665    PCI_ADDRESS_SPACE_IO = 0x01,
     66    /** 32-bit BAR. */
     67    PCI_ADDRESS_SPACE_BAR32 = 0x00,
     68    /** 64-bit BAR. */
     69    PCI_ADDRESS_SPACE_BAR64 = 0x04,
    6770    /** Prefetch memory. */
    6871    PCI_ADDRESS_SPACE_MEM_PREFETCH = 0x08
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r34231 r34268  
    720720        if (iRegionSize == 0)
    721721            continue;
     722
     723        AssertMsg((pRegion->type & PCI_ADDRESS_SPACE_BAR64) == 0, ("64-bit BARs not yet implemented\n"));
    722724
    723725        if (pRegion->type & PCI_ADDRESS_SPACE_IO)
  • trunk/src/VBox/Devices/Bus/PCIInternal.h

    r33314 r34268  
    2424typedef struct PCIIOREGION
    2525{
    26     /** Current PCI mapping address.
    27      * -1 means not mapped. Memory addresses are relative to pci_mem_base. */
     26    /** Current PCI mapping address, 0xffffffff means not mapped.
     27        @todo: make address and size 64-bit. */
    2828    uint32_t                        addr;
    2929    uint32_t                        size;
     
    7373
    7474enum {
    75     /** Set if the specific device fun was requested by PDM.
     75    /** Set if the specific device function was requested by PDM.
    7676     * If clear the device and it's functions can be relocated to satisfy the slot request of another device. */
    7777    PCIDEV_FLAG_REQUESTED_DEVFUNC  = 1<<0,
     
    8383    PCIDEV_FLAG_PCI_EXPRESS_DEVICE = 1<<2,
    8484    /** Flag whether the device is capable of MSI.
    85      * This one is set by analyzing device capabilities, or explicitly.  */
     85     * This one is set by MsiInit().  */
    8686    PCIDEV_FLAG_MSI_CAPABLE        = 1<<3,
    8787    /** Flag whether the device is capable of MSI-X.
    88      * This one is set by analyzing device capabilities.  */
     88     * This one is set by MsixInit().  */
    8989    PCIDEV_FLAG_MSIX_CAPABLE       = 1<<4
    9090};
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