Changeset 7839 in vbox for trunk/src/VBox
- Timestamp:
- Apr 9, 2008 2:02:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r7831 r7839 4265 4265 } 4266 4266 4267 4267 4268 /** 4268 4269 * … … 4297 4298 return rc; 4298 4299 } 4300 4299 4301 4300 4302 /** … … 4429 4431 } 4430 4432 return VERR_PDM_LUN_NOT_FOUND; 4433 } 4434 4435 4436 /** 4437 * @copydoc FNPDMDEVPOWEROFF 4438 */ 4439 static DECLCALLBACK(void) pcnetPowerOff(PPDMDEVINS pDevIns) 4440 { 4441 PCNetState *pData = PDMINS_2_DATA(pDevIns, PCNetState *); 4442 4443 /* Poke thread waiting for buffer space. */ 4444 if ( pData->fMaybeOutOfSpace 4445 && pData->hEventOutOfRxSpace != NIL_RTSEMEVENT) 4446 RTSemEventSignal(pData->hEventOutOfRxSpace); 4447 } 4448 4449 4450 /** 4451 * @copydoc FNPDMDEVSUSPEND 4452 */ 4453 static DECLCALLBACK(void) pcnetSuspend(PPDMDEVINS pDevIns) 4454 { 4455 PCNetState *pData = PDMINS_2_DATA(pDevIns, PCNetState *); 4456 4457 /* Poke thread waiting for buffer space. */ 4458 if ( pData->fMaybeOutOfSpace 4459 && pData->hEventOutOfRxSpace != NIL_RTSEMEVENT) 4460 RTSemEventSignal(pData->hEventOutOfRxSpace); 4431 4461 } 4432 4462 … … 4940 4970 pcnetReset, 4941 4971 /* pfnSuspend */ 4942 NULL,4972 pcnetSuspend, 4943 4973 /* pfnResume */ 4944 4974 NULL, … … 4948 4978 NULL, 4949 4979 /* pfnQueryInterface. */ 4950 NULL 4980 NULL, 4981 /* pfnInitComplete. */ 4982 NULL, 4983 /* pfnPowerOff. */ 4984 pcnetPowerOff 4951 4985 }; 4952 4986
Note:
See TracChangeset
for help on using the changeset viewer.