Changeset 62890 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Aug 2, 2016 11:51:30 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp
r62509 r62890 391 391 392 392 /** No docs, lazy coder. */ 393 int acpiCleanupDsdt(PPDMDEVINS pDevIns, 393 int acpiCleanupDsdt(PPDMDEVINS pDevIns, void *pvPtr) 394 394 { 395 395 #ifdef VBOX_WITH_DYNAMIC_DSDT 396 396 return cleanupDynamicDsdt(pDevIns, pvPtr); 397 397 #else 398 RT_NOREF1(pDevIns); 398 399 if (pvPtr) 399 400 RTMemFree(pvPtr); … … 458 459 int acpiCleanupSsdt(PPDMDEVINS pDevIns, void *pvPtr) 459 460 { 461 RT_NOREF1(pDevIns); 460 462 if (pvPtr) 461 463 RTMemFree(pvPtr); -
trunk/src/VBox/Devices/PC/DevACPI.cpp
r62554 r62890 2159 2159 PDMBOTHCBDECL(int) acpiR3SMBusRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 2160 2160 { 2161 RT_NOREF1(pDevIns); 2161 2162 ACPIState *pThis = (ACPIState *)pvUser; 2162 2163 DEVACPI_LOCK_R3(pThis); … … 3431 3432 static DECLCALLBACK(void) acpiR3MemSetup(PPDMDEVINS pDevIns, PDMDEVMEMSETUPCTX enmCtx) 3432 3433 { 3434 RT_NOREF1(enmCtx); 3433 3435 ACPIState *pThis = PDMINS_2_DATA(pDevIns, ACPIState *); 3434 3436 acpiR3PlantTables(pThis); -
trunk/src/VBox/Devices/PC/DevFwCommon.cpp
r62509 r62890 1014 1014 void FwCommonPlantMpsTable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, uint16_t cCpus) 1015 1015 { 1016 RT_NOREF1(cbMax); 1017 1016 1018 /* configuration table */ 1017 1019 PMPSCFGTBLHEADER pCfgTab = (MPSCFGTBLHEADER*)pTable; -
trunk/src/VBox/Devices/PC/DevPIC.cpp
r62509 r62890 883 883 static DECLCALLBACK(void) picRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 884 884 { 885 RT_NOREF1(offDelta); 885 886 PDEVPIC pThis = PDMINS_2_DATA(pDevIns, PDEVPIC); 886 887 unsigned i; … … 898 899 static DECLCALLBACK(int) picConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 899 900 { 901 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 902 RT_NOREF1(iInstance); 900 903 PDEVPIC pThis = PDMINS_2_DATA(pDevIns, PDEVPIC); 901 904 int rc; -
trunk/src/VBox/Devices/PC/DevPcArch.cpp
r62509 r62890 146 146 pcarchIOPortPS2SysControlPortARead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 147 147 { 148 RT_NOREF1(pvUser); 148 149 if (cb == 1) 149 150 { … … 189 190 static DECLCALLBACK(int) pcarchConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 190 191 { 192 RT_NOREF1(iInstance); 193 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 191 194 PDEVPCARCH pThis = PDMINS_2_DATA(pDevIns, PDEVPCARCH); 192 195 int rc; -
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r62509 r62890 227 227 static DECLCALLBACK(int) pcbiosIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 228 228 { 229 RT_NOREF5(pDevIns, pvUser, Port, pu32, cb); 229 230 return VERR_IOM_IOPORT_UNUSED; 230 231 } … … 236 237 static DECLCALLBACK(int) pcbiosIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 237 238 { 239 RT_NOREF1(pvUser); 240 238 241 /* 239 242 * Bochs BIOS char printing. … … 337 340 static DECLCALLBACK(bool) pcbiosFw_IsHardReset(PPDMDEVINS pDevIns, uint32_t fFlags) 338 341 { 342 RT_NOREF1(fFlags); 339 343 PDEVPCBIOS pThis = PDMINS_2_DATA(pDevIns, PDEVPCBIOS); 340 344 if (pThis->fCheckShutdownStatusForSoftReset) … … 466 470 static int setLogicalDiskGeometry(PPDMIBASE pBase, PPDMIMEDIA pHardDisk, PPDMMEDIAGEOMETRY pLCHSGeometry) 467 471 { 472 RT_NOREF1(pBase); 473 468 474 PDMMEDIAGEOMETRY LCHSGeometry; 469 int rc = VINF_SUCCESS; 470 471 rc = pHardDisk->pfnBiosGetLCHSGeometry(pHardDisk, &LCHSGeometry); 475 int rc = pHardDisk->pfnBiosGetLCHSGeometry(pHardDisk, &LCHSGeometry); 472 476 if ( rc == VERR_PDM_GEOMETRY_NOT_SET 473 477 || LCHSGeometry.cCylinders == 0 … … 927 931 static DECLCALLBACK(void) pcbiosMemSetup(PPDMDEVINS pDevIns, PDMDEVMEMSETUPCTX enmCtx) 928 932 { 929 PDEVPCBIOS pThis = PDMINS_2_DATA(pDevIns, PDEVPCBIOS); 933 RT_NOREF1(enmCtx); 934 PDEVPCBIOS pThis = PDMINS_2_DATA(pDevIns, PDEVPCBIOS); 930 935 LogFlow(("pcbiosMemSetup:\n")); 931 936 … … 1075 1080 static DECLCALLBACK(int) pcbiosConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 1076 1081 { 1082 RT_NOREF1(iInstance); 1077 1083 PDEVPCBIOS pThis = PDMINS_2_DATA(pDevIns, PDEVPCBIOS); 1078 1084 int rc; … … 1564 1570 const uint8_t *pu8LanBootBinary = NULL; 1565 1571 uint64_t cbLanBootBinary; 1566 uint64_t cbFileLanBoot ;1572 uint64_t cbFileLanBoot = 0; 1567 1573 1568 1574 /* -
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r62889 r62890 1143 1143 static DECLCALLBACK(void) pitTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 1144 1144 { 1145 RT_NOREF1(pDevIns); 1145 1146 PPITCHANNEL pChan = (PPITCHANNEL)pvUser; 1146 1147 STAM_PROFILE_ADV_START(&pChan->CTX_SUFF(pPit)->StatPITHandler, a); -
trunk/src/VBox/Devices/PC/DevRTC.cpp
r62509 r62890 478 478 static DECLCALLBACK(void) rtcCmosBankInfo(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 479 479 { 480 RT_NOREF1(pszArgs); 480 481 PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE); 481 482 … … 502 503 static DECLCALLBACK(void) rtcCmosBank2Info(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 503 504 { 505 RT_NOREF1(pszArgs); 504 506 PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE); 505 507 … … 524 526 static DECLCALLBACK(void) rtcCmosClockInfo(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 525 527 { 528 RT_NOREF1(pszArgs); 526 529 PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE); 527 530 uint8_t u8Sec = from_bcd(pThis, pThis->cmos_data[RTC_SECONDS]); … … 551 554 static DECLCALLBACK(void) rtcTimerPeriodic(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 552 555 { 556 RT_NOREF2(pTimer, pvUser); 553 557 PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE); 554 558 Assert(TMTimerIsLockOwner(pThis->CTX_SUFF(pPeriodicTimer))); … … 632 636 static DECLCALLBACK(void) rtcTimerSecond(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 633 637 { 638 RT_NOREF2(pTimer, pvUser); 634 639 PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE); 635 640 Assert(TMTimerIsLockOwner(pThis->CTX_SUFF(pPeriodicTimer))); … … 692 697 static DECLCALLBACK(void) rtcTimerSecond2(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 693 698 { 699 RT_NOREF2(pTimer, pvUser); 694 700 PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE); 695 701 Assert(TMTimerIsLockOwner(pThis->CTX_SUFF(pPeriodicTimer))); … … 739 745 static DECLCALLBACK(int) rtcLiveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uPass) 740 746 { 747 RT_NOREF1(uPass); 741 748 PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE); 742 749 … … 1038 1045 static DECLCALLBACK(void) rtcRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 1039 1046 { 1047 RT_NOREF1(offDelta); 1040 1048 PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE); 1041 1049 … … 1065 1073 static DECLCALLBACK(int) rtcConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 1066 1074 { 1075 RT_NOREF1(iInstance); 1076 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 1067 1077 PRTCSTATE pThis = PDMINS_2_DATA(pDevIns, PRTCSTATE); 1068 1078 int rc;
Note:
See TracChangeset
for help on using the changeset viewer.