Changeset 81591 in vbox for trunk/src/VBox/Devices/PC/DevACPI.cpp
- Timestamp:
- Oct 30, 2019 2:14:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r81514 r81591 1076 1076 static DECLCALLBACK(void) acpiR3PmTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 1077 1077 { 1078 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);1078 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 1079 1079 Assert(TMTimerIsLockOwner(pTimer)); 1080 1080 RT_NOREF(pvUser); … … 1730 1730 return VERR_IOM_IOPORT_UNUSED; 1731 1731 1732 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);1732 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 1733 1733 1734 1734 /* … … 1783 1783 { 1784 1784 RT_NOREF(pszArgs); 1785 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);1785 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 1786 1786 pHlp->pfnPrintf(pHlp, 1787 1787 "timer: old=%08RX32, current=%08RX32\n", pThis->uPmTimeA, pThis->uPmTimeB); … … 2496 2496 static DECLCALLBACK(int) acpiR3SaveState(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 2497 2497 { 2498 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);2498 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 2499 2499 return SSMR3PutStruct(pSSM, pThis, &g_AcpiSavedStateFields8[0]); 2500 2500 } … … 2505 2505 static DECLCALLBACK(int) acpiR3LoadState(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass) 2506 2506 { 2507 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);2507 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 2508 2508 Assert(uPass == SSM_PASS_FINAL); NOREF(uPass); 2509 2509 … … 3369 3369 uint32_t uAddress, unsigned cb, uint32_t u32Value) 3370 3370 { 3371 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);3371 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 3372 3372 3373 3373 Log2(("acpi: PCI config write: 0x%x -> 0x%x (%d)\n", u32Value, uAddress, cb)); … … 3430 3430 static DECLCALLBACK(int) acpiR3Attach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags) 3431 3431 { 3432 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);3432 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 3433 3433 LogFlow(("acpiAttach: pDevIns=%p iLUN=%u fFlags=%#x\n", pDevIns, iLUN, fFlags)); 3434 3434 … … 3475 3475 static DECLCALLBACK(void) acpiR3Detach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags) 3476 3476 { 3477 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);3477 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 3478 3478 3479 3479 LogFlow(("acpiDetach: pDevIns=%p iLUN=%u fFlags=%#x\n", pDevIns, iLUN, fFlags)); … … 3507 3507 static DECLCALLBACK(void) acpiR3Resume(PPDMDEVINS pDevIns) 3508 3508 { 3509 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);3509 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 3510 3510 if (pThis->fSetWakeupOnResume) 3511 3511 { … … 3522 3522 { 3523 3523 RT_NOREF1(enmCtx); 3524 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);3524 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 3525 3525 acpiR3PlantTables(pThis); 3526 3526 } … … 3531 3531 static DECLCALLBACK(void) acpiR3Reset(PPDMDEVINS pDevIns) 3532 3532 { 3533 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);3533 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 3534 3534 3535 3535 /* Play safe: make sure that the IRQ isn't stuck after a reset. */ … … 3569 3569 static DECLCALLBACK(void) acpiR3Relocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 3570 3570 { 3571 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);3571 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 3572 3572 pThis->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns); 3573 3573 pThis->pPmTimerRC = TMTimerRCPtr(pThis->pPmTimerR3); … … 3581 3581 { 3582 3582 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 3583 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);3583 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 3584 3584 for (uint8_t i = 0; i < pThis->cCustTbls; i++) 3585 3585 { … … 3599 3599 { 3600 3600 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 3601 ACPIState *pThis = PDM INS_2_DATA(pDevIns, ACPIState *);3601 ACPIState *pThis = PDMDEVINS_2_DATA(pDevIns, ACPIState *); 3602 3602 3603 3603 /*
Note:
See TracChangeset
for help on using the changeset viewer.