Changeset 13421 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Oct 21, 2008 9:26:26 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 38181
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r13375 r13421 765 765 Serial/DrvHostSerial.cpp 766 766 767 if defined(VBOX_WITH_NETFLT) && "$(KBUILD_TARGET)" == "win"767 if defined(VBOX_WITH_NETFLT) 768 768 if defined(VBOX_NETFLT_ONDEMAND_BIND) 769 Drivers_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND 770 else 771 Drivers_SOURCES.win += Network/win/DrvIntNet-win.cpp 772 endif 769 Drivers_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND 770 endif 771 Drivers_SOURCES.win += Network/win/DrvIntNet-win.cpp 773 772 endif 774 773 … … 877 876 ServicesR0_SOURCES = \ 878 877 Network/SrvIntNetR0.cpp 878 879 if defined(VBOX_WITH_NETFLT) 880 ServicesR0_SOURCES.win.amd64 += Network/win/SrvIntNetR0A-win.asm 881 ServicesR0_DEFS.win.amd64 += SUPDRV_WITH_UNWIND_HACK 882 endif 883 879 884 880 885 # -
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r11236 r13421 3301 3301 3302 3302 3303 3304 3303 #ifdef SUPDRV_WITH_UNWIND_HACK 3304 # if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64) 3305 # define INTNET_DECL_CALLBACK(type) DECLASM(DECLHIDDEN(type)) 3306 # define INTNET_CALLBACK(_n) intnetNtWrap##_n 3307 3308 /* wrapper callback declarations */ 3309 INTNET_DECL_CALLBACK(bool) INTNET_CALLBACK(intnetR0TrunkIfPortSetSGPhys)(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable); 3310 INTNET_DECL_CALLBACK(bool) INTNET_CALLBACK(intnetR0TrunkIfPortRecv)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc); 3311 INTNET_DECL_CALLBACK(void) INTNET_CALLBACK(intnetR0TrunkIfPortSGRetain)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG); 3312 INTNET_DECL_CALLBACK(void) INTNET_CALLBACK(intnetR0TrunkIfPortSGRelease)(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG); 3313 3314 # else 3315 # error "UNSUPPORTED (SUPDRV_WITH_UNWIND_HACK)" 3316 # endif 3317 #else 3318 # define INTNET_DECL_CALLBACK(_t) static DECLCALLBACK(_t) 3319 # define INTNET_CALLBACK(_n) _n 3320 #endif 3305 3321 3306 3322 /** @copydoc INTNETTRUNKSWPORT::pfnSetSGPhys */ 3307 static DECLCALLBACK(bool) intnetR0TrunkIfPortSetSGPhys(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable)3323 INTNET_DECL_CALLBACK(bool) intnetR0TrunkIfPortSetSGPhys(PINTNETTRUNKSWPORT pSwitchPort, bool fEnable) 3308 3324 { 3309 3325 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); … … 3314 3330 3315 3331 /** @copydoc INTNETTRUNKSWPORT::pfnRecv */ 3316 static DECLCALLBACK(bool) intnetR0TrunkIfPortRecv(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc)3332 INTNET_DECL_CALLBACK(bool) intnetR0TrunkIfPortRecv(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG, uint32_t fSrc) 3317 3333 { 3318 3334 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); … … 3345 3361 3346 3362 /** @copydoc INTNETTRUNKSWPORT::pfnSGRetain */ 3347 static DECLCALLBACK(void) intnetR0TrunkIfPortSGRetain(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)3363 INTNET_DECL_CALLBACK(void) intnetR0TrunkIfPortSGRetain(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG) 3348 3364 { 3349 3365 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); … … 3362 3378 3363 3379 /** @copydoc INTNETTRUNKSWPORT::pfnSGRelease */ 3364 static DECLCALLBACK(void) intnetR0TrunkIfPortSGRelease(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG)3380 INTNET_DECL_CALLBACK(void) intnetR0TrunkIfPortSGRelease(PINTNETTRUNKSWPORT pSwitchPort, PINTNETSG pSG) 3365 3381 { 3366 3382 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); … … 3592 3608 return VERR_NO_MEMORY; 3593 3609 pTrunkIF->SwitchPort.u32Version = INTNETTRUNKSWPORT_VERSION; 3594 pTrunkIF->SwitchPort.pfnSetSGPhys = intnetR0TrunkIfPortSetSGPhys;3595 pTrunkIF->SwitchPort.pfnRecv = intnetR0TrunkIfPortRecv;3596 pTrunkIF->SwitchPort.pfnSGRetain = intnetR0TrunkIfPortSGRetain;3597 pTrunkIF->SwitchPort.pfnSGRelease = intnetR0TrunkIfPortSGRelease;3610 pTrunkIF->SwitchPort.pfnSetSGPhys = INTNET_CALLBACK(intnetR0TrunkIfPortSetSGPhys); 3611 pTrunkIF->SwitchPort.pfnRecv = INTNET_CALLBACK(intnetR0TrunkIfPortRecv); 3612 pTrunkIF->SwitchPort.pfnSGRetain = INTNET_CALLBACK(intnetR0TrunkIfPortSGRetain); 3613 pTrunkIF->SwitchPort.pfnSGRelease = INTNET_CALLBACK(intnetR0TrunkIfPortSGRelease); 3598 3614 pTrunkIF->SwitchPort.u32VersionEnd = INTNETTRUNKSWPORT_VERSION; 3599 3615 //pTrunkIF->pIfPort = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.