儲存庫 vbox 的更動 62955
- 時間撮記:
- 2016-8-4 上午07:45:06 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r62622 r62955 985 985 static DECLCALLBACK(uint32_t) ohciRhGetUSBVersions(PVUSBIROOTHUBPORT pInterface) 986 986 { 987 RT_NOREF(pInterface); 987 988 return VUSB_STDVER_11; 988 989 } … … 1035 1036 static DECLCALLBACK(void) ohciRhDetach(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort) 1036 1037 { 1038 RT_NOREF(pDev); 1037 1039 POHCI pThis = VUSBIROOTHUBPORT_2_OHCI(pInterface); 1038 1040 LogFlow(("ohciRhDetach: pDev=%p uPort=%u\n", pDev, uPort)); … … 1586 1588 pszLogMsg)); 1587 1589 } 1590 #else 1591 RT_NOREF(pszLogMsg); 1588 1592 #endif 1589 1593 ohciPutDWords(pThis, TdAddr, (uint32_t *)pTd, sizeof(*pTd) >> 2); … … 1621 1625 (ITdOld.aPSW[7] >> 12) != (pITd->aPSW[7] >> 12) ? "*" : "", pITd->aPSW[7] >> 12, (ITdOld.aPSW[7] & 0xfff) != (pITd->aPSW[7] & 0xfff) ? "*" : "", pITd->aPSW[7] & 0xfff)); 1622 1626 } 1627 #else 1628 RT_NOREF(pszLogMsg); 1623 1629 #endif 1624 1630 ohciPutDWords(pThis, ITdAddr, (uint32_t *)pITd, sizeof(*pITd) / sizeof(uint32_t)); … … 2398 2404 * In general, all URBs should have status OK. 2399 2405 */ 2400 static void ohciRhXferCompleteIsochronousURB(POHCI pThis, PVUSBURB pUrb , POHCIED pEd, int cFmAge)2406 static void ohciRhXferCompleteIsochronousURB(POHCI pThis, PVUSBURB pUrb /*, POHCIED pEd , int cFmAge*/) 2401 2407 { 2402 2408 /* … … 2553 2559 static void ohciRhXferCompleteGeneralURB(POHCI pThis, PVUSBURB pUrb, POHCIED pEd, int cFmAge) 2554 2560 { 2561 RT_NOREF(cFmAge); 2562 2555 2563 /* 2556 2564 * Copy the data back (if IN operation) and update the TDs. … … 2748 2756 */ 2749 2757 if (pUrb->enmType == VUSBXFERTYPE_ISOC) 2750 ohciRhXferCompleteIsochronousURB(pThis, pUrb , &Ed, cFmAge);2758 ohciRhXferCompleteIsochronousURB(pThis, pUrb /*, &Ed , cFmAge*/); 2751 2759 else 2752 2760 ohciRhXferCompleteGeneralURB(pThis, pUrb, &Ed, cFmAge); … … 2832 2840 * Service a general transport descriptor. 2833 2841 */ 2834 static bool ohciServiceTd(POHCI pThis, VUSBXFERTYPE enmType, PCOHCIED pEd, uint32_t EdAddr, uint32_t TdAddr, uint32_t *pNextTdAddr, const char *pszListName) 2835 { 2842 static bool ohciServiceTd(POHCI pThis, VUSBXFERTYPE enmType, PCOHCIED pEd, uint32_t EdAddr, uint32_t TdAddr, 2843 uint32_t *pNextTdAddr, const char *pszListName) 2844 { 2845 RT_NOREF(pszListName); 2846 2836 2847 /* 2837 2848 * Read the TD and setup the buffer data. … … 2943 2954 uint32_t TdAddr, uint32_t *pNextTdAddr, const char *pszListName) 2944 2955 { 2956 RT_NOREF(pszListName); 2957 2945 2958 /* 2946 2959 * Read the TDs involved in this URB. … … 4055 4068 static DECLCALLBACK(bool) ohciR3StartFrame(PVUSBIROOTHUBPORT pInterface, uint32_t u32FrameNo) 4056 4069 { 4070 RT_NOREF(u32FrameNo); 4057 4071 POHCI pThis = VUSBIROOTHUBPORT_2_OHCI(pInterface); 4058 4072 … … 4111 4125 static DECLCALLBACK(void) ohciFrameBoundaryTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 4112 4126 { 4127 RT_NOREF(pDevIns, pTimer, pvUser); 4113 4128 } 4114 4129 … … 5334 5349 static DECLCALLBACK(int) ohciR3Map(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType) 5335 5350 { 5351 RT_NOREF(iRegion, enmType); 5336 5352 POHCI pThis = (POHCI)pPciDev; 5337 5353 int rc = PDMDevHlpMMIORegister(pThis->CTX_SUFF(pDevIns), GCPhysAddress, cb, NULL /*pvUser*/, … … 5370 5386 static DECLCALLBACK(int) ohciR3SavePrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 5371 5387 { 5388 RT_NOREF(pSSM); 5372 5389 POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI); 5373 5390 POHCIROOTHUB pRh = &pThis->RootHub; … … 5455 5472 static DECLCALLBACK(int) ohciR3SaveDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 5456 5473 { 5474 RT_NOREF(pSSM); 5457 5475 POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI); 5476 LogFlow(("ohciR3SaveDone: \n")); 5477 5478 /* 5479 * NULL the dev pointers. 5480 */ 5458 5481 POHCIROOTHUB pRh = &pThis->RootHub; 5459 OHCIROOTHUB Rh; 5460 unsigned i; 5461 LogFlow(("ohciR3SaveDone: \n")); 5462 5463 /* 5464 * NULL the dev pointers. 5465 */ 5466 Rh = *pRh; 5467 for (i = 0; i < RT_ELEMENTS(pRh->aPorts); i++) 5482 OHCIROOTHUB Rh = *pRh; 5483 for (unsigned i = 0; i < RT_ELEMENTS(pRh->aPorts); i++) 5468 5484 { 5469 5485 if ( pRh->aPorts[i].pDev … … 5475 5491 * Attach the devices. 5476 5492 */ 5477 for ( i = 0; i < RT_ELEMENTS(pRh->aPorts); i++)5493 for (unsigned i = 0; i < RT_ELEMENTS(pRh->aPorts); i++) 5478 5494 { 5479 5495 PVUSBIDEVICE pDev = Rh.aPorts[i].pDev; … … 5499 5515 static DECLCALLBACK(int) ohciR3LoadPrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 5500 5516 { 5501 int rc = VINF_SUCCESS;5517 RT_NOREF(pSSM); 5502 5518 POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI); 5503 5519 LogFlow(("ohciR3LoadPrep:\n")); 5504 5520 if (!pThis->pLoad) 5505 5521 { 5506 POHCIROOTHUB pRh = &pThis->RootHub;5507 OHCILOAD Load;5508 unsigned i;5509 5510 5522 /* 5511 5523 * Detach all devices which are present in this session. Save them in the load 5512 5524 * structure so we can reattach them after restoring the guest. 5513 5525 */ 5526 POHCIROOTHUB pRh = &pThis->RootHub; 5527 OHCILOAD Load; 5514 5528 Load.pTimer = NULL; 5515 5529 Load.cDevs = 0; 5516 for ( i = 0; i < RT_ELEMENTS(pRh->aPorts); i++)5530 for (unsigned i = 0; i < RT_ELEMENTS(pRh->aPorts); i++) 5517 5531 { 5518 5532 PVUSBIDEVICE pDev = pRh->aPorts[i].pDev; … … 5539 5553 /* else: we ASSUME no device can be attached or detach in the period 5540 5554 * between a state load and the pLoad stuff is processed. */ 5541 return rc;5555 return VINF_SUCCESS; 5542 5556 } 5543 5557 … … 5729 5743 static DECLCALLBACK(int) ohciR3LoadDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 5730 5744 { 5745 RT_NOREF(pSSM); 5731 5746 POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI); 5732 5747 LogFlow(("ohciR3LoadDone:\n")); … … 5754 5769 static DECLCALLBACK(void) ohciR3LoadReattachDevices(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 5755 5770 { 5771 RT_NOREF(pDevIns); 5756 5772 POHCI pThis = (POHCI)pvUser; 5757 5773 POHCILOAD pLoad = pThis->pLoad; … … 5830 5846 static DECLCALLBACK(void) ohciR3InfoRegs(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 5831 5847 { 5848 RT_NOREF(pszArgs); 5832 5849 POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI); 5833 5850 uint32_t val, ctl, status; … … 5886 5903 static DECLCALLBACK(void) ohciR3Relocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 5887 5904 { 5905 RT_NOREF(offDelta); 5888 5906 POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI); 5889 5907 pThis->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器