Changeset 82138 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Nov 23, 2019 11:42:19 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134948
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r82137 r82138 4429 4429 * @callback_method_impl{FNSSMDEVLIVEEXEC, Pass 0 only.} 4430 4430 */ 4431 static DECLCALLBACK(int) pcnet LiveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uPass)4431 static DECLCALLBACK(int) pcnetR3LiveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uPass) 4432 4432 { 4433 4433 RT_NOREF(uPass); … … 4442 4442 * Serializes the receive thread, it may be working inside the critsect.} 4443 4443 */ 4444 static DECLCALLBACK(int) pcnet SavePrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)4444 static DECLCALLBACK(int) pcnetR3SavePrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 4445 4445 { 4446 4446 RT_NOREF(pSSM); … … 4458 4458 * @callback_method_impl{FNSSMDEVSAVEEXEC} 4459 4459 */ 4460 static DECLCALLBACK(int) pcnet SaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)4460 static DECLCALLBACK(int) pcnetR3SaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 4461 4461 { 4462 4462 PPCNETSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PPCNETSTATE); … … 4495 4495 * Serializes the receive thread, it may be working inside the critsect.} 4496 4496 */ 4497 static DECLCALLBACK(int) pcnet LoadPrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)4497 static DECLCALLBACK(int) pcnetR3LoadPrep(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 4498 4498 { 4499 4499 PPCNETSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PPCNETSTATE); … … 4525 4525 * @callback_method_impl{FNSSMDEVLOADEXEC} 4526 4526 */ 4527 static DECLCALLBACK(int) pcnet LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)4527 static DECLCALLBACK(int) pcnetR3LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass) 4528 4528 { 4529 4529 PPCNETSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PPCNETSTATE); … … 4629 4629 * @callback_method_impl{FNSSMDEVLOADDONE} 4630 4630 */ 4631 static DECLCALLBACK(int) pcnet LoadDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)4631 static DECLCALLBACK(int) pcnetR3LoadDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 4632 4632 { 4633 4633 RT_NOREF(pSSM); … … 4911 4911 * @interface_method_impl{PDMDEVREG,pfnPowerOff} 4912 4912 */ 4913 static DECLCALLBACK(void) pcnet PowerOff(PPDMDEVINS pDevIns)4913 static DECLCALLBACK(void) pcnetR3PowerOff(PPDMDEVINS pDevIns) 4914 4914 { 4915 4915 /* Poke thread waiting for buffer space. */ … … 4923 4923 * One port on the network card has been disconnected from the network. 4924 4924 */ 4925 static DECLCALLBACK(void) pcnet Detach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags)4925 static DECLCALLBACK(void) pcnetR3Detach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags) 4926 4926 { 4927 4927 RT_NOREF(fFlags); 4928 4928 PPCNETSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PPCNETSTATE); 4929 Log(("#%d pcnet Detach:\n", PCNET_INST_NR));4929 Log(("#%d pcnetR3Detach:\n", PCNET_INST_NR)); 4930 4930 4931 4931 AssertLogRelReturnVoid(iLUN == 0); … … 4953 4953 * One port on the network card has been connected to a network. 4954 4954 */ 4955 static DECLCALLBACK(int) pcnet Attach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags)4955 static DECLCALLBACK(int) pcnetR3Attach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags) 4956 4956 { 4957 4957 RT_NOREF(fFlags); 4958 4958 PPCNETSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PPCNETSTATE); 4959 LogFlow(("#%d pcnet Attach:\n", PCNET_INST_NR));4959 LogFlow(("#%d pcnetR3Attach:\n", PCNET_INST_NR)); 4960 4960 4961 4961 AssertLogRelReturn(iLUN == 0, VERR_PDM_NO_SUCH_LUN); … … 5000 5000 * @interface_method_impl{PDMDEVREG,pfnSuspend} 5001 5001 */ 5002 static DECLCALLBACK(void) pcnet Suspend(PPDMDEVINS pDevIns)5002 static DECLCALLBACK(void) pcnetR3Suspend(PPDMDEVINS pDevIns) 5003 5003 { 5004 5004 /* Poke thread waiting for buffer space. */ … … 5010 5010 * @interface_method_impl{PDMDEVREG,pfnReset} 5011 5011 */ 5012 static DECLCALLBACK(void) pcnetR eset(PPDMDEVINS pDevIns)5012 static DECLCALLBACK(void) pcnetR3Reset(PPDMDEVINS pDevIns) 5013 5013 { 5014 5014 PPCNETSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PPCNETSTATE); … … 5028 5028 * @interface_method_impl{PDMDEVREG,pfnRelocate} 5029 5029 */ 5030 static DECLCALLBACK(void) pcnetR elocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)5030 static DECLCALLBACK(void) pcnetR3Relocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 5031 5031 { 5032 5032 RT_NOREF(offDelta); … … 5042 5042 * @interface_method_impl{PDMDEVREG,pfnDestruct} 5043 5043 */ 5044 static DECLCALLBACK(int) pcnet Destruct(PPDMDEVINS pDevIns)5044 static DECLCALLBACK(int) pcnetR3Destruct(PPDMDEVINS pDevIns) 5045 5045 { 5046 5046 PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns); … … 5063 5063 * @interface_method_impl{PDMDEVREG,pfnConstruct} 5064 5064 */ 5065 static DECLCALLBACK(int) pcnet Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)5065 static DECLCALLBACK(int) pcnetR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 5066 5066 { 5067 5067 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); … … 5316 5316 5317 5317 rc = PDMDevHlpSSMRegisterEx(pDevIns, PCNET_SAVEDSTATE_VERSION, sizeof(*pThis), NULL, 5318 NULL, pcnetLiveExec, NULL,5319 pcnet SavePrep, pcnetSaveExec, NULL,5320 pcnet LoadPrep, pcnetLoadExec, pcnetLoadDone);5318 NULL, pcnetR3LiveExec, NULL, 5319 pcnetR3SavePrep, pcnetR3SaveExec, NULL, 5320 pcnetR3LoadPrep, pcnetR3LoadExec, pcnetR3LoadDone); 5321 5321 AssertRCReturn(rc, rc); 5322 5322 … … 5457 5457 } 5458 5458 5459 #endif /* IN_RING3 */ 5459 #else /* !IN_RING3 */ 5460 5461 /** 5462 * @callback_method_impl{PDMDEVREGR0,pfnConstruct} 5463 */ 5464 static DECLCALLBACK(int) pcnetRZConstruct(PPDMDEVINS pDevIns) 5465 { 5466 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 5467 PPCNETSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PPCNETSTATE); 5468 5469 int rc = PDMDevHlpSetDeviceCritSect(pDevIns, &pThis->CritSect); 5470 AssertRCReturn(rc, rc); 5471 5472 return VINF_SUCCESS; 5473 } 5474 5475 #endif /* !IN_RING3 */ 5460 5476 5461 5477 /** … … 5484 5500 /* .pszRCMod = */ "VBoxDDRC.rc", 5485 5501 /* .pszR0Mod = */ "VBoxDDR0.r0", 5486 /* .pfnConstruct = */ pcnet Construct,5487 /* .pfnDestruct = */ pcnet Destruct,5488 /* .pfnRelocate = */ pcnetR elocate,5502 /* .pfnConstruct = */ pcnetR3Construct, 5503 /* .pfnDestruct = */ pcnetR3Destruct, 5504 /* .pfnRelocate = */ pcnetR3Relocate, 5489 5505 /* .pfnMemSetup = */ NULL, 5490 5506 /* .pfnPowerOn = */ NULL, 5491 /* .pfnReset = */ pcnetR eset,5492 /* .pfnSuspend = */ pcnet Suspend,5507 /* .pfnReset = */ pcnetR3Reset, 5508 /* .pfnSuspend = */ pcnetR3Suspend, 5493 5509 /* .pfnResume = */ NULL, 5494 /* .pfnAttach = */ pcnet Attach,5495 /* .pfnDetach = */ pcnet Detach,5510 /* .pfnAttach = */ pcnetR3Attach, 5511 /* .pfnDetach = */ pcnetR3Detach, 5496 5512 /* .pfnQueryInterface = */ NULL, 5497 5513 /* .pfnInitComplete = */ NULL, 5498 /* .pfnPowerOff = */ pcnet PowerOff,5514 /* .pfnPowerOff = */ pcnetR3PowerOff, 5499 5515 /* .pfnSoftReset = */ NULL, 5500 5516 /* .pfnReserved0 = */ NULL,
Note:
See TracChangeset
for help on using the changeset viewer.