Changeset 26157 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Feb 2, 2010 6:02:15 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r26001 r26157 1342 1342 E1kLog2(("%s ==> FAILED to enter critical section at %s:%d:%s with rc=\n", 1343 1343 INSTANCE(pState), RT_SRC_POS_ARGS, rc)); 1344 PDMDev iceDBGFStop(pState->CTX_SUFF(pDevIns), RT_SRC_POS_ARGS,1344 PDMDevHlpDBGFStop(pState->CTX_SUFF(pDevIns), RT_SRC_POS_ARGS, 1345 1345 "%s Failed to enter critical section, rc=%Rrc\n", 1346 1346 INSTANCE(pState), rc); … … 3665 3665 case 4: mask = 0xFFFFFFFF; break; 3666 3666 default: 3667 return PDMDev iceDBGFStop(pState->CTX_SUFF(pDevIns), RT_SRC_POS,3667 return PDMDevHlpDBGFStop(pState->CTX_SUFF(pDevIns), RT_SRC_POS, 3668 3668 "%s e1kRegRead: unsupported op size: offset=%#10x cb=%#10x\n", 3669 3669 szInst, uOffset, cb); … … 3677 3677 mask <<= shift; 3678 3678 if (!mask) 3679 return PDMDev iceDBGFStop(pState->CTX_SUFF(pDevIns), RT_SRC_POS,3679 return PDMDevHlpDBGFStop(pState->CTX_SUFF(pDevIns), RT_SRC_POS, 3680 3680 "%s e1kRegRead: Zero mask: offset=%#10x cb=%#10x\n", 3681 3681 szInst, uOffset, cb); … … 3846 3846 { 3847 3847 E1kLog(("%s e1kMMIOWrite: invalid op size: offset=%#10x cb=%#10x", pDevIns, uOffset, cb)); 3848 rc = PDMDev iceDBGFStop(pDevIns, RT_SRC_POS, "e1kMMIOWrite: invalid op size: offset=%#10x cb=%#10x\n", uOffset, cb);3848 rc = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "e1kMMIOWrite: invalid op size: offset=%#10x cb=%#10x\n", uOffset, cb); 3849 3849 } 3850 3850 else … … 3879 3879 { 3880 3880 E1kLog(("%s e1kIOPortIn: invalid op size: port=%RTiop cb=%08x", szInst, port, cb)); 3881 rc = PDMDev iceDBGFStop(pDevIns, RT_SRC_POS, "%s e1kIOPortIn: invalid op size: port=%RTiop cb=%08x\n", szInst, port, cb);3881 rc = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "%s e1kIOPortIn: invalid op size: port=%RTiop cb=%08x\n", szInst, port, cb); 3882 3882 } 3883 3883 else … … 3930 3930 { 3931 3931 E1kLog(("%s e1kIOPortOut: invalid op size: port=%RTiop cb=%08x\n", szInst, port, cb)); 3932 rc = PDMDev iceDBGFStop(pDevIns, RT_SRC_POS, "%s e1kIOPortOut: invalid op size: port=%RTiop cb=%08x\n", szInst, port, cb);3932 rc = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "%s e1kIOPortOut: invalid op size: port=%RTiop cb=%08x\n", szInst, port, cb); 3933 3933 } 3934 3934 else … … 3953 3953 * bird: VINF_SUCCESS is fine for unhandled cases of an OUT handler. (If you're curious 3954 3954 * about the guest code and a bit adventuresome, try rc = PDMDeviceDBGFStop(...);) */ 3955 rc = PDMDev iceDBGFStop(pDevIns, RT_SRC_POS, "e1kIOPortOut: invalid port %#010x\n", port);3955 rc = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "e1kIOPortOut: invalid port %#010x\n", port); 3956 3956 } 3957 3957 } … … 4041 4041 if (pState->fGCEnabled) 4042 4042 { 4043 rc = PDMDevHlpIOPortRegister GC(pPciDev->pDevIns, pState->addrIOPort, cb, 0,4043 rc = PDMDevHlpIOPortRegisterRC(pPciDev->pDevIns, pState->addrIOPort, cb, 0, 4044 4044 "e1kIOPortOut", "e1kIOPortIn", NULL, NULL, "E1000"); 4045 4045 } … … 4058 4058 if (pState->fGCEnabled) 4059 4059 { 4060 rc = PDMDevHlpMMIORegister GC(pPciDev->pDevIns, GCPhysAddress, cb, 0,4060 rc = PDMDevHlpMMIORegisterRC(pPciDev->pDevIns, GCPhysAddress, cb, 0, 4061 4061 "e1kMMIOWrite", "e1kMMIORead", NULL); 4062 4062 } … … 5175 5175 5176 5176 /* Create transmit queue */ 5177 rc = PDMDevHlp PDMQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0,5178 5177 rc = PDMDevHlpQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0, 5178 e1kTxQueueConsumer, true, "E1000-Xmit", &pState->pTxQueueR3); 5179 5179 if (RT_FAILURE(rc)) 5180 5180 return rc; … … 5183 5183 5184 5184 /* Create the RX notifier signaller. */ 5185 rc = PDMDevHlp PDMQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0,5186 5185 rc = PDMDevHlpQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0, 5186 e1kCanRxQueueConsumer, true, "E1000-Rcv", &pState->pCanRxQueueR3); 5187 5187 if (RT_FAILURE(rc)) 5188 5188 return rc; … … 5283 5283 e1kHardReset(pState); 5284 5284 5285 rc = PDMDevHlp PDMThreadCreate(pDevIns, &pState->pTxThread, pState, e1kTxThread, e1kTxThreadWakeUp, 0, RTTHREADTYPE_IO, "E1000_TX");5285 rc = PDMDevHlpThreadCreate(pDevIns, &pState->pTxThread, pState, e1kTxThread, e1kTxThreadWakeUp, 0, RTTHREADTYPE_IO, "E1000_TX"); 5286 5286 if (RT_FAILURE(rc)) 5287 5287 return rc; -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r26001 r26157 3664 3664 case 4: *pu32 = pcnetIoportReadU32(pThis, Port, &rc); break; 3665 3665 default: 3666 rc = PDMDev iceDBGFStop(pThis->CTX_SUFF(pDevIns), RT_SRC_POS,3666 rc = PDMDevHlpDBGFStop(pThis->CTX_SUFF(pDevIns), RT_SRC_POS, 3667 3667 "pcnetIOPortRead: unsupported op size: offset=%#10x cb=%u\n", 3668 3668 Port, cb); … … 3707 3707 case 4: rc = pcnetIoportWriteU32(pThis, Port, u32); break; 3708 3708 default: 3709 rc = PDMDev iceDBGFStop(pThis->CTX_SUFF(pDevIns), RT_SRC_POS,3709 rc = PDMDevHlpDBGFStop(pThis->CTX_SUFF(pDevIns), RT_SRC_POS, 3710 3710 "pcnetIOPortWrite: unsupported op size: offset=%#10x cb=%u\n", 3711 3711 Port, cb); … … 3755 3755 case 4: *(uint32_t *)pv = pcnetMMIOReadU32(pThis, GCPhysAddr); break; 3756 3756 default: 3757 rc = PDMDev iceDBGFStop(pThis->CTX_SUFF(pDevIns), RT_SRC_POS,3757 rc = PDMDevHlpDBGFStop(pThis->CTX_SUFF(pDevIns), RT_SRC_POS, 3758 3758 "pcnetMMIORead: unsupported op size: address=%RGp cb=%u\n", 3759 3759 GCPhysAddr, cb); … … 3808 3808 case 4: pcnetMMIOWriteU32(pThis, GCPhysAddr, *(uint32_t *)pv); break; 3809 3809 default: 3810 rc = PDMDev iceDBGFStop(pThis->CTX_SUFF(pDevIns), RT_SRC_POS,3810 rc = PDMDevHlpDBGFStop(pThis->CTX_SUFF(pDevIns), RT_SRC_POS, 3811 3811 "pcnetMMIOWrite: unsupported op size: address=%RGp cb=%u\n", 3812 3812 GCPhysAddr, cb); … … 3936 3936 if (pThis->fGCEnabled) 3937 3937 { 3938 rc = PDMDevHlpIOPortRegister GC(pDevIns, Port, 0x10, 0, "pcnetIOPortAPromWrite",3938 rc = PDMDevHlpIOPortRegisterRC(pDevIns, Port, 0x10, 0, "pcnetIOPortAPromWrite", 3939 3939 "pcnetIOPortAPromRead", NULL, NULL, "PCNet aprom"); 3940 3940 if (RT_FAILURE(rc)) 3941 3941 return rc; 3942 rc = PDMDevHlpIOPortRegister GC(pDevIns, Port + 0x10, 0x10, 0, "pcnetIOPortWrite",3942 rc = PDMDevHlpIOPortRegisterRC(pDevIns, Port + 0x10, 0x10, 0, "pcnetIOPortWrite", 3943 3943 "pcnetIOPortRead", NULL, NULL, "PCNet"); 3944 3944 if (RT_FAILURE(rc)) … … 5160 5160 * Create the transmit queue. 5161 5161 */ 5162 rc = PDMDevHlp PDMQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0,5163 5162 rc = PDMDevHlpQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0, 5163 pcnetXmitQueueConsumer, true, "PCNet-Xmit", &pThis->pXmitQueueR3); 5164 5164 if (RT_FAILURE(rc)) 5165 5165 return rc; … … 5170 5170 * Create the RX notifer signaller. 5171 5171 */ 5172 rc = PDMDevHlp PDMQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0,5173 5172 rc = PDMDevHlpQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0, 5173 pcnetCanRxQueueConsumer, true, "PCNet-Rcv", &pThis->pCanRxQueueR3); 5174 5174 if (RT_FAILURE(rc)) 5175 5175 return rc; … … 5230 5230 5231 5231 /* Create asynchronous thread */ 5232 rc = PDMDevHlp PDMThreadCreate(pDevIns, &pThis->pSendThread, pThis, pcnetAsyncSendThread, pcnetAsyncSendThreadWakeUp, 0, RTTHREADTYPE_IO, "PCNET_TX");5232 rc = PDMDevHlpThreadCreate(pDevIns, &pThis->pSendThread, pThis, pcnetAsyncSendThread, pcnetAsyncSendThreadWakeUp, 0, RTTHREADTYPE_IO, "PCNET_TX"); 5233 5233 AssertRCReturn(rc, rc); 5234 5234 -
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r26055 r26157 1428 1428 NULL, NULL, "VirtioNet"); 1429 1429 AssertRCReturn(rc, rc); 1430 rc = PDMDevHlpIOPortRegister GC(pPciDev->pDevIns, pState->VPCI.addrIOPort,1430 rc = PDMDevHlpIOPortRegisterRC(pPciDev->pDevIns, pState->VPCI.addrIOPort, 1431 1431 cb, 0, "vnetIOPortOut", "vnetIOPortIn", 1432 1432 NULL, NULL, "VirtioNet"); … … 1711 1711 1712 1712 /* Create the RX notifier signaller. */ 1713 rc = PDMDevHlp PDMQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0,1714 1713 rc = PDMDevHlpQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 1, 0, 1714 vnetCanRxQueueConsumer, true, "VNet-Rcv", &pState->pCanRxQueueR3); 1715 1715 if (RT_FAILURE(rc)) 1716 1716 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.