Changeset 6291 in vbox for trunk/src/VBox/Devices/Storage/DrvRawImage.cpp
- Timestamp:
- Jan 9, 2008 10:57:05 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvRawImage.cpp
r6198 r6291 76 76 static DECLCALLBACK(uint64_t) drvRawImageGetSize(PPDMIMEDIA pInterface); 77 77 static DECLCALLBACK(int) drvRawImageGetUuid(PPDMIMEDIA pInterface, PRTUUID pUuid); 78 static DECLCALLBACK(int) drvRawImageBiosGet Geometry(PPDMIMEDIA pInterface, uint32_t *pcCylinders, uint32_t *pcHeads, uint32_t *pcSectors);79 static DECLCALLBACK(int) drvRawImageBiosSet Geometry(PPDMIMEDIA pInterface, uint32_t cCylinders, uint32_t cHeads, uint32_t cSectors);80 static DECLCALLBACK(int) drvRawImageBiosGet Translation(PPDMIMEDIA pInterface, PPDMBIOSTRANSLATION penmTranslation);81 static DECLCALLBACK(int) drvRawImageBiosSet Translation(PPDMIMEDIA pInterface, PDMBIOSTRANSLATION enmTranslation);78 static DECLCALLBACK(int) drvRawImageBiosGetPCHSGeometry(PPDMIMEDIA pInterface, PPDMMEDIAGEOMETRY pPCHSGeometry); 79 static DECLCALLBACK(int) drvRawImageBiosSetPCHSGeometry(PPDMIMEDIA pInterface, PCPDMMEDIAGEOMETRY pPCHSGeometry); 80 static DECLCALLBACK(int) drvRawImageBiosGetLCHSGeometry(PPDMIMEDIA pInterface, PPDMMEDIAGEOMETRY pLCHSGeometry); 81 static DECLCALLBACK(int) drvRawImageBiosSetLCHSGeometry(PPDMIMEDIA pInterface, PCPDMMEDIAGEOMETRY pLCHSGeometry); 82 82 83 83 static DECLCALLBACK(void *) drvRawImageQueryInterface(PPDMIBASE pInterface, PDMINTERFACE enmInterface); … … 114 114 pData->IMedia.pfnGetUuid = drvRawImageGetUuid; 115 115 pData->IMedia.pfnIsReadOnly = drvRawImageIsReadOnly; 116 pData->IMedia.pfnBiosGet Geometry = drvRawImageBiosGetGeometry;117 pData->IMedia.pfnBiosSet Geometry = drvRawImageBiosSetGeometry;118 pData->IMedia.pfnBiosGet Translation = drvRawImageBiosGetTranslation;119 pData->IMedia.pfnBiosSet Translation = drvRawImageBiosSetTranslation;116 pData->IMedia.pfnBiosGetPCHSGeometry = drvRawImageBiosGetPCHSGeometry; 117 pData->IMedia.pfnBiosSetPCHSGeometry = drvRawImageBiosSetPCHSGeometry; 118 pData->IMedia.pfnBiosGetLCHSGeometry = drvRawImageBiosGetLCHSGeometry; 119 pData->IMedia.pfnBiosSetLCHSGeometry = drvRawImageBiosSetLCHSGeometry; 120 120 121 121 /* … … 207 207 208 208 209 /** @copydoc PDMIMEDIA::pfnBiosGet Geometry */210 static DECLCALLBACK(int) drvRawImageBiosGet Geometry(PPDMIMEDIA pInterface, uint32_t *pcCylinders, uint32_t *pcHeads, uint32_t *pcSectors)209 /** @copydoc PDMIMEDIA::pfnBiosGetPCHSGeometry */ 210 static DECLCALLBACK(int) drvRawImageBiosGetPCHSGeometry(PPDMIMEDIA pInterface, PPDMMEDIAGEOMETRY pPCHSGeometry) 211 211 { 212 212 return VERR_NOT_IMPLEMENTED; … … 214 214 215 215 216 /** @copydoc PDMIMEDIA::pfnBiosSetGeometry */ 217 static DECLCALLBACK(int) drvRawImageBiosSetGeometry(PPDMIMEDIA pInterface, uint32_t cCylinders, uint32_t cHeads, uint32_t cSectors) 216 /** @copydoc PDMIMEDIA::pfnBiosSetPCHSGeometry */ 217 static DECLCALLBACK(int) drvRawImageBiosSetPCHSGeometry(PPDMIMEDIA pInterface, PCPDMMEDIAGEOMETRY pPCHSGeometry) 218 { 219 return VERR_NOT_IMPLEMENTED; 220 } 221 222 223 /** @copydoc PDMIMEDIA::pfnBiosGetLCHSGeometry */ 224 static DECLCALLBACK(int) drvRawImageBiosGetLCHSGeometry(PPDMIMEDIA pInterface, PPDMMEDIAGEOMETRY pLCHSGeometry) 225 { 226 return VERR_NOT_IMPLEMENTED; 227 } 228 229 230 /** @copydoc PDMIMEDIA::pfnBiosSetLCHSGeometry */ 231 static DECLCALLBACK(int) drvRawImageBiosSetLCHSGeometry(PPDMIMEDIA pInterface, PCPDMMEDIAGEOMETRY pLCHSGeometry) 218 232 { 219 233 return VERR_NOT_IMPLEMENTED; … … 319 333 PDRVRAWIMAGE pData = PDMIMEDIA_2_DRVRAWIMAGE(pInterface); 320 334 return pData->fReadOnly; 321 }322 323 324 /**325 * Stub - operation not supported.326 *327 * @copydoc PDMIMEDIA::pfnBiosGetTranslation328 */329 static DECLCALLBACK(int) drvRawImageBiosGetTranslation(PPDMIMEDIA pInterface, PPDMBIOSTRANSLATION penmTranslation)330 {331 NOREF(pInterface); NOREF(penmTranslation);332 return VERR_NOT_IMPLEMENTED;333 }334 335 336 /**337 * Stub - operation not supported.338 *339 * @copydoc PDMIMEDIA::pfnBiosSetTranslation340 */341 static DECLCALLBACK(int) drvRawImageBiosSetTranslation(PPDMIMEDIA pInterface, PDMBIOSTRANSLATION enmTranslation)342 {343 NOREF(pInterface); NOREF(enmTranslation);344 return VERR_NOT_IMPLEMENTED;345 335 } 346 336
Note:
See TracChangeset
for help on using the changeset viewer.