VirtualBox

儲存庫 vbox 的更動 62622


忽略:
時間撮記:
2016-7-28 下午02:53:44 (8 年 以前)
作者:
vboxsync
訊息:

Devices: unused parameter warnings.

檔案:
修改 1 筆資料

圖例:

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

    r62621 r62622  
    41914191static int HcRevision_r(PCOHCI pThis, uint32_t iReg, uint32_t *pu32Value)
    41924192{
     4193    RT_NOREF2(pThis, iReg);
    41934194    Log2(("HcRevision_r() -> 0x10\n"));
    41944195    *pu32Value = 0x10; /* OHCI revision 1.0, no emulation. */
     
    42014202static int HcRevision_w(POHCI pThis, uint32_t iReg, uint32_t u32Value)
    42024203{
     4204    RT_NOREF3(pThis, iReg, u32Value);
    42034205    Log2(("HcRevision_w(%#010x) - denied\n", u32Value));
    42044206    AssertMsgFailed(("Invalid operation!!! u32Value=%#010x\n", u32Value));
     
    42114213static int HcControl_r(PCOHCI pThis, uint32_t iReg, uint32_t *pu32Value)
    42124214{
     4215    RT_NOREF1(iReg);
    42134216    uint32_t ctl = pThis->ctl;
    42144217    Log2(("HcControl_r -> %#010x - CBSR=%d PLE=%d IE=%d CLE=%d BLE=%d HCFS=%#x IR=%d RWC=%d RWE=%d\n",
     
    42244227static int HcControl_w(POHCI pThis, uint32_t iReg, uint32_t val)
    42254228{
     4229    RT_NOREF1(iReg);
     4230
    42264231    /* log it. */
    42274232    uint32_t chg = pThis->ctl ^ val; NOREF(chg);
     
    42954300          status, status & 1, (status >> 1) & 1, (status >> 2) & 1, (status >> 3) & 1, (status >> 16) & 3));
    42964301    *pu32Value = status;
     4302    RT_NOREF1(iReg);
    42974303    return VINF_SUCCESS;
    42984304}
     
    43034309static int HcCommandStatus_w(POHCI pThis, uint32_t iReg, uint32_t val)
    43044310{
     4311    RT_NOREF1(iReg);
     4312
    43054313    /* log */
    43064314    uint32_t chg = pThis->status ^ val; NOREF(chg);
     
    43474355          (val >> 6) & 1, (val >> 30) & 1));
    43484356    *pu32Value = val;
     4357    RT_NOREF1(iReg);
    43494358    return VINF_SUCCESS;
    43504359}
     
    43554364static int HcInterruptStatus_w(POHCI pThis, uint32_t iReg, uint32_t val)
    43564365{
     4366    RT_NOREF1(iReg);
     4367
    43574368    uint32_t res = pThis->intr_status & ~val;
    43584369    uint32_t chg = pThis->intr_status ^ res; NOREF(chg);
     
    43954406          (val >> 6) & 1, (val >> 30) & 1, (val >> 31) & 1));
    43964407    *pu32Value = val;
     4408    RT_NOREF1(iReg);
    43974409    return VINF_SUCCESS;
    43984410}
     
    44034415static int HcInterruptEnable_w(POHCI pThis, uint32_t iReg, uint32_t val)
    44044416{
     4417    RT_NOREF1(iReg);
    44054418    uint32_t res = pThis->intr | val;
    44064419    uint32_t chg = pThis->intr ^ res; NOREF(chg);
     
    44454458
    44464459    *pu32Value = val;
     4460    RT_NOREF1(iReg);
    44474461    return VINF_SUCCESS;
    44484462}
     
    44534467static int HcInterruptDisable_w(POHCI pThis, uint32_t iReg, uint32_t val)
    44544468{
     4469    RT_NOREF1(iReg);
    44554470    uint32_t res = pThis->intr & ~val;
    44564471    uint32_t chg = pThis->intr ^ res; NOREF(chg);
     
    44874502    Log2(("HcHCCA_r() -> %#010x\n", pThis->hcca));
    44884503    *pu32Value = pThis->hcca;
     4504    RT_NOREF1(iReg);
    44894505    return VINF_SUCCESS;
    44904506}
     
    44974513    Log2(("HcHCCA_w(%#010x) - old=%#010x new=%#010x\n", Value, pThis->hcca, Value & OHCI_HCCA_MASK));
    44984514    pThis->hcca = Value & OHCI_HCCA_MASK;
     4515    RT_NOREF1(iReg);
    44994516    return VINF_SUCCESS;
    45004517}
     
    45074524    Log2(("HcPeriodCurrentED_r() -> %#010x\n", pThis->per_cur));
    45084525    *pu32Value = pThis->per_cur;
     4526    RT_NOREF1(iReg);
    45094527    return VINF_SUCCESS;
    45104528}
     
    45204538    AssertMsg(!(val & 7), ("Invalid alignment, val=%#010x\n", val));
    45214539    pThis->per_cur = val & ~7;
     4540    RT_NOREF1(iReg);
    45224541    return VINF_SUCCESS;
    45234542}
     
    45304549    Log2(("HcControlHeadED_r() -> %#010x\n", pThis->ctrl_head));
    45314550    *pu32Value = pThis->ctrl_head;
     4551    RT_NOREF1(iReg);
    45324552    return VINF_SUCCESS;
    45334553}
     
    45414561    AssertMsg(!(val & 7), ("Invalid alignment, val=%#010x\n", val));
    45424562    pThis->ctrl_head = val & ~7;
     4563    RT_NOREF1(iReg);
    45434564    return VINF_SUCCESS;
    45444565}
     
    45514572    Log2(("HcControlCurrentED_r() -> %#010x\n", pThis->ctrl_cur));
    45524573    *pu32Value = pThis->ctrl_cur;
     4574    RT_NOREF1(iReg);
    45534575    return VINF_SUCCESS;
    45544576}
     
    45634585    AssertMsg(!(val & 7), ("Invalid alignment, val=%#010x\n", val));
    45644586    pThis->ctrl_cur = val & ~7;
     4587    RT_NOREF1(iReg);
    45654588    return VINF_SUCCESS;
    45664589}
     
    45734596    Log2(("HcBulkHeadED_r() -> %#010x\n", pThis->bulk_head));
    45744597    *pu32Value = pThis->bulk_head;
     4598    RT_NOREF1(iReg);
    45754599    return VINF_SUCCESS;
    45764600}
     
    45844608    AssertMsg(!(val & 7), ("Invalid alignment, val=%#010x\n", val));
    45854609    pThis->bulk_head = val & ~7; /** @todo The ATI OHCI controller on my machine enforces 16-byte address alignment. */
     4610    RT_NOREF1(iReg);
    45864611    return VINF_SUCCESS;
    45874612}
     
    45944619    Log2(("HcBulkCurrentED_r() -> %#010x\n", pThis->bulk_cur));
    45954620    *pu32Value = pThis->bulk_cur;
     4621    RT_NOREF1(iReg);
    45964622    return VINF_SUCCESS;
    45974623}
     
    46064632    AssertMsg(!(val & 7), ("Invalid alignment, val=%#010x\n", val));
    46074633    pThis->bulk_cur = val & ~7;
     4634    RT_NOREF1(iReg);
    46084635    return VINF_SUCCESS;
    46094636}
     
    46174644    Log2(("HcDoneHead_r() -> 0x%#08x\n", pThis->done));
    46184645    *pu32Value = pThis->done;
     4646    RT_NOREF1(iReg);
    46194647    return VINF_SUCCESS;
    46204648}
     
    46254653static int HcDoneHead_w(POHCI pThis, uint32_t iReg, uint32_t val)
    46264654{
     4655    RT_NOREF3(pThis, iReg, val);
    46274656    Log2(("HcDoneHead_w(0x%#08x) - denied!!!\n", val));
    46284657    /*AssertMsgFailed(("Illegal operation!!! val=%#010x\n", val)); - OS/2 does this */
     
    46404669          val, val & 0x3fff, (val >> 16) & 0x7fff, val >> 31));
    46414670    *pu32Value = val;
     4671    RT_NOREF1(iReg);
    46424672    return VINF_SUCCESS;
    46434673}
     
    46484678static int HcFmInterval_w(POHCI pThis, uint32_t iReg, uint32_t val)
    46494679{
     4680    RT_NOREF1(iReg);
     4681
    46504682    /* log */
    46514683    uint32_t chg = val ^ ((pThis->fit << 31) | (pThis->fsmps << 16) | pThis->fi); NOREF(chg);
     
    46734705static int HcFmRemaining_r(PCOHCI pThis, uint32_t iReg, uint32_t *pu32Value)
    46744706{
     4707    RT_NOREF1(iReg);
    46754708    uint32_t Value = pThis->frt << 31;
    46764709    if ((pThis->ctl & OHCI_CTL_HCFS) == OHCI_USB_OPERATIONAL)
     
    46994732static int HcFmRemaining_w(POHCI pThis, uint32_t iReg, uint32_t val)
    47004733{
     4734    RT_NOREF3(pThis, iReg, val);
    47014735    Log2(("HcFmRemaining_w(%#010x) - denied\n", val));
    47024736    AssertMsgFailed(("Invalid operation!!! val=%#010x\n", val));
     
    47094743static int HcFmNumber_r(PCOHCI pThis, uint32_t iReg, uint32_t *pu32Value)
    47104744{
     4745    RT_NOREF1(iReg);
    47114746    uint32_t val = (uint16_t)pThis->HcFmNumber;
    47124747    Log2(("HcFmNumber_r() -> %#010x - FN=%#x(%d) (32-bit=%#x(%d))\n", val, val, val, pThis->HcFmNumber, pThis->HcFmNumber));
     
    47204755static int HcFmNumber_w(POHCI pThis, uint32_t iReg, uint32_t val)
    47214756{
     4757    RT_NOREF3(pThis, iReg, val);
    47224758    Log2(("HcFmNumber_w(%#010x) - denied\n", val));
    47234759    AssertMsgFailed(("Invalid operation!!! val=%#010x\n", val));
     
    47314767static int HcPeriodicStart_r(PCOHCI pThis, uint32_t iReg, uint32_t *pu32Value)
    47324768{
     4769    RT_NOREF1(iReg);
    47334770    Log2(("HcPeriodicStart_r() -> %#010x - PS=%d\n", pThis->pstart, pThis->pstart & 0x3fff));
    47344771    *pu32Value = pThis->pstart;
     
    47424779static int HcPeriodicStart_w(POHCI pThis, uint32_t iReg, uint32_t val)
    47434780{
     4781    RT_NOREF1(iReg);
    47444782    Log2(("HcPeriodicStart_w(%#010x) => PS=%d\n", val, val & 0x3fff));
    47454783    if (val & ~0x3fff)
     
    47544792static int HcLSThreshold_r(PCOHCI pThis, uint32_t iReg, uint32_t *pu32Value)
    47554793{
     4794    RT_NOREF2(pThis, iReg);
    47564795    Log2(("HcLSThreshold_r() -> %#010x\n", OHCI_LS_THRESH));
    47574796    *pu32Value = OHCI_LS_THRESH;
     
    47734812static int HcLSThreshold_w(POHCI pThis, uint32_t iReg, uint32_t val)
    47744813{
     4814    RT_NOREF3(pThis, iReg, val);
    47754815    Log2(("HcLSThreshold_w(%#010x) => LST=0x%03x(%d)\n", val, val & 0x0fff, val & 0x0fff));
    47764816    AssertMsg(val == OHCI_LS_THRESH,
     
    47854825static int HcRhDescriptorA_r(PCOHCI pThis, uint32_t iReg, uint32_t *pu32Value)
    47864826{
     4827    RT_NOREF1(iReg);
    47874828    uint32_t val = pThis->RootHub.desc_a;
    47884829#if 0 /* annoying */
     
    48004841static int HcRhDescriptorA_w(POHCI pThis, uint32_t iReg, uint32_t val)
    48014842{
     4843    RT_NOREF1(iReg);
    48024844    uint32_t chg = val ^ pThis->RootHub.desc_a; NOREF(chg);
    48034845    Log2(("HcRhDescriptorA_w(%#010x) => %sNDP=%d %sPSM=%d %sNPS=%d %sDT=%d %sOCPM=%d %sNOCP=%d %sPOTGT=%#x - %sPowerSwitching Set%sPower\n",
     
    48374879          val, val & 0xffff, val >> 16));
    48384880    *pu32Value = val;
     4881    RT_NOREF1(iReg);
    48394882    return VINF_SUCCESS;
    48404883}
     
    48454888static int HcRhDescriptorB_w(POHCI pThis, uint32_t iReg, uint32_t val)
    48464889{
     4890    RT_NOREF1(iReg);
    48474891    uint32_t chg = pThis->RootHub.desc_b ^ val; NOREF(chg);
    48484892    Log2(("HcRhDescriptorB_w(%#010x) => %sDR=0x%04x %sPPCM=0x%04x\n",
     
    48694913              val, val & 1, (val >> 1) & 1, (val >> 15) & 1, (val >> 16) & 1, (val >> 17) & 1, (val >> 31) & 1));
    48704914    *pu32Value = val;
     4915    RT_NOREF1(iReg);
    48714916    return VINF_SUCCESS;
    48724917}
     
    49264971          (chg >> 17) & 1 ? "*" : "", (val >> 17) & 1,
    49274972          (chg >> 31) & 1 ? "*" : "", (val >> 31) & 1));
     4973    RT_NOREF1(iReg);
    49284974    return VINF_SUCCESS;
    49294975#else  /* !IN_RING3 */
     4976    RT_NOREF3(pThis, iReg, val);
    49304977    return VINF_IOM_R3_MMIO_WRITE;
    49314978#endif /* !IN_RING3 */
     
    50635110    uint32_t        old_state = p->fReg;
    50645111
    5065 #ifdef LOG_ENABLED
     5112# ifdef LOG_ENABLED
    50665113    /*
    50675114     * Log it.
     
    50835130            Log2((" %s", apszCmdNames[j]));
    50845131    Log2(("\n"));
    5085 #endif
     5132# endif
    50865133
    50875134    /* Write to clear any of the change bits: CSC, PESC, PSSC, OCIC and PRSC */
     
    51595206    return VINF_SUCCESS;
    51605207#else /* !IN_RING3 */
     5208    RT_NOREF3(pThis, iReg, val);
    51615209    return VINF_IOM_R3_MMIO_WRITE;
    51625210#endif /* !IN_RING3 */
     
    52245272{
    52255273    POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI);
     5274    RT_NOREF1(pvUser);
    52265275
    52275276    /* Paranoia: Assert that IOMMMIO_FLAGS_READ_DWORD works. */
     
    52545303{
    52555304    POHCI pThis = PDMINS_2_DATA(pDevIns, POHCI);
     5305    RT_NOREF1(pvUser);
    52565306
    52575307    /* Paranoia: Assert that IOMMMIO_FLAGS_WRITE_DWORD_ZEROED works. */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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