Changeset 44571 in vbox
- Timestamp:
- Feb 6, 2013 2:10:37 PM (12 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchIntelHDA.cpp
r44528 r44571 2604 2604 2605 2605 #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); 2613 2612 if (RT_FAILURE (rc)) 2614 2613 { -
trunk/src/VBox/Devices/Network/DevE1000.cpp
r44569 r44571 2983 2983 * 2984 2984 * @remarks Write into RDT forces switch to HC and signal to 2985 * e1k NetworkDown_WaitReceiveAvail().2985 * e1kR3NetworkDown_WaitReceiveAvail(). 2986 2986 * 2987 2987 * @returns VBox status code. … … 5183 5183 * @interface_method_impl{PDMINETWORKDOWN,pfnXmitPending} 5184 5184 */ 5185 static DECLCALLBACK(void) e1k NetworkDown_XmitPending(PPDMINETWORKDOWN pInterface)5185 static DECLCALLBACK(void) e1kR3NetworkDown_XmitPending(PPDMINETWORKDOWN pInterface) 5186 5186 { 5187 5187 PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkDown); … … 6072 6072 * @interface_method_impl{PDMINETWORKDOWN,pfnWaitReceiveAvail} 6073 6073 */ 6074 static DECLCALLBACK(int) e1k NetworkDown_WaitReceiveAvail(PPDMINETWORKDOWN pInterface, RTMSINTERVAL cMillies)6074 static DECLCALLBACK(int) e1kR3NetworkDown_WaitReceiveAvail(PPDMINETWORKDOWN pInterface, RTMSINTERVAL cMillies) 6075 6075 { 6076 6076 PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkDown); … … 6095 6095 break; 6096 6096 } 6097 E1kLogRel(("E1000 e1k NetworkDown_WaitReceiveAvail: waiting cMillies=%u...\n", cMillies));6098 E1kLog(("%s e1k NetworkDown_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)); 6099 6099 RTSemEventWait(pThis->hEventMoreRxDescAvail, cMillies); 6100 6100 } … … 6290 6290 * @interface_method_impl{PDMINETWORKDOWN,pfnReceive} 6291 6291 */ 6292 static DECLCALLBACK(int) e1k NetworkDown_Receive(PPDMINETWORKDOWN pInterface, const void *pvBuf, size_t cb)6292 static DECLCALLBACK(int) e1kR3NetworkDown_Receive(PPDMINETWORKDOWN pInterface, const void *pvBuf, size_t cb) 6293 6293 { 6294 6294 PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkDown); … … 6348 6348 * @interface_method_impl{PDMILEDPORTS,pfnQueryStatusLed} 6349 6349 */ 6350 static DECLCALLBACK(int) e1k QueryStatusLed(PPDMILEDPORTS pInterface, unsigned iLUN, PPDMLED *ppLed)6350 static DECLCALLBACK(int) e1kR3QueryStatusLed(PPDMILEDPORTS pInterface, unsigned iLUN, PPDMLED *ppLed) 6351 6351 { 6352 6352 PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, ILeds); … … 6367 6367 * @interface_method_impl{PDMINETWORKCONFIG,pfnGetMac} 6368 6368 */ 6369 static DECLCALLBACK(int) e1k GetMac(PPDMINETWORKCONFIG pInterface, PRTMAC pMac)6369 static DECLCALLBACK(int) e1kR3GetMac(PPDMINETWORKCONFIG pInterface, PRTMAC pMac) 6370 6370 { 6371 6371 PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkConfig); … … 6377 6377 * @interface_method_impl{PDMINETWORKCONFIG,pfnGetLinkState} 6378 6378 */ 6379 static DECLCALLBACK(PDMNETWORKLINKSTATE) e1k GetLinkState(PPDMINETWORKCONFIG pInterface)6379 static DECLCALLBACK(PDMNETWORKLINKSTATE) e1kR3GetLinkState(PPDMINETWORKCONFIG pInterface) 6380 6380 { 6381 6381 PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkConfig); … … 6388 6388 * @interface_method_impl{PDMINETWORKCONFIG,pfnSetLinkState} 6389 6389 */ 6390 static DECLCALLBACK(int) e1k SetLinkState(PPDMINETWORKCONFIG pInterface, PDMNETWORKLINKSTATE enmState)6390 static DECLCALLBACK(int) e1kR3SetLinkState(PPDMINETWORKCONFIG pInterface, PDMNETWORKLINKSTATE enmState) 6391 6391 { 6392 6392 PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, INetworkConfig); … … 6429 6429 * @interface_method_impl{PDMIBASE,pfnQueryInterface} 6430 6430 */ 6431 static DECLCALLBACK(void *) e1k QueryInterface(struct PDMIBASE *pInterface, const char *pszIID)6431 static DECLCALLBACK(void *) e1kR3QueryInterface(struct PDMIBASE *pInterface, const char *pszIID) 6432 6432 { 6433 6433 PE1KSTATE pThis = RT_FROM_MEMBER(pInterface, E1KSTATE, IBase); … … 7342 7342 7343 7343 /* Interfaces */ 7344 pThis->IBase.pfnQueryInterface = e1k QueryInterface;7345 7346 pThis->INetworkDown.pfnWaitReceiveAvail = e1k NetworkDown_WaitReceiveAvail;7347 pThis->INetworkDown.pfnReceive = e1k NetworkDown_Receive;7348 pThis->INetworkDown.pfnXmitPending = e1k NetworkDown_XmitPending;7349 7350 pThis->ILeds.pfnQueryStatusLed = e1k QueryStatusLed;7351 7352 pThis->INetworkConfig.pfnGetMac = e1k GetMac;7353 pThis->INetworkConfig.pfnGetLinkState = e1k GetLinkState;7354 pThis->INetworkConfig.pfnSetLinkState = e1k SetLinkState;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; 7355 7355 7356 7356 /* … … 7383 7383 7384 7384 /* 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)); 7387 7386 if (RT_FAILURE(rc)) 7388 7387 return PDMDEV_SET_ERROR(pDevIns, rc, … … 7470 7469 7471 7470 #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); 7481 7479 #endif 7482 7480 -
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r44465 r44571 7995 7995 7996 7996 #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)) 8005 8004 { 8006 8005 LogRel(("Chipset cannot do MSI: %Rrc\n", rc)); -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r44533 r44571 5073 5073 5074 5074 #ifdef VBOX_WITH_MSI_DEVICES 5075 PDMMSIREG aMsiReg;5076 RT_ZERO( aMsiReg);5075 PDMMSIREG MsiReg; 5076 RT_ZERO(MsiReg); 5077 5077 /* use this code for MSI-X support */ 5078 # if 05079 aMsiReg.cMsixVectors= 1;5080 aMsiReg.iMsixCapOffset= 0x80;5081 aMsiReg.iMsixNextOffset = 0x0;5082 aMsiReg.iMsixBar= 3;5083 # else5084 aMsiReg.cMsiVectors= 1;5085 aMsiReg.iMsiCapOffset= 0x80;5086 aMsiReg.iMsiNextOffset = 0x0;5087 # endif5088 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); 5089 5089 if (RT_FAILURE (rc)) 5090 5090 { -
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r44528 r44571 5425 5425 5426 5426 #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); 5433 5433 if (RT_FAILURE(rc)) 5434 5434 {
Note:
See TracChangeset
for help on using the changeset viewer.