Changeset 36055 in vbox for trunk/src/VBox
- Timestamp:
- Feb 22, 2011 4:15:17 PM (14 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxPci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c
r36028 r36055 114 114 115 115 116 /** 117 * @copydoc RAWPCIDEVPORT:: pfnGetRegionInfo 118 */ 116 119 DECLHIDDEN(int) vboxPciDevGetRegionInfo(PRAWPCIDEVPORT pPort, 117 120 int32_t iRegion, … … 130 133 } 131 134 135 /** 136 * @copydoc RAWPCIDEVPORT:: pfnMapRegion 137 */ 132 138 DECLHIDDEN(int) vboxPciDevMapRegion(PRAWPCIDEVPORT pPort, 133 139 int32_t iRegion, 134 RTHCPHYS pRegionStart,140 RTHCPHYS RegionStart, 135 141 uint64_t u64RegionSize, 136 142 RTR0PTR *pRegionBase) 137 143 { 138 #if 0 139 PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort); 140 141 int rc = vboxPciOsDevMapRegion(pThis, iRegion, pRegionStart, pu64RegionSize, pRegionBase); 142 143 return rc; 144 #else 145 return VINF_SUCCESS; 146 #endif 144 PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort); 145 146 int rc = vboxPciOsDevMapRegion(pThis, iRegion, RegionStart, u64RegionSize, pRegionBase); 147 148 return rc; 149 } 150 151 /** 152 * @copydoc RAWPCIDEVPORT:: pfnUnapRegion 153 */ 154 DECLHIDDEN(int) vboxPciDevUnmapRegion(PRAWPCIDEVPORT pPort, 155 RTHCPHYS RegionStart, 156 uint64_t u64RegionSize, 157 RTR0PTR RegionBase) 158 { 159 PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort); 160 161 int rc = vboxPciOsDevUnmapRegion(pThis, RegionStart, u64RegionSize, RegionBase); 162 163 return rc; 147 164 } 148 165 … … 204 221 pNew->DevPort.pfnGetRegionInfo = vboxPciDevGetRegionInfo; 205 222 pNew->DevPort.pfnMapRegion = vboxPciDevMapRegion; 223 pNew->DevPort.pfnUnmapRegion = vboxPciDevUnmapRegion; 206 224 pNew->DevPort.pfnPciCfgRead = vboxPciDevPciCfgRead; 207 225 pNew->DevPort.pfnPciCfgWrite = vboxPciDevPciCfgWrite; -
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h
r36028 r36055 105 105 bool *pfPresent, 106 106 bool *pfMmio); 107 DECLHIDDEN(int) vboxPciOsDevMapRegion(PVBOXRAWPCIINS pIns, 108 int32_t iRegion, 109 RTHCPHYS pRegionStart, 110 uint64_t u64RegionSize, 111 RTR0PTR *pRegionBase); 112 DECLHIDDEN(int) vboxPciOsDevUnmapRegion(PVBOXRAWPCIINS pIns, 113 RTHCPHYS RegionStart, 114 uint64_t u64RegionSize, 115 RTR0PTR RegionBase); 107 116 DECLHIDDEN(int) vboxPciOsDevPciCfgWrite(PVBOXRAWPCIINS pIns, uint32_t Register, PCIRAWMEMLOC *pValue); 108 117 DECLHIDDEN(int) vboxPciOsDevPciCfgRead (PVBOXRAWPCIINS pIns, uint32_t Register, PCIRAWMEMLOC *pValue);
Note:
See TracChangeset
for help on using the changeset viewer.