Changeset 25336 in vbox for trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
- Timestamp:
- Dec 11, 2009 5:09:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r20715 r25336 3410 3410 3411 3411 3412 #ifdef RT_WITH_W64_UNWIND_HACK 3413 # if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64) 3414 # define INTNET_DECL_CALLBACK(type) DECLASM(DECLHIDDEN(type)) 3415 # define INTNET_CALLBACK(_n) intnetNtWrap##_n 3416 3417 /* wrapper callback declarations */ 3418 INTNET_DECL_CALLBACK(bool) INTNET_CALLBACK(intnetR0TrunkIfPortSetSGPhys)(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable); 3419 INTNET_DECL_CALLBACK(bool) INTNET_CALLBACK(intnetR0TrunkIfPortRecv)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc); 3420 INTNET_DECL_CALLBACK(void) INTNET_CALLBACK(intnetR0TrunkIfPortSGRetain)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG); 3421 INTNET_DECL_CALLBACK(void) INTNET_CALLBACK(intnetR0TrunkIfPortSGRelease)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG); 3422 3423 # else 3424 # error "UNSUPPORTED (RT_WITH_W64_UNWIND_HACK)" 3425 # endif 3426 #else 3427 # define INTNET_DECL_CALLBACK(_t) static DECLCALLBACK(_t) 3412 # define static DECLCALLBACK(_t) static DECLCALLBACK(_t) 3428 3413 # define INTNET_CALLBACK(_n) _n 3429 3414 #endif 3430 3415 3431 3416 /** @copydoc INTNETTRUNKSWPORT::pfnSetSGPhys */ 3432 INTNET_DECL_CALLBACK(bool) intnetR0TrunkIfPortSetSGPhys(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable)3417 static DECLCALLBACK(bool) intnetR0TrunkIfPortSetSGPhys(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable) 3433 3418 { 3434 3419 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); … … 3439 3424 3440 3425 /** @copydoc INTNETTRUNKSWPORT::pfnRecv */ 3441 INTNET_DECL_CALLBACK(bool) intnetR0TrunkIfPortRecv(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc)3426 static DECLCALLBACK(bool) intnetR0TrunkIfPortRecv(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc) 3442 3427 { 3443 3428 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); … … 3470 3455 3471 3456 /** @copydoc INTNETTRUNKSWPORT::pfnSGRetain */ 3472 INTNET_DECL_CALLBACK(void) intnetR0TrunkIfPortSGRetain(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)3457 static DECLCALLBACK(void) intnetR0TrunkIfPortSGRetain(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG) 3473 3458 { 3474 3459 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); … … 3487 3472 3488 3473 /** @copydoc INTNETTRUNKSWPORT::pfnSGRelease */ 3489 INTNET_DECL_CALLBACK(void) intnetR0TrunkIfPortSGRelease(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)3474 static DECLCALLBACK(void) intnetR0TrunkIfPortSGRelease(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG) 3490 3475 { 3491 3476 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); … … 3721 3706 return VERR_NO_MEMORY; 3722 3707 pTrunkIF->SwitchPort.u32Version = INTNETTRUNKSWPORT_VERSION; 3723 pTrunkIF->SwitchPort.pfnSetSGPhys = INTNET_CALLBACK(intnetR0TrunkIfPortSetSGPhys);3724 pTrunkIF->SwitchPort.pfnRecv = INTNET_CALLBACK(intnetR0TrunkIfPortRecv);3725 pTrunkIF->SwitchPort.pfnSGRetain = INTNET_CALLBACK(intnetR0TrunkIfPortSGRetain);3726 pTrunkIF->SwitchPort.pfnSGRelease = INTNET_CALLBACK(intnetR0TrunkIfPortSGRelease);3708 pTrunkIF->SwitchPort.pfnSetSGPhys = intnetR0TrunkIfPortSetSGPhys; 3709 pTrunkIF->SwitchPort.pfnRecv = intnetR0TrunkIfPortRecv; 3710 pTrunkIF->SwitchPort.pfnSGRetain = intnetR0TrunkIfPortSGRetain; 3711 pTrunkIF->SwitchPort.pfnSGRelease = intnetR0TrunkIfPortSGRelease; 3727 3712 pTrunkIF->SwitchPort.u32VersionEnd = INTNETTRUNKSWPORT_VERSION; 3728 3713 //pTrunkIF->pIfPort = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.