- Timestamp:
- Aug 2, 2016 4:21:40 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r62629 r62885 2141 2141 static DECLCALLBACK(int) pciR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2142 2142 { 2143 RT_NOREF1(iInstance); 2143 2144 Assert(iInstance == 0); 2144 2145 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); -
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r62631 r62885 1943 1943 { 1944 1944 PICH9PCIGLOBALS pGlobals = PDMINS_2_DATA(pDevIns, PICH9PCIGLOBALS); 1945 PVM pVM = PDMDevHlpGetVM(pDevIns);1946 Assert(pVM);1947 1945 1948 1946 /* … … 1963 1961 */ 1964 1962 for (int i = 0; i < 256; i++) 1965 {1966 1963 ich9pciBiosInitDevice(pGlobals, 0, i); 1967 }1968 1964 1969 1965 return VINF_SUCCESS; … … 2517 2513 2518 2514 2519 static DECLCALLBACK(int) ich9pciConstruct(PPDMDEVINS pDevIns, 2520 int iInstance, 2521 PCFGMNODE pCfg) 2522 { 2515 static DECLCALLBACK(int) ich9pciConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2516 { 2517 RT_NOREF1(iInstance); 2523 2518 Assert(iInstance == 0); 2524 2519 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); -
trunk/src/VBox/Devices/Bus/MsiCommon.cpp
r62518 r62885 201 201 uint32_t MsiPciConfigRead (PPDMDEVINS pDevIns, PPCIDEVICE pDev, uint32_t u32Address, unsigned len) 202 202 { 203 int32_t iOff = u32Address - pDev->Int.s.u8MsiCapOffset; 204 205 Assert(iOff >= 0 && (pciDevIsMsiCapable(pDev) && iOff < pDev->Int.s.u8MsiCapSize)); 203 RT_NOREF1(pDevIns); 204 #if defined(LOG_ENABLED) || defined(VBOX_STRICT) 205 int32_t off = u32Address - pDev->Int.s.u8MsiCapOffset; 206 Assert(off >= 0 && (pciDevIsMsiCapable(pDev) && off < pDev->Int.s.u8MsiCapSize)); 207 #endif 206 208 uint32_t rv = 0; 207 209 … … 221 223 } 222 224 223 Log2(("MsiPciConfigRead: %d (%d) -> %x\n", iOff, len, rv));225 Log2(("MsiPciConfigRead: %d (%d) -> %x\n", off, len, rv)); 224 226 225 227 return rv; -
trunk/src/VBox/Devices/EFI/DevSmc.cpp
r62610 r62885 582 582 static uint8_t scmKeyGetOSKs(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 583 583 { 584 RT_NOREF1(bCmd); 584 585 Assert(SMC4CH_EQ(&pKeyDesc->Key, "OSK0") || SMC4CH_EQ(&pKeyDesc->Key, "OSK1")); 585 586 const char *pszSrc = pThis->szOsk0And1; … … 594 595 static uint8_t scmKeyGetKeyCount(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 595 596 { 597 RT_NOREF3(pThis, bCmd, pKeyDesc); 596 598 Assert(pKeyDesc == &g_aSmcKeys[SMC_KEYIDX_FIRST_ENUM]); 597 599 uint32_t cKeys = RT_ELEMENTS(g_aSmcKeys) - SMC_KEYIDX_FIRST_ENUM; … … 604 606 static uint8_t scmKeyGetRevision(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 605 607 { 608 RT_NOREF3(pThis, bCmd, pKeyDesc); 606 609 #ifdef VBOX_WITH_SMC_2_x 607 610 pCurKey->Value.ab[0] = 0x02; … … 627 630 static uint8_t scmKeyGetDollarAddress(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 628 631 { 632 RT_NOREF3(pThis, bCmd, pKeyDesc); 629 633 pCurKey->Value.u32 = RT_H2BE_U32(SMC_PORT_FIRST); 630 634 return VINF_SUCCESS; … … 635 639 static uint8_t scmKeyGetDollarNumber(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 636 640 { 641 RT_NOREF2(bCmd, pKeyDesc); 637 642 pCurKey->Value.ab[0] = pThis->bDollaryNumber; 638 643 return VINF_SUCCESS; … … 642 647 static uint8_t scmKeyPutDollarNumber(PDEVSMC pThis, PCDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 643 648 { 649 RT_NOREF2(bCmd, pKeyDesc); 644 650 Log(("scmKeyPutDollarNumber: %#x -> %#x\n", pThis->bDollaryNumber, pCurKey->Value.ab[0])); 645 651 pThis->bDollaryNumber = pCurKey->Value.ab[0]; … … 652 658 static uint8_t scmKeyGetShutdownReason(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 653 659 { 660 RT_NOREF2(bCmd, pKeyDesc); 654 661 pCurKey->Value.ab[0] = pThis->bShutdownReason; 655 662 return SMC_STATUS_CD_SUCCESS; … … 660 667 static uint8_t scmKeyPutShutdownReason(PDEVSMC pThis, PCDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 661 668 { 669 RT_NOREF2(bCmd, pKeyDesc); 662 670 Log(("scmKeyPutShutdownReason: %#x -> %#x\n", pThis->bShutdownReason, pCurKey->Value.ab[0])); 663 671 pThis->bShutdownReason = pCurKey->Value.ab[0]; … … 669 677 static uint8_t scmKeyGetNinjaTimerAction(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 670 678 { 679 RT_NOREF2(bCmd, pKeyDesc); 671 680 pCurKey->Value.ab[0] = pThis->bNinjaActionTimerJob; 672 681 return SMC_STATUS_CD_SUCCESS; … … 677 686 static uint8_t scmKeyPutNinjaTimerAction(PDEVSMC pThis, PCDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 678 687 { 688 RT_NOREF2(bCmd, pKeyDesc); 679 689 Log(("scmKeyPutNinjaTimerAction: %#x -> %#x\n", pThis->bNinjaActionTimerJob, pCurKey->Value.ab[0])); 680 690 pThis->bNinjaActionTimerJob = pCurKey->Value.ab[0]; … … 687 697 static uint8_t scmKeyGetOne(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 688 698 { 699 RT_NOREF2(pThis, bCmd); 689 700 memset(&pCurKey->Value.ab[0], 0, pKeyDesc->cbValue); 690 701 pCurKey->Value.ab[pKeyDesc->cbValue - 1] = 1; … … 697 708 static uint8_t scmKeyGetZero(PDEVSMC pThis, PDEVSMCCURKEY pCurKey, uint8_t bCmd, PCDEVSMCKEYDESC pKeyDesc) 698 709 { 710 RT_NOREF2(pThis, bCmd); 699 711 memset(&pCurKey->Value.ab[0], 0, pKeyDesc->cbValue); 700 712 return SMC_STATUS_CD_SUCCESS; … … 706 718 * 707 719 * @returns Key index on success, UINT32_MAX on failure. 708 * @param pThis The SMC instance data.709 720 * @param uKeyValue The key value (DEVSMC4CHID.u32). 710 721 */ 711 static uint32_t smcKeyLookup( PDEVSMC pThis,uint32_t uKeyValue)722 static uint32_t smcKeyLookup(uint32_t uKeyValue) 712 723 { 713 724 uint32_t iKey = RT_ELEMENTS(g_aSmcKeys); … … 731 742 uint32_t const uKeyValueLog = RT_H2LE_U32(pThis->CurKey.Key.u32); 732 743 #endif 733 uint32_t iKey = smcKeyLookup(pThis , pThis->CurKey.Key.u32);744 uint32_t iKey = smcKeyLookup(pThis->CurKey.Key.u32); 734 745 if (iKey != UINT32_MAX) 735 746 { … … 818 829 uint32_t const uKeyValueLog = RT_H2LE_U32(pThis->CurKey.Key.u32); 819 830 #endif 820 uint32_t iKey = smcKeyLookup(pThis , pThis->CurKey.Key.u32);831 uint32_t iKey = smcKeyLookup(pThis->CurKey.Key.u32); 821 832 if (iKey != UINT32_MAX) 822 833 { … … 851 862 static uint8_t smcKeyPutPrepare(PDEVSMC pThis) 852 863 { 864 RT_NOREF1(pThis); 853 865 return 0; 854 866 } … … 856 868 static uint8_t smcKeyPutValue(PDEVSMC pThis) 857 869 { 870 RT_NOREF1(pThis); 858 871 return 0; 859 872 } … … 869 882 static int smcRegData_r(PDEVSMC pThis, uint8_t uReg, uint8_t *pbValue) 870 883 { 884 RT_NOREF1(uReg); 871 885 switch (pThis->bCmd) 872 886 { … … 958 972 static int smcRegData_w(PDEVSMC pThis, uint8_t uReg, uint8_t bValue) 959 973 { 974 RT_NOREF1(uReg); 960 975 switch (pThis->bCmd) 961 976 { … … 1143 1158 static int smcRegFF_w(PDEVSMC pThis, uint8_t uReg, uint8_t bValue) 1144 1159 { 1160 RT_NOREF3(pThis, uReg, bValue); 1145 1161 Log(("SMC: %#04x: Writing %#x to unknown register!\n", uReg, bValue)); 1146 1162 return VINF_SUCCESS; … … 1157 1173 static int smcRegFF_r(PDEVSMC pThis, uint8_t uReg, uint8_t *pbValue) 1158 1174 { 1175 RT_NOREF2(pThis, uReg); 1159 1176 Log(("SMC: %#04x: Reading from unknown register!\n", uReg)); 1160 1177 *pbValue = 0xff; … … 1260 1277 PDMBOTHCBDECL(int) smcIoPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 1261 1278 { 1279 RT_NOREF1(pvUser); 1262 1280 #ifndef IN_RING3 1263 1281 if (cb > 1) … … 1301 1319 PDMBOTHCBDECL(int) smcIoPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 1302 1320 { 1321 RT_NOREF1(pvUser); 1303 1322 #ifndef IN_RING3 1304 1323 if (cb > 1) … … 1352 1371 { 1353 1372 PDEVSMC pThis = PDMINS_2_DATA(pDevIns, PDEVSMC); 1373 RT_NOREF2(pSSM, pThis); 1354 1374 1355 1375 /** @todo */ … … 1364 1384 PDEVSMC pThis = PDMINS_2_DATA(pDevIns, PDEVSMC); 1365 1385 Assert(uPass == SSM_PASS_FINAL); NOREF(uPass); 1386 RT_NOREF2(pSSM, pThis); 1366 1387 1367 1388 /* Fend off unsupported versions. */ … … 1388 1409 static DECLCALLBACK(int) smcConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 1389 1410 { 1411 RT_NOREF1(iInstance); 1390 1412 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 1391 1413 PDEVSMC pThis = PDMINS_2_DATA(pDevIns, PDEVSMC); -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r62632 r62885 2233 2233 PDMIDISPLAYCONNECTOR *pDrv) 2234 2234 { 2235 RT_NOREF1(fFailOnResize); 2235 2236 int y, page_min, page_max, linesize, y_start; 2236 2237 int width, height, page0, page1, bwidth, bits; … … 3558 3559 PDMCritSectLeave(&pThis->CritSect); 3559 3560 Assert(GCPtr == 0); 3561 RT_NOREF1(GCPtr); 3560 3562 #endif 3561 3563 return VINF_SUCCESS; … … 5410 5412 * @param enmType One of the PCI_ADDRESS_SPACE_* values. 5411 5413 */ 5412 static DECLCALLBACK(int) vgaR3IORegionMap(PPCIDEVICE pPciDev, /*unsigned*/ int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType) 5413 { 5414 static DECLCALLBACK(int) vgaR3IORegionMap(PPCIDEVICE pPciDev, /*unsigned*/ int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, 5415 PCIADDRESSSPACE enmType) 5416 { 5417 RT_NOREF1(cb); 5414 5418 int rc; 5415 5419 PPDMDEVINS pDevIns = pPciDev->pDevIns; … … 5417 5421 Log(("vgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=%#x enmType=%d\n", iRegion, GCPhysAddress, cb, enmType)); 5418 5422 #ifdef VBOX_WITH_VMSVGA 5419 AssertReturn((iRegion == ((pThis->fVMSVGAEnabled) ? 1 : 0)) && (enmType == ((pThis->fVMSVGAEnabled) ? PCI_ADDRESS_SPACE_MEM : PCI_ADDRESS_SPACE_MEM_PREFETCH)), VERR_INTERNAL_ERROR); 5423 AssertReturn( (iRegion == ((pThis->fVMSVGAEnabled) ? 1 : 0)) 5424 && (enmType == ((pThis->fVMSVGAEnabled) ? PCI_ADDRESS_SPACE_MEM : PCI_ADDRESS_SPACE_MEM_PREFETCH)), 5425 VERR_INTERNAL_ERROR); 5420 5426 #else 5421 5427 AssertReturn(iRegion == 0 && enmType == PCI_ADDRESS_SPACE_MEM_PREFETCH, VERR_INTERNAL_ERROR); … … 5461 5467 { 5462 5468 #endif 5463 rc = PGMHandlerPhysicalDeregister(PDMDevHlpGetVM(pDevIns), pThis->GCPhysVRAM);5464 AssertRC(rc);5469 rc = PGMHandlerPhysicalDeregister(PDMDevHlpGetVM(pDevIns), pThis->GCPhysVRAM); 5470 AssertRC(rc); 5465 5471 #ifdef VBOX_WITH_VMSVGA 5466 5472 } … … 5891 5897 static DECLCALLBACK(void) vgaDetach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags) 5892 5898 { 5899 RT_NOREF1(fFlags); 5900 PVGASTATE pThis = PDMINS_2_DATA(pDevIns, PVGASTATE); 5901 AssertMsg(fFlags & PDM_TACH_FLAGS_NOT_HOT_PLUG, ("VGA device does not support hotplugging\n")); 5902 5893 5903 /* 5894 5904 * Reset the interfaces and update the controller state. 5895 5905 */ 5896 PVGASTATE pThis = PDMINS_2_DATA(pDevIns, PVGASTATE);5897 5898 AssertMsg(fFlags & PDM_TACH_FLAGS_NOT_HOT_PLUG,5899 ("VGA device does not support hotplugging\n"));5900 5901 5906 switch (iLUN) 5902 5907 { -
trunk/src/VBox/Devices/Graphics/DevVGASavedState.h
r62514 r62885 38 38 uint64_t uMarker; \ 39 39 int rcMarker = SSMR3GetU64(pSSM, &uMarker); \ 40 AssertLogRelRCReturn(rc , rc); \40 AssertLogRelRCReturn(rcMarker, rcMarker); \ 41 41 AssertLogRelMsgReturn(uMarker == VGA_SAVED_STATE_MAKE_MARKER(uSub), \ 42 42 ("Bad VGA marker: expected %llx, got %llx\n", VGA_SAVED_STATE_MAKE_MARKER(uSub), uMarker), \ -
trunk/src/VBox/Devices/Input/PS2K.cpp
r62513 r62885 1013 1013 static DECLCALLBACK(void) ps2kTypematicTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 1014 1014 { 1015 PPS2K pThis = (PS2K *)pvUser; NOREF(pDevIns); 1015 RT_NOREF2(pDevIns, pTimer); 1016 PPS2K pThis = (PS2K *)pvUser; 1016 1017 LogFlowFunc(("Typematic state=%d, key %02X\n", pThis->enmTypematicState, pThis->u8TypematicKey)); 1017 1018 … … 1037 1038 static DECLCALLBACK(void) ps2kDelayTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 1038 1039 { 1039 PPS2K pThis = (PS2K *)pvUser; NOREF(pDevIns); 1040 RT_NOREF2(pDevIns, pTimer); 1041 PPS2K pThis = (PS2K *)pvUser; 1040 1042 1041 1043 LogFlowFunc(("Delay timer: cmd %02X\n", pThis->u8CurrCmd)); … … 1349 1351 int PS2KLoadDone(PPS2K pThis, PSSMHANDLE pSSM) 1350 1352 { 1353 RT_NOREF1(pSSM); 1354 1351 1355 /* This *must* be done after the inital load because it may trigger 1352 1356 * interrupts and change the interrupt controller state. … … 1380 1384 void PS2KRelocate(PPS2K pThis, RTGCINTPTR offDelta, PPDMDEVINS pDevIns) 1381 1385 { 1386 RT_NOREF1(pDevIns); 1382 1387 LogFlowFunc(("Relocating PS2K\n")); 1383 1388 pThis->pKbdDelayTimerRC = TMTimerRCPtr(pThis->pKbdDelayTimerR3); … … 1388 1393 int PS2KConstruct(PPS2K pThis, PPDMDEVINS pDevIns, void *pParent, int iInstance) 1389 1394 { 1390 int rc; 1391 1395 RT_NOREF2(pDevIns, iInstance); 1392 1396 LogFlowFunc(("iInstance=%d\n", iInstance)); 1393 1397 … … 1410 1414 */ 1411 1415 PTMTIMER pTimer; 1412 rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_REAL, ps2kTypematicTimer, pThis,1413 TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "PS2K Typematic Timer", &pTimer);1416 int rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_REAL, ps2kTypematicTimer, pThis, 1417 TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "PS2K Typematic Timer", &pTimer); 1414 1418 if (RT_FAILURE(rc)) 1415 1419 return rc; -
trunk/src/VBox/Devices/Input/PS2M.cpp
r62513 r62885 835 835 static DECLCALLBACK(void) ps2mThrottleTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 836 836 { 837 PPS2M pThis = (PS2M *)pvUser; NOREF(pDevIns); 837 RT_NOREF2(pDevIns, pTimer); 838 PPS2M pThis = (PS2M *)pvUser; 838 839 uint32_t uHaveEvents; 839 840 … … 868 869 static DECLCALLBACK(void) ps2mDelayTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 869 870 { 870 PPS2M pThis = (PS2M *)pvUser; NOREF(pDevIns); 871 RT_NOREF2(pDevIns, pTimer); 872 PPS2M pThis = (PS2M *)pvUser; 871 873 872 874 LogFlowFunc(("Delay timer: cmd %02X\n", pThis->u8CurrCmd)); … … 942 944 int32_t dz, int32_t dw, uint32_t fButtons) 943 945 { 946 RT_NOREF1(dw); 944 947 int rc = VINF_SUCCESS; 945 948 … … 1079 1082 void PS2MSaveState(PPS2M pThis, PSSMHANDLE pSSM) 1080 1083 { 1081 uint32_t cPressed = 0;1082 1083 1084 LogFlowFunc(("Saving PS2M state\n")); 1084 1085 … … 1172 1173 void PS2MRelocate(PPS2M pThis, RTGCINTPTR offDelta, PPDMDEVINS pDevIns) 1173 1174 { 1175 RT_NOREF2(pDevIns, offDelta); 1174 1176 LogFlowFunc(("Relocating PS2M\n")); 1175 1177 pThis->pDelayTimerRC = TMTimerRCPtr(pThis->pDelayTimerR3); 1176 1178 pThis->pThrottleTimerRC = TMTimerRCPtr(pThis->pThrottleTimerR3); 1177 NOREF(offDelta);1178 1179 } 1179 1180 1180 1181 int PS2MConstruct(PPS2M pThis, PPDMDEVINS pDevIns, void *pParent, int iInstance) 1181 1182 { 1182 int rc;1183 RT_NOREF1(iInstance); 1183 1184 1184 1185 LogFlowFunc(("iInstance=%d\n", iInstance)); … … 1204 1205 */ 1205 1206 PTMTIMER pTimer; 1206 rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_REAL, ps2mThrottleTimer, pThis,1207 TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "PS2M Throttle Timer", &pTimer);1207 int rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_REAL, ps2mThrottleTimer, pThis, 1208 TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "PS2M Throttle Timer", &pTimer); 1208 1209 if (RT_FAILURE(rc)) 1209 1210 return rc; -
trunk/src/VBox/Devices/Input/UsbKbd.cpp
r62513 r62885 498 498 static int usbHidCompleteStall(PUSBHID pThis, PUSBHIDEP pEp, PVUSBURB pUrb, const char *pszWhy) 499 499 { 500 RT_NOREF1(pszWhy); 500 501 Log(("usbHidCompleteStall/#%u: pUrb=%p:%s: %s\n", pThis->pUsbIns->iInstance, pUrb, pUrb->pszDesc, pszWhy)); 501 502 … … 1151 1152 static DECLCALLBACK(int) usbHidUsbSetInterface(PPDMUSBINS pUsbIns, uint8_t bInterfaceNumber, uint8_t bAlternateSetting) 1152 1153 { 1154 RT_NOREF3(pUsbIns, bInterfaceNumber, bAlternateSetting); 1153 1155 LogFlow(("usbHidUsbSetInterface/#%u: bInterfaceNumber=%u bAlternateSetting=%u\n", pUsbIns->iInstance, bInterfaceNumber, bAlternateSetting)); 1154 1156 Assert(bAlternateSetting == 0); … … 1163 1165 const void *pvOldCfgDesc, const void *pvOldIfState, const void *pvNewCfgDesc) 1164 1166 { 1167 RT_NOREF3(pvOldCfgDesc, pvOldIfState, pvNewCfgDesc); 1165 1168 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 1166 1169 LogFlow(("usbHidUsbSetConfiguration/#%u: bConfigurationValue=%u\n", pUsbIns->iInstance, bConfigurationValue)); … … 1191 1194 static DECLCALLBACK(PCPDMUSBDESCCACHE) usbHidUsbGetDescriptorCache(PPDMUSBINS pUsbIns) 1192 1195 { 1193 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 1196 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); RT_NOREF_PV(pThis); 1194 1197 LogFlow(("usbHidUsbGetDescriptorCache/#%u:\n", pUsbIns->iInstance)); 1195 1198 return &g_UsbHidDescCache; … … 1202 1205 static DECLCALLBACK(int) usbHidUsbReset(PPDMUSBINS pUsbIns, bool fResetOnLinux) 1203 1206 { 1207 RT_NOREF1(fResetOnLinux); 1204 1208 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 1205 1209 LogFlow(("usbHidUsbReset/#%u:\n", pUsbIns->iInstance)); … … 1218 1222 static DECLCALLBACK(void) usbHidDestruct(PPDMUSBINS pUsbIns) 1219 1223 { 1224 PDMUSB_CHECK_VERSIONS_RETURN_VOID(pUsbIns); 1220 1225 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 1221 1226 LogFlow(("usbHidDestruct/#%u:\n", pUsbIns->iInstance)); … … 1242 1247 static DECLCALLBACK(int) usbHidConstruct(PPDMUSBINS pUsbIns, int iInstance, PCFGMNODE pCfg, PCFGMNODE pCfgGlobal) 1243 1248 { 1249 RT_NOREF1(pCfgGlobal); 1250 PDMUSB_CHECK_VERSIONS_RETURN(pUsbIns); 1244 1251 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 1245 1252 Log(("usbHidConstruct/#%u:\n", iInstance)); -
trunk/src/VBox/Devices/Input/UsbMouse.cpp
r62513 r62885 1440 1440 * @interface_method_impl{PDMIMOUSEPORT,pfnPutEvent} 1441 1441 */ 1442 static DECLCALLBACK(int) usbHidMousePutEvent(PPDMIMOUSEPORT pInterface, 1443 int32_t d x, int32_t dy, int32_t dz,1444 int32_t dw, uint32_t fButtons) 1445 { 1442 static DECLCALLBACK(int) usbHidMousePutEvent(PPDMIMOUSEPORT pInterface, int32_t dx, int32_t dy, 1443 int32_t dz, int32_t dw, uint32_t fButtons) 1444 { 1445 RT_NOREF1(dw); 1446 1446 PUSBHID pThis = RT_FROM_MEMBER(pInterface, USBHID, Lun0.IPort); 1447 1447 RTCritSectEnter(&pThis->CritSect); … … 1796 1796 #define SET_PROTOCOL 0x0B 1797 1797 1798 static uint8_t sau8QASampleBlob[256] =1798 static uint8_t const g_abQASampleBlob[256] = 1799 1799 { 1800 1800 0xfc, 0x28, 0xfe, 0x84, 0x40, 0xcb, 0x9a, 0x87, … … 1888 1888 else if (u8ReportType == 3 && u8ReportID == REPORTID_TOUCH_QABLOB) 1889 1889 { 1890 uint32_t cbLeft = pUrb->cbData;1891 1890 pUrb->abData[sizeof(VUSBSETUP) + 0] = REPORTID_TOUCH_QABLOB; /* Report Id. */ 1892 1891 memcpy(&pUrb->abData[sizeof(VUSBSETUP) + 1], 1893 sau8QASampleBlob, sizeof(sau8QASampleBlob));1894 cbData = sizeof( sau8QASampleBlob) + 1;1892 g_abQASampleBlob, sizeof(g_abQASampleBlob)); 1893 cbData = sizeof(g_abQASampleBlob) + 1; 1895 1894 } 1896 1895 else if (u8ReportType == 3 && u8ReportID == REPORTID_TOUCH_DEVCONFIG) … … 2222 2221 const void *pvOldCfgDesc, const void *pvOldIfState, const void *pvNewCfgDesc) 2223 2222 { 2223 RT_NOREF3(pvOldCfgDesc, pvOldIfState, pvNewCfgDesc); 2224 2224 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 2225 2225 LogRelFlow(("usbHidUsbSetConfiguration/#%u: bConfigurationValue=%u\n", … … 2274 2274 static DECLCALLBACK(int) usbHidUsbReset(PPDMUSBINS pUsbIns, bool fResetOnLinux) 2275 2275 { 2276 RT_NOREF1(fResetOnLinux); 2276 2277 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 2277 2278 LogRelFlow(("usbHidUsbReset/#%u:\n", pUsbIns->iInstance)); … … 2290 2291 static DECLCALLBACK(void) usbHidDestruct(PPDMUSBINS pUsbIns) 2291 2292 { 2293 PDMUSB_CHECK_VERSIONS_RETURN_VOID(pUsbIns); 2292 2294 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 2293 2295 LogRelFlow(("usbHidDestruct/#%u:\n", pUsbIns->iInstance)); … … 2313 2315 static DECLCALLBACK(int) usbHidConstruct(PPDMUSBINS pUsbIns, int iInstance, PCFGMNODE pCfg, PCFGMNODE pCfgGlobal) 2314 2316 { 2317 RT_NOREF1(pCfgGlobal); 2318 PDMUSB_CHECK_VERSIONS_RETURN(pUsbIns); 2315 2319 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 2316 2320 char szMode[64]; -
trunk/src/VBox/Devices/PC/DevLPC.cpp
r62509 r62885 79 79 static uint32_t rcba_ram_readl(LPCState* s, RTGCPHYS addr) 80 80 { 81 RT_NOREF1(s); 81 82 Log(("rcba_read at %llx\n", (uint64_t)addr)); 82 83 int32_t iIndex = (addr - RCBA_BASE); … … 105 106 static void rcba_ram_writel(LPCState* s, RTGCPHYS addr, uint32_t value) 106 107 { 108 RT_NOREF2(s, value); 107 109 Log(("rcba_write %llx = %#x\n", (uint64_t)addr, value)); 108 110 int32_t iIndex = (addr - RCBA_BASE); … … 133 135 PDMBOTHCBDECL(int) lpcMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb) 134 136 { 137 RT_NOREF2(pvUser, cb); 135 138 LPCState *s = PDMINS_2_DATA(pDevIns, LPCState*); 136 139 Assert(cb == 4); Assert(!(GCPhysAddr & 3)); … … 153 156 PDMBOTHCBDECL(int) lpcMMIOWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void const *pv, unsigned cb) 154 157 { 158 RT_NOREF1(pvUser); 155 159 LPCState *s = PDMINS_2_DATA(pDevIns, LPCState*); 156 160 … … 182 186 static DECLCALLBACK(void) lpcInfo(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 183 187 { 188 RT_NOREF1(pszArgs); 184 189 LPCState *pThis = PDMINS_2_DATA(pDevIns, LPCState *); 185 190 LogFlow(("lpcInfo: \n")); … … 210 215 static DECLCALLBACK(int) lpcConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 211 216 { 217 RT_NOREF2(iInstance, pCfg); 218 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 212 219 LPCState *pThis = PDMINS_2_DATA(pDevIns, LPCState *); 213 220 int rc; -
trunk/src/VBox/Devices/Storage/VSCSI/VSCSIDevice.cpp
r62506 r62885 325 325 size_t cbSense, void *pvVScsiReqUser) 326 326 { 327 RT_NOREF1(cbSGList); 327 328 PVSCSIDEVICEINT pVScsiDevice = (PVSCSIDEVICEINT)hVScsiDevice; 328 329 PVSCSIREQINT pVScsiReq = NULL; -
trunk/src/VBox/Devices/Storage/VSCSI/VSCSILunMmc.cpp
r62506 r62885 128 128 static int mmcReadTOCMulti(PVSCSILUNINT pVScsiLun, PVSCSIREQINT pVScsiReq, uint16_t cbMaxTransfer, bool fMSF) 129 129 { 130 PVSCSILUNMMC pVScsiLunMmc = (PVSCSILUNMMC)pVScsiLun;130 RT_NOREF1(cbMaxTransfer); 131 131 uint8_t aReply[32]; 132 132 uint8_t *pbBuf = aReply; … … 172 172 static DECLCALLBACK(int) vscsiLunMmcDestroy(PVSCSILUNINT pVScsiLun) 173 173 { 174 PVSCSILUNMMC pVScsiLunMmc = (PVSCSILUNMMC)pVScsiLun; 175 174 RT_NOREF1(pVScsiLun); 176 175 return VINF_SUCCESS; 177 176 } … … 368 367 case SCSI_LOG_SENSE: 369 368 { 370 uint16_t cbMax = vscsiBE2HU16(&pVScsiReq->pbCDB[7]);371 369 uint8_t uPageCode = pVScsiReq->pbCDB[2] & 0x3f; 372 370 uint8_t uSubPageCode = pVScsiReq->pbCDB[3]; -
trunk/src/VBox/Devices/Storage/VSCSI/VSCSILunSbc.cpp
r62506 r62885 428 428 case SCSI_LOG_SENSE: 429 429 { 430 uint16_t cbMax = vscsiBE2HU16(&pVScsiReq->pbCDB[7]);431 430 uint8_t uPageCode = pVScsiReq->pbCDB[2] & 0x3f; 432 431 uint8_t uSubPageCode = pVScsiReq->pbCDB[3]; -
trunk/src/VBox/Devices/build/VBoxDD.cpp
r62586 r62885 384 384 { 385 385 int rc = VINF_SUCCESS; 386 RT_NOREF1(u32Version); 386 387 387 388 #ifdef VBOX_WITH_USB
Note:
See TracChangeset
for help on using the changeset viewer.