Changeset 9212 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- May 29, 2008 9:38:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r8613 r9212 114 114 R3R0PTRTYPE(PTMTIMER) pTimerPollHC; 115 115 /** Poll timer (address for guest context) */ 116 GCPTRTYPE(PTMTIMER) pTimerPollGC;116 RCPTRTYPE(PTMTIMER) pTimerPollGC; 117 117 #endif 118 118 … … 124 124 R3R0PTRTYPE(PTMTIMER) pTimerSoftIntHC; 125 125 /** Software Interrupt timer (address for guest context) */ 126 GCPTRTYPE(PTMTIMER) pTimerSoftIntGC;126 RCPTRTYPE(PTMTIMER) pTimerSoftIntGC; 127 127 128 128 /** Register Address Pointer */ … … 166 166 167 167 /** Transmit signaller */ 168 GCPTRTYPE(PPDMQUEUE) pXmitQueueGC;168 RCPTRTYPE(PPDMQUEUE) pXmitQueueGC; 169 169 R3R0PTRTYPE(PPDMQUEUE) pXmitQueueHC; 170 170 171 171 /** Receive signaller */ 172 172 R3R0PTRTYPE(PPDMQUEUE) pCanRxQueueHC; 173 GCPTRTYPE(PPDMQUEUE) pCanRxQueueGC;173 RCPTRTYPE(PPDMQUEUE) pCanRxQueueGC; 174 174 /** Pointer to the device instance. */ 175 GCPTRTYPE(PPDMDEVINS) pDevInsGC;175 RCPTRTYPE(PPDMDEVINS) pDevInsGC; 176 176 /** Pointer to the device instance. */ 177 177 R3R0PTRTYPE(PPDMDEVINS) pDevInsHC; … … 241 241 R3R0PTRTYPE(PPCNETGUESTSHAREDMEMORY) pSharedMMIOHC; 242 242 /** The hypervisor/guest context of the shared memory used for the private interface. */ 243 GCPTRTYPE(PPCNETGUESTSHAREDMEMORY) pSharedMMIOGC;243 RCPTRTYPE(PPCNETGUESTSHAREDMEMORY) pSharedMMIOGC; 244 244 245 245 #if HC_ARCH_BITS == 64 … … 4745 4745 if (fPrivIfEnabled) 4746 4746 { 4747 RTGCPTR pGCMapping; 4748 4747 4749 /* 4748 4750 * Initialize shared memory between host and guest for descriptors and RX buffers. Most guests … … 4753 4755 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, 4754 4756 N_("Failed to allocate %u bytes of memory for the PCNet device"), PCNET_GUEST_SHARED_MEMORY_SIZE); 4755 rc = PDMDevHlpMMHyperMapMMIO2(pDevIns, 2, 0, 8192, "PCNetShMem", &p Data->pSharedMMIOGC);4757 rc = PDMDevHlpMMHyperMapMMIO2(pDevIns, 2, 0, 8192, "PCNetShMem", &pGCMapping); 4756 4758 if (VBOX_FAILURE(rc)) 4757 4759 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, 4758 4760 N_("Failed to map 8192 bytes of memory for the PCNet device into the hyper memory")); 4761 pData->pSharedMMIOGC = pGCMapping; 4759 4762 pcnetInitSharedMemory(pData); 4760 4763 rc = PDMDevHlpPCIIORegionRegister(pDevIns, 2, PCNET_GUEST_SHARED_MEMORY_SIZE,
Note:
See TracChangeset
for help on using the changeset viewer.