Changeset 4626 in vbox
- Timestamp:
- Sep 8, 2007 7:12:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pci.h
r4184 r4626 72 72 73 73 74 /** @name PCI Configuration Space Registers 74 /** @name PCI Configuration Space Registers 75 75 * @{ */ 76 76 #define VBOX_PCI_VENDOR_ID 0x00 /**< 16-bit RO */ … … 120 120 121 121 122 /** 122 /** 123 123 * Callback function for reading from the PCI configuration space. 124 124 * … … 134 134 typedef PFNPCICONFIGREAD *PPFNPCICONFIGREAD; 135 135 136 /** 136 /** 137 137 * Callback function for writing to the PCI configuration space. 138 138 * 139 139 * @param pPciDev Pointer to PCI device. Use pPciDev->pDevIns to get the device instance. 140 140 * @param Address The configuration space register address. [0..255] 141 * @param u32Value The value that's being written. The number of bits actually used from 141 * @param u32Value The value that's being written. The number of bits actually used from 142 142 * this value is determined by the cb parameter. 143 143 * @param cb The register size. [1,2,4] … … 237 237 } 238 238 239 /** 240 * Gets the sub-system vendor id config register. 241 * @returns the sub-system vendor id. 242 * @param pPciDev The PCI device. 243 */ 244 DECLINLINE(uint16_t) PCIDevGetSubSystemVendorId(PPCIDEVICE pPciDev) 245 { 246 return RT_LE2H_U16(RT_MAKE_U16(pPciDev->config[VBOX_PCI_SUBSYSTEM_VENDOR_ID], pPciDev->config[VBOX_PCI_SUBSYSTEM_VENDOR_ID + 1])); 247 } 248 249 /** 250 * Gets the sub-system id config register. 251 * @returns the sub-system id. 252 * @param pPciDev The PCI device. 253 */ 254 DECLINLINE(uint16_t) PCIDevGetSubSystemId(PPCIDEVICE pPciDev) 255 { 256 return RT_LE2H_U16(RT_MAKE_U16(pPciDev->config[VBOX_PCI_SUBSYSTEM_ID], pPciDev->config[VBOX_PCI_SUBSYSTEM_ID + 1])); 257 } 258 239 259 240 260 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.