- Timestamp:
- Oct 21, 2019 8:13:22 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134150
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r81424 r81432 8114 8114 PE1KSTATECC pThisCC = PDMINS_2_DATA_CC(pDevIns, PE1KSTATECC); 8115 8115 8116 /* Initialize context specific state data: */ 8116 8117 pThisCC->CTX_SUFF(pDevIns) = pDevIns; 8117 8118 /** @todo @bugref{9218} ring-0 driver stuff */ … … 8119 8120 pThisCC->CTX_SUFF(pTxSg) = NULL; 8120 8121 8121 int rc = PDMDevHlpMmioSetUpContext(pDevIns, pThis->hMmioRegion, e1kMMIOWrite, e1kMMIORead, NULL /*pvUser*/); 8122 /* Configure critical sections the same way: */ 8123 int rc = PDMDevHlpSetDeviceCritSect(pDevIns, PDMDevHlpCritSectGetNop(pDevIns)); 8124 AssertRCReturn(rc, rc); 8125 8126 /* Set up MMIO and I/O port callbacks for this context: */ 8127 rc = PDMDevHlpMmioSetUpContext(pDevIns, pThis->hMmioRegion, e1kMMIOWrite, e1kMMIORead, NULL /*pvUser*/); 8122 8128 AssertRCReturn(rc, rc); 8123 8129 … … 8138 8144 /* .uReserved0 = */ 0, 8139 8145 /* .szName = */ "e1000", 8140 /* .fFlags = */ PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0 ,8146 /* .fFlags = */ PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0 | PDM_DEVREG_FLAGS_NEW_STYLE, 8141 8147 /* .fClass = */ PDM_DEVREG_CLASS_NETWORK, 8142 8148 /* .cMaxInstances = */ ~0U,
Note:
See TracChangeset
for help on using the changeset viewer.