Changeset 80722 in vbox for trunk/include
- Timestamp:
- Sep 11, 2019 9:21:47 AM (5 years ago)
- Location:
- trunk/include/VBox/vmm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdev.h
r80704 r80722 5035 5035 RTR3PTR pvInstanceDataForRCR3; 5036 5036 5037 /** Pointer to the PCI devices for this device. 5038 * (Allocated after the shared instance data.) */ 5039 R3PTRTYPE(struct PDMPCIDEV *) apPciDevs[8]; 5040 5037 5041 /** Temporarily. */ 5038 5042 R0PTRTYPE(struct PDMDEVINSR0 *) pDevInsR0RemoveMe; … … 5059 5063 5060 5064 /** Current PDMDEVINSR3 version number. */ 5061 #define PDM_DEVINSR3_VERSION PDM_VERSION_MAKE(0xff82, 1, 0)5065 #define PDM_DEVINSR3_VERSION PDM_VERSION_MAKE(0xff82, 2, 0) 5062 5066 5063 5067 /** Converts a pointer to the PDMDEVINSR3::IBase to a pointer to PDMDEVINS. */ … … 5107 5111 /** Ring-0 pointer to the raw-mode instance data. */ 5108 5112 RTR0PTR pvInstanceDataForRCR0; 5113 5114 /** Pointer to the PCI devices for this device. 5115 * (Allocated after the shared instance data.) */ 5116 R0PTRTYPE(struct PDMPCIDEV *) apPciDevs[8]; 5117 5109 5118 #if HC_ARCH_BITS == 32 5110 5119 /** Align the internal data more naturally. */ … … 5127 5136 5128 5137 /** Current PDMDEVINSR0 version number. */ 5129 #define PDM_DEVINSR0_VERSION PDM_VERSION_MAKE(0xff83, 1, 0)5138 #define PDM_DEVINSR0_VERSION PDM_VERSION_MAKE(0xff83, 2, 0) 5130 5139 5131 5140 … … 5158 5167 */ 5159 5168 RGPTRTYPE(PPDMCRITSECT) pCritSectRoRC; 5160 /** Pointer to the ring-0 device registration structure. */ 5161 RGPTRTYPE(PCPDMDEVREGR0) pReg; 5169 /** Pointer to the raw-mode device registration structure. */ 5170 RGPTRTYPE(PCPDMDEVREGRC) pReg; 5171 /** Pointer to the PCI devices for this device. 5172 * (Allocated after the shared instance data.) */ 5173 RGPTRTYPE(struct PDMPCIDEV *) apPciDevs[8]; 5162 5174 5163 5175 /** Internal data. */ … … 5176 5188 5177 5189 /** Current PDMDEVINSR0 version number. */ 5178 #define PDM_DEVINSRC_VERSION PDM_VERSION_MAKE(0xff84, 1, 0)5190 #define PDM_DEVINSRC_VERSION PDM_VERSION_MAKE(0xff84, 2, 0) 5179 5191 5180 5192 -
trunk/include/VBox/vmm/pdmpcidevint.h
r76585 r80722 132 132 /** Pointer to the next PDM device associate with the PDM device. (R3 ptr) */ 133 133 R3PTRTYPE(PPDMPCIDEV) pNextR3; 134 /** Pointer to the internal PDM PCI bus for the device. (R3 ptr) */135 R3PTRTYPE(struct PDMPCIBUS *) pPdmBusR3;136 137 /** Pointer to the PDM device the PCI device belongs to. (R0 ptr) */138 PPDMDEVINSR0 pDevInsR0;139 134 /** Pointer to the next PDM device associate with the PDM device. (R0 ptr) */ 140 135 R0PTRTYPE(PPDMPCIDEV) pNextR0; 141 /** Pointer to the internal PDM PCI bus for the device. (R0 ptr) */142 R0PTRTYPE(struct PDMPCIBUS *) pPdmBusR0;143 144 /** Pointer to the PDM device the PCI device belongs to. (RC ptr) */145 PPDMDEVINSRC pDevInsRC;146 /** Pointer to the next PDM device associate with the PDM device. (RC ptr) */147 RCPTRTYPE(PPDMPCIDEV) pNextRC;148 /** Pointer to the internal PDM PCI bus for the device. (RC ptr) */149 RCPTRTYPE(struct PDMPCIBUS *) pPdmBusRC;150 136 151 137 /** The CFGM device configuration index (default, PciDev1..255). … … 156 142 /** Set if the it can be reassigned to a different PCI function number. */ 157 143 bool fReassignableFunNo; 158 /** Alignment padding . */144 /** Alignment padding - used by ICH9 for region swapping (DevVGA hack). */ 159 145 uint8_t bPadding0; 146 /** Index into the PDM internal bus array (PDM::aPciBuses). */ 147 uint8_t idxPdmBus; 148 /** Index into PDMDEVINSR3::apPciDevs. */ 149 uint8_t idxPciDevs; 150 151 /** Alignment padding. */ 152 uint8_t abPadding1[2+4+4]; 153 RTR0PTR apR0PaddingPdm2[2]; 154 RTR3PTR pR3PaddingPdm3; 160 155 /** @} */ 161 156 … … 166 161 /** Pointer to the PCI bus of the device. (R3 ptr) */ 167 162 R3PTRTYPE(struct DEVPCIBUS *) pBusR3; 168 /** Page used for MSI-X state. 163 /** Page used for MSI-X state. (R3 ptr) */ 169 164 R3PTRTYPE(void *) pMsixPageR3; 170 165 /** Read config callback. */ … … 179 174 R3PTRTYPE(PFNPCIBRIDGECONFIGWRITE) pfnBridgeConfigWrite; 180 175 181 /** Pointer to the PCI bus of the device. (R0 ptr) */ 176 /** Pointer to the PCI bus of the device. (R0 ptr) 177 * @note Only used by ich9pcibridgeSetIrq to find the host (root) bus. */ 182 178 R0PTRTYPE(struct DEVPCIBUS *) pBusR0; 183 /** Page used for MSI-X state. 179 /** Page used for MSI-X state. (R0 ptr) */ 184 180 R0PTRTYPE(void *) pMsixPageR0; 185 181 186 /** Pointer to the PCI bus of the device. (RC ptr) */ 182 /** Pointer to the PCI bus of the device. (RC ptr) 183 * @note Only used by ich9pcibridgeSetIrq to find the host (root) bus. */ 187 184 RCPTRTYPE(struct DEVPCIBUS *) pBusRC; 188 /** Page used for MSI-X state. 185 /** Page used for MSI-X state. (RC ptr) */ 189 186 RCPTRTYPE(void *) pMsixPageRC; 190 187 … … 212 209 #if HC_ARCH_BITS == 32 213 210 /** Add padding to align aIORegions to an 8 byte boundary. */ 214 uint8_t abPadding 1[12];211 uint8_t abPadding2[12]; 215 212 #endif 216 213
Note:
See TracChangeset
for help on using the changeset viewer.