VirtualBox

Changeset 44571 in vbox


Ignore:
Timestamp:
Feb 6, 2013 2:10:37 PM (12 years ago)
Author:
vboxsync
Message:

Fixed hungarian typos in MSI registration code. Some E1000 prefix adjustments.

Location:
trunk/src/VBox/Devices
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchIntelHDA.cpp

    r44528 r44571  
    26042604
    26052605#ifdef VBOX_WITH_MSI_DEVICES
    2606     PDMMSIREG aMsiReg;
    2607 
    2608     RT_ZERO(aMsiReg);
    2609     aMsiReg.cMsiVectors = 1;
    2610     aMsiReg.iMsiCapOffset = 0x60;
    2611     aMsiReg.iMsiNextOffset = 0x50;
    2612     rc = PDMDevHlpPCIRegisterMsi(pDevIns, &aMsiReg);
     2606    PDMMSIREG MsiReg;
     2607    RT_ZERO(MsiReg);
     2608    MsiReg.cMsiVectors    = 1;
     2609    MsiReg.iMsiCapOffset  = 0x60;
     2610    MsiReg.iMsiNextOffset = 0x50;
     2611    rc = PDMDevHlpPCIRegisterMsi(pDevIns, &MsiReg);
    26132612    if (RT_FAILURE (rc))
    26142613    {
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r44569 r44571  
    29832983 *
    29842984 * @remarks Write into RDT forces switch to HC and signal to
    2985  *          e1kNetworkDown_WaitReceiveAvail().
     2985 *          e1kR3NetworkDown_WaitReceiveAvail().
    29862986 *
    29872987 * @returns VBox status code.
     
    51835183 * @interface_method_impl{PDMINETWORKDOWN,pfnXmitPending}
    51845184 */
    5185 static DECLCALLBACK(void) e1kNetworkDown_XmitPending(PPDMINETWORKDOWN pInterface)
     5185static DECLCALLBACK(void) e1kR3NetworkDown_XmitPending(PPDMINETWORKDOWN pInterface)
    51865186{
    51875187    PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkDown);
     
    60726072 * @interface_method_impl{PDMINETWORKDOWN,pfnWaitReceiveAvail}
    60736073 */
    6074 static DECLCALLBACK(int) e1kNetworkDown_WaitReceiveAvail(PPDMINETWORKDOWN pInterface, RTMSINTERVAL cMillies)
     6074static DECLCALLBACK(int) e1kR3NetworkDown_WaitReceiveAvail(PPDMINETWORKDOWN pInterface, RTMSINTERVAL cMillies)
    60756075{
    60766076    PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkDown);
     
    60956095            break;
    60966096        }
    6097         E1kLogRel(("E1000 e1kNetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", cMillies));
    6098         E1kLog(("%s e1kNetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", pThis->szPrf, cMillies));
     6097        E1kLogRel(("E1000 e1kR3NetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", cMillies));
     6098        E1kLog(("%s e1kR3NetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", pThis->szPrf, cMillies));
    60996099        RTSemEventWait(pThis->hEventMoreRxDescAvail, cMillies);
    61006100    }
     
    62906290 * @interface_method_impl{PDMINETWORKDOWN,pfnReceive}
    62916291 */
    6292 static DECLCALLBACK(int) e1kNetworkDown_Receive(PPDMINETWORKDOWN pInterface, const void *pvBuf, size_t cb)
     6292static DECLCALLBACK(int) e1kR3NetworkDown_Receive(PPDMINETWORKDOWN pInterface, const void *pvBuf, size_t cb)
    62936293{
    62946294    PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkDown);
     
    63486348 * @interface_method_impl{PDMILEDPORTS,pfnQueryStatusLed}
    63496349 */
    6350 static DECLCALLBACK(int) e1kQueryStatusLed(PPDMILEDPORTS pInterface, unsigned iLUN, PPDMLED *ppLed)
     6350static DECLCALLBACK(int) e1kR3QueryStatusLed(PPDMILEDPORTS pInterface, unsigned iLUN, PPDMLED *ppLed)
    63516351{
    63526352    PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, ILeds);
     
    63676367 * @interface_method_impl{PDMINETWORKCONFIG,pfnGetMac}
    63686368 */
    6369 static DECLCALLBACK(int) e1kGetMac(PPDMINETWORKCONFIG pInterface, PRTMAC pMac)
     6369static DECLCALLBACK(int) e1kR3GetMac(PPDMINETWORKCONFIG pInterface, PRTMAC pMac)
    63706370{
    63716371    PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkConfig);
     
    63776377 * @interface_method_impl{PDMINETWORKCONFIG,pfnGetLinkState}
    63786378 */
    6379 static DECLCALLBACK(PDMNETWORKLINKSTATE) e1kGetLinkState(PPDMINETWORKCONFIG pInterface)
     6379static DECLCALLBACK(PDMNETWORKLINKSTATE) e1kR3GetLinkState(PPDMINETWORKCONFIG pInterface)
    63806380{
    63816381    PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkConfig);
     
    63886388 * @interface_method_impl{PDMINETWORKCONFIG,pfnSetLinkState}
    63896389 */
    6390 static DECLCALLBACK(int) e1kSetLinkState(PPDMINETWORKCONFIG pInterface, PDMNETWORKLINKSTATE enmState)
     6390static DECLCALLBACK(int) e1kR3SetLinkState(PPDMINETWORKCONFIG pInterface, PDMNETWORKLINKSTATE enmState)
    63916391{
    63926392    PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkConfig);
     
    64296429 * @interface_method_impl{PDMIBASE,pfnQueryInterface}
    64306430 */
    6431 static DECLCALLBACK(void *) e1kQueryInterface(struct PDMIBASE *pInterface, const char *pszIID)
     6431static DECLCALLBACK(void *) e1kR3QueryInterface(struct PDMIBASE *pInterface, const char *pszIID)
    64326432{
    64336433    PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, IBase);
     
    73427342
    73437343    /* Interfaces */
    7344     pThis->IBase.pfnQueryInterface          = e1kQueryInterface;
    7345 
    7346     pThis->INetworkDown.pfnWaitReceiveAvail = e1kNetworkDown_WaitReceiveAvail;
    7347     pThis->INetworkDown.pfnReceive          = e1kNetworkDown_Receive;
    7348     pThis->INetworkDown.pfnXmitPending      = e1kNetworkDown_XmitPending;
    7349 
    7350     pThis->ILeds.pfnQueryStatusLed          = e1kQueryStatusLed;
    7351 
    7352     pThis->INetworkConfig.pfnGetMac         = e1kGetMac;
    7353     pThis->INetworkConfig.pfnGetLinkState   = e1kGetLinkState;
    7354     pThis->INetworkConfig.pfnSetLinkState   = e1kSetLinkState;
     7344    pThis->IBase.pfnQueryInterface          = e1kR3QueryInterface;
     7345
     7346    pThis->INetworkDown.pfnWaitReceiveAvail = e1kR3NetworkDown_WaitReceiveAvail;
     7347    pThis->INetworkDown.pfnReceive          = e1kR3NetworkDown_Receive;
     7348    pThis->INetworkDown.pfnXmitPending      = e1kR3NetworkDown_XmitPending;
     7349
     7350    pThis->ILeds.pfnQueryStatusLed          = e1kR3QueryStatusLed;
     7351
     7352    pThis->INetworkConfig.pfnGetMac         = e1kR3GetMac;
     7353    pThis->INetworkConfig.pfnGetLinkState   = e1kR3GetLinkState;
     7354    pThis->INetworkConfig.pfnSetLinkState   = e1kR3SetLinkState;
    73557355
    73567356    /*
     
    73837383
    73847384    /* Get config params */
    7385     rc = CFGMR3QueryBytes(pCfg, "MAC", pThis->macConfigured.au8,
    7386                           sizeof(pThis->macConfigured.au8));
     7385    rc = CFGMR3QueryBytes(pCfg, "MAC", pThis->macConfigured.au8, sizeof(pThis->macConfigured.au8));
    73877386    if (RT_FAILURE(rc))
    73887387        return PDMDEV_SET_ERROR(pDevIns, rc,
     
    74707469
    74717470#ifdef E1K_WITH_MSI
    7472     PDMMSIREG aMsiReg;
    7473     aMsiReg.cMsiVectors = 1;
    7474     aMsiReg.iMsiCapOffset = 0x80;
    7475     aMsiReg.iMsiNextOffset = 0x0;
    7476     aMsiReg.fMsi64bit = false;
    7477     rc = PDMDevHlpPCIRegisterMsi(pDevIns, &aMsiReg);
    7478     AssertRC(rc);
    7479     if (RT_FAILURE (rc))
    7480         return rc;
     7471    PDMMSIREG MsiReg;
     7472    RT_ZERO(MsiReg);
     7473    MsiReg.cMsiVectors    = 1;
     7474    MsiReg.iMsiCapOffset  = 0x80;
     7475    MsiReg.iMsiNextOffset = 0x0;
     7476    MsiReg.fMsi64bit      = false;
     7477    rc = PDMDevHlpPCIRegisterMsi(pDevIns, &MsiReg);
     7478    AssertRCReturn(rc, rc);
    74817479#endif
    74827480
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r44465 r44571  
    79957995
    79967996#ifdef VBOX_WITH_MSI_DEVICES
    7997     PDMMSIREG aMsiReg;
    7998 
    7999     RT_ZERO(aMsiReg);
    8000     aMsiReg.cMsiVectors = 1;
    8001     aMsiReg.iMsiCapOffset = 0x80;
    8002     aMsiReg.iMsiNextOffset = 0x70;
    8003     rc = PDMDevHlpPCIRegisterMsi(pDevIns, &aMsiReg);
    8004     if (RT_FAILURE (rc))
     7997    PDMMSIREG MsiReg;
     7998    RT_ZERO(MsiReg);
     7999    MsiReg.cMsiVectors    = 1;
     8000    MsiReg.iMsiCapOffset  = 0x80;
     8001    MsiReg.iMsiNextOffset = 0x70;
     8002    rc = PDMDevHlpPCIRegisterMsi(pDevIns, &MsiReg);
     8003    if (RT_FAILURE(rc))
    80058004    {
    80068005        LogRel(("Chipset cannot do MSI: %Rrc\n", rc));
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r44533 r44571  
    50735073
    50745074#ifdef VBOX_WITH_MSI_DEVICES
    5075     PDMMSIREG aMsiReg;
    5076     RT_ZERO(aMsiReg);
     5075    PDMMSIREG MsiReg;
     5076    RT_ZERO(MsiReg);
    50775077    /* use this code for MSI-X support */
    5078 #if 0
    5079     aMsiReg.cMsixVectors = 1;
    5080     aMsiReg.iMsixCapOffset = 0x80;
    5081     aMsiReg.iMsixNextOffset = 0x0;
    5082     aMsiReg.iMsixBar = 3;
    5083 #else
    5084     aMsiReg.cMsiVectors = 1;
    5085     aMsiReg.iMsiCapOffset = 0x80;
    5086     aMsiReg.iMsiNextOffset = 0x0;
    5087 #endif
    5088     rc = PDMDevHlpPCIRegisterMsi(pDevIns, &aMsiReg);
     5078# if 0
     5079    MsiReg.cMsixVectors    = 1;
     5080    MsiReg.iMsixCapOffset = 0x80;
     5081    MsiReg.iMsixNextOffset = 0x00;
     5082    MsiReg.iMsixBar        = 3;
     5083# else
     5084    MsiReg.cMsiVectors    = 1;
     5085    MsiReg.iMsiCapOffset  = 0x80;
     5086    MsiReg.iMsiNextOffset  = 0x00;
     5087# endif
     5088    rc = PDMDevHlpPCIRegisterMsi(pDevIns, &MsiReg);
    50895089    if (RT_FAILURE (rc))
    50905090    {
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r44528 r44571  
    54255425
    54265426#ifdef VBOX_WITH_MSI_DEVICES
    5427     PDMMSIREG aMsiReg;
    5428     RT_ZERO(aMsiReg);
    5429     aMsiReg.cMsiVectors = 1;
    5430     aMsiReg.iMsiCapOffset = 0x80;
    5431     aMsiReg.iMsiNextOffset = 0x0;
    5432     rc = PDMDevHlpPCIRegisterMsi(pDevIns, &aMsiReg);
     5427    PDMMSIREG MsiReg;
     5428    RT_ZERO(MsiReg);
     5429    MsiReg.cMsiVectors    = 1;
     5430    MsiReg.iMsiCapOffset = 0x80;
     5431    MsiReg.iMsiNextOffset = 0x00;
     5432    rc = PDMDevHlpPCIRegisterMsi(pDevIns, &MsiReg);
    54335433    if (RT_FAILURE(rc))
    54345434    {
Note: See TracChangeset for help on using the changeset viewer.

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