Changeset 64115 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Sep 30, 2016 8:14:27 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r63690 r64115 48 48 49 49 50 /* Options *******************************************************************/ 50 /********************************************************************************************************************************* 51 * Defined Constants And Macros * 52 *********************************************************************************************************************************/ 53 /** @name E1000 Build Options 54 * @{ */ 51 55 /** @def E1K_INIT_RA0 52 56 * E1K_INIT_RA0 forces E1000 to set the first entry in Receive Address filter … … 117 121 */ 118 122 #define E1K_WITH_RXD_CACHE 123 /** @def E1K_WITH_PREREG_MMIO 124 * E1K_WITH_PREREG_MMIO enables a new style MMIO registration and is 125 * currently only done for testing the relateted PDM, IOM and PGM code. */ 126 //#define E1K_WITH_PREREG_MMIO 127 /* @} */ 119 128 /* End of Options ************************************************************/ 120 129 … … 6113 6122 * byte enables. 6114 6123 */ 6124 #ifdef E1K_WITH_PREREG_MMIO 6125 pThis->addrMMReg = GCPhysAddress; 6126 if (GCPhysAddress == NIL_RTGCPHYS) 6127 rc = VINF_SUCCESS; 6128 else 6129 { 6130 Assert(!(GCPhysAddress & 7)); 6131 rc = PDMDevHlpMMIOExMap(pPciDev->pDevIns, iRegion, GCPhysAddress); 6132 } 6133 #else 6115 6134 pThis->addrMMReg = GCPhysAddress; Assert(!(GCPhysAddress & 7)); 6116 6135 rc = PDMDevHlpMMIORegister(pPciDev->pDevIns, GCPhysAddress, cb, NULL /*pvUser*/, … … 6123 6142 rc = PDMDevHlpMMIORegisterRC(pPciDev->pDevIns, GCPhysAddress, cb, NIL_RTRCPTR /*pvUser*/, 6124 6143 "e1kMMIOWrite", "e1kMMIORead"); 6144 #endif 6125 6145 break; 6126 6146 … … 7641 7661 if (RT_FAILURE(rc)) 7642 7662 return rc; 7663 #ifdef E1K_WITH_PREREG_MMIO 7664 rc = PDMDevHlpMMIOExPreRegister(pDevIns, 0, E1K_MM_SIZE, IOMMMIO_FLAGS_READ_DWORD | IOMMMIO_FLAGS_WRITE_ONLY_DWORD, "E1000", 7665 NULL /*pvUserR3*/, e1kMMIOWrite, e1kMMIORead, NULL /*pfnFillR3*/, 7666 NIL_RTR0PTR /*pvUserR0*/, pThis->fR0Enabled ? "e1kMMIOWrite" : NULL, 7667 pThis->fR0Enabled ? "e1kMMIORead" : NULL, NULL /*pszFillR0*/, 7668 NIL_RTRCPTR /*pvUserRC*/, pThis->fRCEnabled ? "e1kMMIOWrite" : NULL, 7669 pThis->fRCEnabled ? "e1kMMIORead" : NULL, NULL /*pszFillRC*/); 7670 AssertLogRelRCReturn(rc, rc); 7671 #endif 7643 7672 /* Map our registers to IO space (region 2, see e1kConfigurePCI) */ 7644 7673 rc = PDMDevHlpPCIIORegionRegister(pDevIns, 2, E1K_IOPORT_SIZE, PCI_ADDRESS_SPACE_IO, e1kMap); -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r63690 r64115 4418 4418 { 4419 4419 /* drop this dummy region */ 4420 rc = PDMDevHlpMMIO 2Deregister(pDevIns, 2);4420 rc = PDMDevHlpMMIOExDeregister(pDevIns, 2); 4421 4421 pThis->fSharedRegion = false; 4422 4422 }
Note:
See TracChangeset
for help on using the changeset viewer.