VirtualBox

儲存庫 vbox 的更動 62955


忽略:
時間撮記:
2016-8-4 上午07:45:06 (8 年 以前)
作者:
vboxsync
訊息:

Devices: warnings

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r62622 r62955  
    985985static DECLCALLBACK(uint32_t) ohciRhGetUSBVersions(PVUSBIROOTHUBPORT pInterface)
    986986{
     987    RT_NOREF(pInterface);
    987988    return VUSB_STDVER_11;
    988989}
     
    10351036static DECLCALLBACK(void) ohciRhDetach(PVUSBIROOTHUBPORT pInterface, PVUSBIDEVICE pDev, unsigned uPort)
    10361037{
     1038    RT_NOREF(pDev);
    10371039    POHCI pThis = VUSBIROOTHUBPORT_2_OHCI(pInterface);
    10381040    LogFlow(("ohciRhDetach: pDev=%p uPort=%u\n", pDev, uPort));
     
    15861588              pszLogMsg));
    15871589    }
     1590#else
     1591    RT_NOREF(pszLogMsg);
    15881592#endif
    15891593    ohciPutDWords(pThis, TdAddr, (uint32_t *)pTd, sizeof(*pTd) >> 2);
     
    16211625              (ITdOld.aPSW[7] >> 12) != (pITd->aPSW[7] >> 12) ? "*" : "", pITd->aPSW[7] >> 12,  (ITdOld.aPSW[7] & 0xfff) != (pITd->aPSW[7] & 0xfff) ? "*" : "", pITd->aPSW[7] & 0xfff));
    16221626    }
     1627#else
     1628    RT_NOREF(pszLogMsg);
    16231629#endif
    16241630    ohciPutDWords(pThis, ITdAddr, (uint32_t *)pITd, sizeof(*pITd) / sizeof(uint32_t));
     
    23982404 * In general, all URBs should have status OK.
    23992405 */
    2400 static void ohciRhXferCompleteIsochronousURB(POHCI pThis, PVUSBURB pUrb, POHCIED pEd, int cFmAge)
     2406static void ohciRhXferCompleteIsochronousURB(POHCI pThis, PVUSBURB pUrb /*, POHCIED pEd , int cFmAge*/)
    24012407{
    24022408    /*
     
    25532559static void ohciRhXferCompleteGeneralURB(POHCI pThis, PVUSBURB pUrb, POHCIED pEd, int cFmAge)
    25542560{
     2561    RT_NOREF(cFmAge);
     2562
    25552563    /*
    25562564     * Copy the data back (if IN operation) and update the TDs.
     
    27482756     */
    27492757    if (pUrb->enmType == VUSBXFERTYPE_ISOC)
    2750         ohciRhXferCompleteIsochronousURB(pThis, pUrb, &Ed, cFmAge);
     2758        ohciRhXferCompleteIsochronousURB(pThis, pUrb /*, &Ed , cFmAge*/);
    27512759    else
    27522760        ohciRhXferCompleteGeneralURB(pThis, pUrb, &Ed, cFmAge);
     
    28322840 * Service a general transport descriptor.
    28332841 */
    2834 static bool ohciServiceTd(POHCI pThis, VUSBXFERTYPE enmType, PCOHCIED pEd, uint32_t EdAddr, uint32_t TdAddr, uint32_t *pNextTdAddr, const char *pszListName)
    2835 {
     2842static 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
    28362847    /*
    28372848     * Read the TD and setup the buffer data.
     
    29432954                                  uint32_t TdAddr, uint32_t *pNextTdAddr, const char *pszListName)
    29442955{
     2956    RT_NOREF(pszListName);
     2957
    29452958    /*
    29462959     * Read the TDs involved in this URB.
     
    40554068static DECLCALLBACK(bool) ohciR3StartFrame(PVUSBIROOTHUBPORT pInterface, uint32_t u32FrameNo)
    40564069{
     4070    RT_NOREF(u32FrameNo);
    40574071    POHCI pThis = VUSBIROOTHUBPORT_2_OHCI(pInterface);
    40584072
     
    41114125static DECLCALLBACK(void) ohciFrameBoundaryTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    41124126{
     4127    RT_NOREF(pDevIns, pTimer, pvUser);
    41134128}
    41144129
     
    53345349static DECLCALLBACK(int) ohciR3Map(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType)
    53355350{
     5351    RT_NOREF(iRegion, enmType);
    53365352    POHCI pThis = (POHCI)pPciDev;
    53375353    int rc = PDMDevHlpMMIORegister(pThis->CTX_SUFF(pDevIns), GCPhysAddress, cb, NULL /*pvUser*/,
     
    53705386static DECLCALLBACK(int) ohciR3SavePrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
    53715387{
     5388    RT_NOREF(pSSM);
    53725389    POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI);
    53735390    POHCIROOTHUB pRh = &pThis->RootHub;
     
    54555472static DECLCALLBACK(int) ohciR3SaveDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
    54565473{
     5474    RT_NOREF(pSSM);
    54575475    POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI);
     5476    LogFlow(("ohciR3SaveDone: \n"));
     5477
     5478    /*
     5479     * NULL the dev pointers.
     5480     */
    54585481    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++)
    54685484    {
    54695485        if (   pRh->aPorts[i].pDev
     
    54755491     * Attach the devices.
    54765492     */
    5477     for (i = 0; i < RT_ELEMENTS(pRh->aPorts); i++)
     5493    for (unsigned i = 0; i < RT_ELEMENTS(pRh->aPorts); i++)
    54785494    {
    54795495        PVUSBIDEVICE pDev = Rh.aPorts[i].pDev;
     
    54995515static DECLCALLBACK(int) ohciR3LoadPrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
    55005516{
    5501     int rc = VINF_SUCCESS;
     5517    RT_NOREF(pSSM);
    55025518    POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI);
    55035519    LogFlow(("ohciR3LoadPrep:\n"));
    55045520    if (!pThis->pLoad)
    55055521    {
    5506         POHCIROOTHUB pRh = &pThis->RootHub;
    5507         OHCILOAD Load;
    5508         unsigned i;
    5509 
    55105522        /*
    55115523         * Detach all devices which are present in this session. Save them in the load
    55125524         * structure so we can reattach them after restoring the guest.
    55135525         */
     5526        POHCIROOTHUB pRh = &pThis->RootHub;
     5527        OHCILOAD Load;
    55145528        Load.pTimer = NULL;
    55155529        Load.cDevs = 0;
    5516         for (i = 0; i < RT_ELEMENTS(pRh->aPorts); i++)
     5530        for (unsigned i = 0; i < RT_ELEMENTS(pRh->aPorts); i++)
    55175531        {
    55185532            PVUSBIDEVICE pDev = pRh->aPorts[i].pDev;
     
    55395553    /* else: we ASSUME no device can be attached or detach in the period
    55405554     *       between a state load and the pLoad stuff is processed. */
    5541     return rc;
     5555    return VINF_SUCCESS;
    55425556}
    55435557
     
    57295743static DECLCALLBACK(int) ohciR3LoadDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
    57305744{
     5745    RT_NOREF(pSSM);
    57315746    POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI);
    57325747    LogFlow(("ohciR3LoadDone:\n"));
     
    57545769static DECLCALLBACK(void) ohciR3LoadReattachDevices(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    57555770{
     5771    RT_NOREF(pDevIns);
    57565772    POHCI pThis = (POHCI)pvUser;
    57575773    POHCILOAD pLoad = pThis->pLoad;
     
    58305846static DECLCALLBACK(void) ohciR3InfoRegs(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    58315847{
     5848    RT_NOREF(pszArgs);
    58325849    POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI);
    58335850    uint32_t val, ctl, status;
     
    58865903static DECLCALLBACK(void) ohciR3Relocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)
    58875904{
     5905    RT_NOREF(offDelta);
    58885906    POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI);
    58895907    pThis->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette