Changeset 36678 in vbox for trunk/include/VBox
- Timestamp:
- Apr 15, 2011 9:24:13 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71177
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pci.h
r36630 r36678 55 55 * This is used when registering a I/O region. 56 56 */ 57 /** Note: There are all sorts of dirty dependencies on the values in the58 * pci device. Be careful when changing this.57 /** 58 * Defined by the PCI specification. 59 59 */ 60 60 typedef enum PCIADDRESSSPACE … … 88 88 * @param enmType One of the PCI_ADDRESS_SPACE_* values. 89 89 * 90 * @remarks The address is *NOT* relative to pci_mem_base.91 90 */ 92 91 typedef DECLCALLBACK(int) FNPCIIOREGIONMAP(PPCIDEVICE pPciDev, /*unsigned*/ int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType); … … 1024 1023 * Class representing PCI address. PCI device consist of 1025 1024 * 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 1027 1026 * an OS PCI driver. 1028 1027 * … … 1109 1108 bool valid() const 1110 1109 { 1111 return (miBus != -1) 1112 && (miDevice != -1) 1110 return (miBus != -1) 1111 && (miDevice != -1) 1113 1112 && (miFn != -1); 1114 1113 } … … 1133 1132 if (cBufSize < (/* bus */ 2 + /* : */ 1 + /* device */ 2 + /* . */ 1 + /* function*/ 1 + /* \0 */1)) 1134 1133 return false; 1135 1134 1136 1135 if (valid()) 1137 1136 RTStrPrintf(szBuf, cBufSize, "%02x:%02x.%01x", miBus, miDevice, miFn); 1138 1137 else 1139 1138 RTStrPrintf(szBuf, cBufSize, "%s", "<bad>"); 1140 1139 1141 1140 return true; 1142 1141 }
Note:
See TracChangeset
for help on using the changeset viewer.