Changeset 71773 in vbox
- Timestamp:
- Apr 9, 2018 2:35:02 PM (7 years ago)
- Location:
- trunk/src/VBox/Devices/Bus
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/MsiCommon.cpp
r71768 r71773 117 117 } 118 118 119 /** 120 * PCI config space accessors for MSI registers. 121 */ 119 122 void MsiR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, 120 123 uint32_t u32Address, uint32_t val, unsigned len) … … 202 205 } 203 206 207 /** 208 * Initializes MSI support for the given PCI device. 209 */ 204 210 int MsiR3Init(PPDMPCIDEV pDev, PPDMMSIREG pMsiReg) 205 211 { … … 266 272 267 273 274 /** 275 * Checks if MSI is enabled for the given PCI device. 276 * 277 * (Must use MSINotify() for notifications when true.) 278 */ 268 279 bool MsiIsEnabled(PPDMPCIDEV pDev) 269 280 { … … 271 282 } 272 283 284 /** 285 * Device notification (aka interrupt). 286 */ 273 287 void MsiNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc) 274 288 { -
trunk/src/VBox/Devices/Bus/MsiCommon.h
r71768 r71773 16 16 */ 17 17 18 /* Maybe belongs to types.h */ 19 #ifdef IN_RING3 20 typedef PCPDMPCIHLPR3 PCPDMPCIHLP; 21 #endif 18 #ifndef ___MSI_COMMON_H___ 19 #define ___MSI_COMMON_H___ 22 20 23 #ifdef IN_RING0 24 typedef PCPDMPCIHLPR0 PCPDMPCIHLP; 25 #endif 26 27 #ifdef IN_RC 28 typedef PCPDMPCIHLPRC PCPDMPCIHLP; 29 #endif 21 typedef CTX_SUFF(PCPDMPCIHLP) PCPDMPCIHLP; 30 22 31 23 #ifdef IN_RING3 32 /* Init MSI support in the device. */33 24 int MsiR3Init(PPDMPCIDEV pDev, PPDMMSIREG pMsiReg); 25 void MsiR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len); 34 26 #endif 35 36 /* If MSI is enabled, so that MSINotify() shall be used for notifications. */37 27 bool MsiIsEnabled(PPDMPCIDEV pDev); 38 39 /* Device notification (aka interrupt). */40 28 void MsiNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc); 41 29 42 30 #ifdef IN_RING3 43 /* PCI config space accessors for MSI registers */ 44 void MsiR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len); 31 int MsixR3Init(PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, PPDMMSIREG pMsiReg); 32 void MsixR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len); 33 #endif 34 bool MsixIsEnabled(PPDMPCIDEV pDev); 35 void MsixNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc); 36 45 37 #endif 46 38 47 #ifdef IN_RING348 /* Init MSI-X support in the device. */49 int MsixR3Init(PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, PPDMMSIREG pMsiReg);50 #endif51 52 /* If MSI-X is enabled, so that MSIXNotify() shall be used for notifications. */53 bool MsixIsEnabled(PPDMPCIDEV pDev);54 55 /* Device notification (aka interrupt). */56 void MsixNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc);57 58 #ifdef IN_RING359 /* PCI config space accessors for MSI-X */60 void MsixR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len);61 #endif -
trunk/src/VBox/Devices/Bus/MsixCommon.cpp
r71772 r71773 177 177 } 178 178 179 /** 180 * Initalizes MSI-X support for the given PCI device. 181 */ 179 182 int MsixR3Init(PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, PPDMMSIREG pMsiReg) 180 183 { … … 248 251 #endif /* IN_RING3 */ 249 252 253 /** 254 * Checks if MSI-X is enabled for the tiven PCI device. 255 * 256 * (Must use MSIXNotify() for notifications when true.) 257 */ 250 258 bool MsixIsEnabled(PPDMPCIDEV pDev) 251 259 { … … 253 261 } 254 262 263 /** 264 * Device notification (aka interrupt). 265 */ 255 266 void MsixNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc) 256 267 { … … 296 307 } 297 308 298 309 /** 310 * PCI config space accessors for MSI-X. 311 */ 299 312 void MsixR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len) 300 313 {
Note:
See TracChangeset
for help on using the changeset viewer.