Changeset 81591 in vbox for trunk/src/VBox/Devices/Serial
- Timestamp:
- Oct 30, 2019 2:14:10 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices/Serial
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DevOxPcie958.cpp
r81514 r81591 216 216 { 217 217 RT_NOREF(pUart); 218 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);218 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 219 219 220 220 if (iLvl) … … 238 238 PDMBOTHCBDECL(int) ox958MmioRead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb) 239 239 { 240 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);240 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 241 241 uint32_t offReg = (GCPhysAddr - pThis->GCPhysMMIO); 242 242 int rc = VINF_SUCCESS; … … 308 308 PDMBOTHCBDECL(int) ox958MmioWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void const *pv, unsigned cb) 309 309 { 310 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);310 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 311 311 uint32_t offReg = (GCPhysAddr - pThis->GCPhysMMIO); 312 312 int rc = VINF_SUCCESS; … … 367 367 RTGCPHYS GCPhysAddress, RTGCPHYS cb, PCIADDRESSSPACE enmType) 368 368 { 369 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);369 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 370 370 int rc = VINF_SUCCESS; 371 371 RT_NOREF(pPciDev, enmType); … … 409 409 static DECLCALLBACK(void) ox958R3Detach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags) 410 410 { 411 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);411 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 412 412 AssertReturnVoid(iLUN >= pThis->cUarts); 413 413 … … 421 421 static DECLCALLBACK(int) ox958R3Attach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags) 422 422 { 423 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);423 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 424 424 425 425 RT_NOREF(fFlags); … … 435 435 static DECLCALLBACK(void) ox958R3Reset(PPDMDEVINS pDevIns) 436 436 { 437 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);437 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 438 438 439 439 pThis->u32RegIrqStsGlob = 0x00; … … 449 449 static DECLCALLBACK(void) ox958R3Relocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 450 450 { 451 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);451 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 452 452 RT_NOREF(offDelta); 453 453 … … 461 461 static DECLCALLBACK(int) ox958R3Destruct(PPDMDEVINS pDevIns) 462 462 { 463 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);463 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 464 464 PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns); 465 465 … … 475 475 { 476 476 RT_NOREF(iInstance); 477 PDEVOX958 pThis = PDM INS_2_DATA(pDevIns, PDEVOX958);477 PDEVOX958 pThis = PDMDEVINS_2_DATA(pDevIns, PDEVOX958); 478 478 bool fRCEnabled = true; 479 479 bool fR0Enabled = true; -
trunk/src/VBox/Devices/Serial/DevSerial.cpp
r81514 r81591 76 76 { 77 77 RT_NOREF(pUart, iLUN); 78 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);78 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 79 79 PDMDevHlpISASetIrqNoWait(pDevIns, pThis->uIrq, iLvl); 80 80 } … … 88 88 PDMBOTHCBDECL(int) serialIoPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t u32, unsigned cb) 89 89 { 90 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);90 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 91 91 RT_NOREF_PV(pvUser); 92 92 … … 100 100 PDMBOTHCBDECL(int) serialIoPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT uPort, uint32_t *pu32, unsigned cb) 101 101 { 102 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);102 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 103 103 RT_NOREF_PV(pvUser); 104 104 … … 138 138 { 139 139 RT_NOREF(uPass); 140 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);140 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 141 141 SSMR3PutU8(pSSM, pThis->uIrq); 142 142 SSMR3PutIOPort(pSSM, pThis->PortBase); … … 152 152 static DECLCALLBACK(int) serialR3SaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 153 153 { 154 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);154 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 155 155 156 156 SSMR3PutU8( pSSM, pThis->uIrq); … … 168 168 static DECLCALLBACK(int) serialR3LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass) 169 169 { 170 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);170 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 171 171 uint8_t bIrq; 172 172 RTIOPORT PortBase; … … 236 236 static DECLCALLBACK(int) serialR3LoadDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 237 237 { 238 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);238 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 239 239 return uartR3LoadDone(&pThis->UartCore, pSSM); 240 240 } … … 248 248 static DECLCALLBACK(void) serialR3Relocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 249 249 { 250 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);250 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 251 251 uartR3Relocate(&pThis->UartCore, offDelta); 252 252 } … … 258 258 static DECLCALLBACK(void) serialR3Reset(PPDMDEVINS pDevIns) 259 259 { 260 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);260 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 261 261 uartR3Reset(&pThis->UartCore); 262 262 } … … 269 269 { 270 270 RT_NOREF(fFlags); 271 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);271 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 272 272 return uartR3Attach(&pThis->UartCore, iLUN); 273 273 } … … 280 280 { 281 281 RT_NOREF(iLUN, fFlags); 282 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);282 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 283 283 uartR3Detach(&pThis->UartCore); 284 284 } … … 290 290 static DECLCALLBACK(int) serialR3Destruct(PPDMDEVINS pDevIns) 291 291 { 292 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);292 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 293 293 PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns); 294 294 … … 303 303 static DECLCALLBACK(int) serialR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 304 304 { 305 PDEVSERIAL pThis = PDM INS_2_DATA(pDevIns, PDEVSERIAL);305 PDEVSERIAL pThis = PDMDEVINS_2_DATA(pDevIns, PDEVSERIAL); 306 306 int rc = VINF_SUCCESS; 307 307
Note:
See TracChangeset
for help on using the changeset viewer.