VirtualBox

Changeset 36678 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Apr 15, 2011 9:24:13 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71177
Message:

PCI: cleanups, R3 mapping work

File:
1 edited

Legend:

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

    r36630 r36678  
    5555 * This is used when registering a I/O region.
    5656 */
    57 /** Note: There are all sorts of dirty dependencies on the values in the
    58  *  pci device. Be careful when changing this.
     57/**
     58 * Defined by the PCI specification.
    5959 */
    6060typedef enum PCIADDRESSSPACE
     
    8888 * @param   enmType         One of the PCI_ADDRESS_SPACE_* values.
    8989 *
    90  * @remarks The address is *NOT* relative to pci_mem_base.
    9190 */
    9291typedef DECLCALLBACK(int) FNPCIIOREGIONMAP(PPCIDEVICE pPciDev, /*unsigned*/ int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType);
     
    10241023 * Class representing PCI address. PCI device consist of
    10251024 * bus, device and function numbers. Generally device PCI
    1026  * address could be changed during runtime, but only by 
     1025 * address could be changed during runtime, but only by
    10271026 * an OS PCI driver.
    10281027 *
     
    11091108    bool valid() const
    11101109    {
    1111         return (miBus    != -1) 
    1112             && (miDevice != -1) 
     1110        return (miBus    != -1)
     1111            && (miDevice != -1)
    11131112            && (miFn     != -1);
    11141113    }
     
    11331132        if (cBufSize < (/* bus */ 2 + /* : */ 1 + /* device */ 2 + /* . */ 1 + /* function*/ 1 + /* \0 */1))
    11341133            return false;
    1135        
     1134
    11361135        if (valid())
    11371136            RTStrPrintf(szBuf, cBufSize, "%02x:%02x.%01x", miBus, miDevice, miFn);
    11381137        else
    11391138            RTStrPrintf(szBuf, cBufSize, "%s", "<bad>");
    1140        
     1139
    11411140        return true;
    11421141    }
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