[25966] | 1 | /* $Id: DrvRawImage.cpp 28800 2010-04-27 08:22:32Z vboxsync $ */
|
---|
[1] | 2 | /** @file
|
---|
[25966] | 3 | * VBox storage devices: Raw image driver
|
---|
[1] | 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
[28800] | 7 | * Copyright (C) 2006-2010 Oracle Corporation
|
---|
[1] | 8 | *
|
---|
| 9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
| 10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
| 11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
[5999] | 12 | * General Public License (GPL) as published by the Free Software
|
---|
| 13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
| 14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
| 15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
[1] | 16 | */
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | /*******************************************************************************
|
---|
| 20 | * Header Files *
|
---|
| 21 | *******************************************************************************/
|
---|
| 22 | #define LOG_GROUP LOG_GROUP_DRV_RAW_IMAGE
|
---|
[4014] | 23 | #include <VBox/pdmdrv.h>
|
---|
[1] | 24 | #include <iprt/assert.h>
|
---|
| 25 | #include <iprt/file.h>
|
---|
| 26 | #include <iprt/string.h>
|
---|
[25966] | 27 | #include <iprt/uuid.h>
|
---|
[1] | 28 |
|
---|
| 29 | #include "Builtins.h"
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | /*******************************************************************************
|
---|
| 33 | * Defined Constants And Macros *
|
---|
| 34 | *******************************************************************************/
|
---|
| 35 | /** Converts a pointer to RAWIMAGE::IMedia to a PRDVRAWIMAGE. */
|
---|
| 36 | #define PDMIMEDIA_2_DRVRAWIMAGE(pInterface) ( (PDRVRAWIMAGE)((uintptr_t)pInterface - RT_OFFSETOF(DRVRAWIMAGE, IMedia)) )
|
---|
| 37 |
|
---|
| 38 | /** Converts a pointer to PDMDRVINS::IBase to a PPDMDRVINS. */
|
---|
| 39 | #define PDMIBASE_2_DRVINS(pInterface) ( (PPDMDRVINS)((uintptr_t)pInterface - RT_OFFSETOF(PDMDRVINS, IBase)) )
|
---|
| 40 |
|
---|
| 41 | /** Converts a pointer to PDMDRVINS::IBase to a PVBOXHDD. */
|
---|
[11267] | 42 | #define PDMIBASE_2_DRVRAWIMAGE(pInterface) ( PDMINS_2_DATA(PDMIBASE_2_DRVINS(pInterface), PDRVRAWIMAGE) )
|
---|
[1] | 43 |
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 | /*******************************************************************************
|
---|
| 47 | * Structures and Typedefs *
|
---|
| 48 | *******************************************************************************/
|
---|
| 49 | /**
|
---|
| 50 | * Block driver instance data.
|
---|
[25966] | 51 | *
|
---|
| 52 | * @implements PDMIMEDIA
|
---|
[1] | 53 | */
|
---|
| 54 | typedef struct DRVRAWIMAGE
|
---|
| 55 | {
|
---|
| 56 | /** The media interface. */
|
---|
| 57 | PDMIMEDIA IMedia;
|
---|
| 58 | /** Pointer to the driver instance. */
|
---|
| 59 | PPDMDRVINS pDrvIns;
|
---|
| 60 | /** Pointer to the filename. (Freed by MM) */
|
---|
| 61 | char *pszFilename;
|
---|
| 62 | /** File handle of the raw image file. */
|
---|
| 63 | RTFILE File;
|
---|
[6198] | 64 | /** True if the image is operating in readonly mode. */
|
---|
| 65 | bool fReadOnly;
|
---|
[1] | 66 | } DRVRAWIMAGE, *PDRVRAWIMAGE;
|
---|
| 67 |
|
---|
| 68 |
|
---|
| 69 |
|
---|
[26001] | 70 | /* -=-=-=-=- PDMIMEDIA -=-=-=-=- */
|
---|
[1] | 71 |
|
---|
| 72 | /** @copydoc PDMIMEDIA::pfnGetSize */
|
---|
| 73 | static DECLCALLBACK(uint64_t) drvRawImageGetSize(PPDMIMEDIA pInterface)
|
---|
| 74 | {
|
---|
[11269] | 75 | PDRVRAWIMAGE pThis = PDMIMEDIA_2_DRVRAWIMAGE(pInterface);
|
---|
| 76 | LogFlow(("drvRawImageGetSize: '%s'\n", pThis->pszFilename));
|
---|
[1] | 77 |
|
---|
| 78 | uint64_t cbFile;
|
---|
[11269] | 79 | int rc = RTFileGetSize(pThis->File, &cbFile);
|
---|
[11266] | 80 | if (RT_SUCCESS(rc))
|
---|
[1] | 81 | {
|
---|
[11269] | 82 | LogFlow(("drvRawImageGetSize: returns %lld (%s)\n", cbFile, pThis->pszFilename));
|
---|
[1] | 83 | return cbFile;
|
---|
| 84 | }
|
---|
| 85 |
|
---|
[11284] | 86 | AssertMsgFailed(("Error querying Raw image file size, rc=%Rrc. (%s)\n", rc, pThis->pszFilename));
|
---|
[1] | 87 | return 0;
|
---|
| 88 | }
|
---|
| 89 |
|
---|
| 90 |
|
---|
[6291] | 91 | /** @copydoc PDMIMEDIA::pfnBiosGetPCHSGeometry */
|
---|
| 92 | static DECLCALLBACK(int) drvRawImageBiosGetPCHSGeometry(PPDMIMEDIA pInterface, PPDMMEDIAGEOMETRY pPCHSGeometry)
|
---|
[1] | 93 | {
|
---|
| 94 | return VERR_NOT_IMPLEMENTED;
|
---|
| 95 | }
|
---|
| 96 |
|
---|
| 97 |
|
---|
[6291] | 98 | /** @copydoc PDMIMEDIA::pfnBiosSetPCHSGeometry */
|
---|
| 99 | static DECLCALLBACK(int) drvRawImageBiosSetPCHSGeometry(PPDMIMEDIA pInterface, PCPDMMEDIAGEOMETRY pPCHSGeometry)
|
---|
[1] | 100 | {
|
---|
| 101 | return VERR_NOT_IMPLEMENTED;
|
---|
| 102 | }
|
---|
| 103 |
|
---|
| 104 |
|
---|
[6291] | 105 | /** @copydoc PDMIMEDIA::pfnBiosGetLCHSGeometry */
|
---|
| 106 | static DECLCALLBACK(int) drvRawImageBiosGetLCHSGeometry(PPDMIMEDIA pInterface, PPDMMEDIAGEOMETRY pLCHSGeometry)
|
---|
| 107 | {
|
---|
| 108 | return VERR_NOT_IMPLEMENTED;
|
---|
| 109 | }
|
---|
| 110 |
|
---|
| 111 |
|
---|
| 112 | /** @copydoc PDMIMEDIA::pfnBiosSetLCHSGeometry */
|
---|
| 113 | static DECLCALLBACK(int) drvRawImageBiosSetLCHSGeometry(PPDMIMEDIA pInterface, PCPDMMEDIAGEOMETRY pLCHSGeometry)
|
---|
| 114 | {
|
---|
| 115 | return VERR_NOT_IMPLEMENTED;
|
---|
| 116 | }
|
---|
| 117 |
|
---|
| 118 |
|
---|
[1] | 119 | /**
|
---|
| 120 | * Read bits.
|
---|
| 121 | *
|
---|
| 122 | * @see PDMIMEDIA::pfnRead for details.
|
---|
| 123 | */
|
---|
| 124 | static DECLCALLBACK(int) drvRawImageRead(PPDMIMEDIA pInterface, uint64_t off, void *pvBuf, size_t cbRead)
|
---|
| 125 | {
|
---|
[11269] | 126 | PDRVRAWIMAGE pThis = PDMIMEDIA_2_DRVRAWIMAGE(pInterface);
|
---|
| 127 | LogFlow(("drvRawImageRead: off=%#llx pvBuf=%p cbRead=%#x (%s)\n", off, pvBuf, cbRead, pThis->pszFilename));
|
---|
[1] | 128 |
|
---|
[11269] | 129 | Assert(pThis->File);
|
---|
[1] | 130 | Assert(pvBuf);
|
---|
| 131 |
|
---|
| 132 | /*
|
---|
| 133 | * Seek to the position and read.
|
---|
| 134 | */
|
---|
[11269] | 135 | int rc = RTFileSeek(pThis->File, off, RTFILE_SEEK_BEGIN, NULL);
|
---|
[11266] | 136 | if (RT_SUCCESS(rc))
|
---|
[1] | 137 | {
|
---|
[11269] | 138 | rc = RTFileRead(pThis->File, pvBuf, cbRead, NULL);
|
---|
[11266] | 139 | if (RT_SUCCESS(rc))
|
---|
[1] | 140 | {
|
---|
| 141 | Log2(("drvRawImageRead: off=%#llx pvBuf=%p cbRead=%#x (%s)\n"
|
---|
[13840] | 142 | "%16.*Rhxd\n",
|
---|
[11269] | 143 | off, pvBuf, cbRead, pThis->pszFilename,
|
---|
[1] | 144 | cbRead, pvBuf));
|
---|
| 145 | }
|
---|
| 146 | else
|
---|
[11284] | 147 | AssertMsgFailed(("RTFileRead(%d, %p, %#x) -> %Rrc (off=%#llx '%s')\n",
|
---|
[11269] | 148 | pThis->File, pvBuf, cbRead, rc, off, pThis->pszFilename));
|
---|
[1] | 149 | }
|
---|
| 150 | else
|
---|
[11284] | 151 | AssertMsgFailed(("RTFileSeek(%d,%#llx,) -> %Rrc\n", pThis->File, off, rc));
|
---|
| 152 | LogFlow(("drvRawImageRead: returns %Rrc\n", rc));
|
---|
[1] | 153 | return rc;
|
---|
| 154 | }
|
---|
| 155 |
|
---|
| 156 |
|
---|
| 157 | /** @copydoc PDMIMEDIA::pfnWrite */
|
---|
| 158 | static DECLCALLBACK(int) drvRawImageWrite(PPDMIMEDIA pInterface, uint64_t off, const void *pvBuf, size_t cbWrite)
|
---|
| 159 | {
|
---|
[11269] | 160 | PDRVRAWIMAGE pThis = PDMIMEDIA_2_DRVRAWIMAGE(pInterface);
|
---|
| 161 | LogFlow(("drvRawImageWrite: off=%#llx pvBuf=%p cbWrite=%#x (%s)\n", off, pvBuf, cbWrite, pThis->pszFilename));
|
---|
[1] | 162 |
|
---|
[11269] | 163 | Assert(pThis->File);
|
---|
[1] | 164 | Assert(pvBuf);
|
---|
| 165 |
|
---|
| 166 | /*
|
---|
| 167 | * Seek to the position and write.
|
---|
| 168 | */
|
---|
[11269] | 169 | int rc = RTFileSeek(pThis->File, off, RTFILE_SEEK_BEGIN, NULL);
|
---|
[11266] | 170 | if (RT_SUCCESS(rc))
|
---|
[1] | 171 | {
|
---|
[11269] | 172 | rc = RTFileWrite(pThis->File, pvBuf, cbWrite, NULL);
|
---|
[11266] | 173 | if (RT_SUCCESS(rc))
|
---|
[1] | 174 | {
|
---|
| 175 | Log2(("drvRawImageWrite: off=%#llx pvBuf=%p cbWrite=%#x (%s)\n"
|
---|
[13840] | 176 | "%16.*Rhxd\n",
|
---|
[11269] | 177 | off, pvBuf, cbWrite, pThis->pszFilename,
|
---|
[1] | 178 | cbWrite, pvBuf));
|
---|
| 179 | }
|
---|
| 180 | else
|
---|
[11284] | 181 | AssertMsgFailed(("RTFileWrite(%d, %p, %#x) -> %Rrc (off=%#llx '%s')\n",
|
---|
[11269] | 182 | pThis->File, pvBuf, cbWrite, rc, off, pThis->pszFilename));
|
---|
[1] | 183 | }
|
---|
| 184 | else
|
---|
[11284] | 185 | AssertMsgFailed(("RTFileSeek(%d,%#llx,) -> %Rrc\n", pThis->File, off, rc));
|
---|
| 186 | LogFlow(("drvRawImageWrite: returns %Rrc\n", rc));
|
---|
[1] | 187 | return rc;
|
---|
| 188 | }
|
---|
| 189 |
|
---|
| 190 |
|
---|
| 191 | /** @copydoc PDMIMEDIA::pfnFlush */
|
---|
| 192 | static DECLCALLBACK(int) drvRawImageFlush(PPDMIMEDIA pInterface)
|
---|
| 193 | {
|
---|
[11269] | 194 | PDRVRAWIMAGE pThis = PDMIMEDIA_2_DRVRAWIMAGE(pInterface);
|
---|
| 195 | LogFlow(("drvRawImageFlush: (%s)\n", pThis->pszFilename));
|
---|
[1] | 196 |
|
---|
[11269] | 197 | Assert(pThis->File != NIL_RTFILE);
|
---|
| 198 | int rc = RTFileFlush(pThis->File);
|
---|
[11284] | 199 | LogFlow(("drvRawImageFlush: returns %Rrc\n", rc));
|
---|
[1] | 200 | return rc;
|
---|
| 201 | }
|
---|
| 202 |
|
---|
| 203 |
|
---|
| 204 | /** @copydoc PDMIMEDIA::pfnGetUuid */
|
---|
| 205 | static DECLCALLBACK(int) drvRawImageGetUuid(PPDMIMEDIA pInterface, PRTUUID pUuid)
|
---|
| 206 | {
|
---|
| 207 | LogFlow(("drvRawImageGetUuid: returns VERR_NOT_IMPLEMENTED\n"));
|
---|
| 208 | return VERR_NOT_IMPLEMENTED;
|
---|
| 209 | }
|
---|
| 210 |
|
---|
| 211 |
|
---|
| 212 | /** @copydoc PDMIMEDIA::pfnIsReadOnly */
|
---|
| 213 | static DECLCALLBACK(bool) drvRawImageIsReadOnly(PPDMIMEDIA pInterface)
|
---|
| 214 | {
|
---|
[11269] | 215 | PDRVRAWIMAGE pThis = PDMIMEDIA_2_DRVRAWIMAGE(pInterface);
|
---|
| 216 | return pThis->fReadOnly;
|
---|
[1] | 217 | }
|
---|
| 218 |
|
---|
| 219 |
|
---|
[26001] | 220 | /* -=-=-=-=- PDMIBASE -=-=-=-=- */
|
---|
| 221 |
|
---|
[1] | 222 | /**
|
---|
[25966] | 223 | * @interface_method_impl{PDMIBASE,pfnQueryInterface}
|
---|
[1] | 224 | */
|
---|
[25966] | 225 | static DECLCALLBACK(void *) drvRawImageQueryInterface(PPDMIBASE pInterface, const char *pszIID)
|
---|
[1] | 226 | {
|
---|
[25966] | 227 | PPDMDRVINS pDrvIns = PDMIBASE_2_DRVINS(pInterface);
|
---|
| 228 | PDRVRAWIMAGE pThis = PDMINS_2_DATA(pDrvIns, PDRVRAWIMAGE);
|
---|
| 229 |
|
---|
[25985] | 230 | PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase);
|
---|
[25974] | 231 | PDMIBASE_RETURN_INTERFACE(pszIID, PDMIMEDIA, &pThis->IMedia);
|
---|
[25966] | 232 | return NULL;
|
---|
[1] | 233 | }
|
---|
| 234 |
|
---|
[26001] | 235 | /* -=-=-=-=- PDMDRVREG -=-=-=-=- */
|
---|
[1] | 236 |
|
---|
| 237 | /**
|
---|
[26001] | 238 | * Destruct a driver instance.
|
---|
| 239 | *
|
---|
| 240 | * Most VM resources are freed by the VM. This callback is provided so that any non-VM
|
---|
| 241 | * resources can be freed correctly.
|
---|
| 242 | *
|
---|
| 243 | * @param pDrvIns The driver instance data.
|
---|
| 244 | */
|
---|
| 245 | static DECLCALLBACK(void) drvRawImageDestruct(PPDMDRVINS pDrvIns)
|
---|
| 246 | {
|
---|
| 247 | PDRVRAWIMAGE pThis = PDMINS_2_DATA(pDrvIns, PDRVRAWIMAGE);
|
---|
| 248 | LogFlow(("drvRawImageDestruct: '%s'\n", pThis->pszFilename));
|
---|
| 249 | PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
|
---|
| 250 |
|
---|
| 251 | if (pThis->File != NIL_RTFILE)
|
---|
| 252 | {
|
---|
| 253 | RTFileClose(pThis->File);
|
---|
| 254 | pThis->File = NIL_RTFILE;
|
---|
| 255 | }
|
---|
| 256 | if (pThis->pszFilename)
|
---|
| 257 | MMR3HeapFree(pThis->pszFilename);
|
---|
| 258 | }
|
---|
| 259 |
|
---|
| 260 |
|
---|
| 261 | /**
|
---|
| 262 | * Construct a raw image driver instance.
|
---|
| 263 | *
|
---|
| 264 | * @copydoc FNPDMDRVCONSTRUCT
|
---|
| 265 | */
|
---|
[26173] | 266 | static DECLCALLBACK(int) drvRawImageConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
|
---|
[26001] | 267 | {
|
---|
| 268 | PDRVRAWIMAGE pThis = PDMINS_2_DATA(pDrvIns, PDRVRAWIMAGE);
|
---|
| 269 | PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
|
---|
| 270 |
|
---|
| 271 | /*
|
---|
| 272 | * Init the static parts.
|
---|
| 273 | */
|
---|
| 274 | pThis->pDrvIns = pDrvIns;
|
---|
| 275 | pThis->File = NIL_RTFILE;
|
---|
| 276 | /* IBase */
|
---|
| 277 | pDrvIns->IBase.pfnQueryInterface = drvRawImageQueryInterface;
|
---|
| 278 | /* IMedia */
|
---|
| 279 | pThis->IMedia.pfnRead = drvRawImageRead;
|
---|
| 280 | pThis->IMedia.pfnWrite = drvRawImageWrite;
|
---|
| 281 | pThis->IMedia.pfnFlush = drvRawImageFlush;
|
---|
| 282 | pThis->IMedia.pfnGetSize = drvRawImageGetSize;
|
---|
| 283 | pThis->IMedia.pfnGetUuid = drvRawImageGetUuid;
|
---|
| 284 | pThis->IMedia.pfnIsReadOnly = drvRawImageIsReadOnly;
|
---|
| 285 | pThis->IMedia.pfnBiosGetPCHSGeometry = drvRawImageBiosGetPCHSGeometry;
|
---|
| 286 | pThis->IMedia.pfnBiosSetPCHSGeometry = drvRawImageBiosSetPCHSGeometry;
|
---|
| 287 | pThis->IMedia.pfnBiosGetLCHSGeometry = drvRawImageBiosGetLCHSGeometry;
|
---|
| 288 | pThis->IMedia.pfnBiosSetLCHSGeometry = drvRawImageBiosSetLCHSGeometry;
|
---|
| 289 |
|
---|
| 290 | /*
|
---|
| 291 | * Read the configuration.
|
---|
| 292 | */
|
---|
[26173] | 293 | if (!CFGMR3AreValuesValid(pCfg, "Path\0"))
|
---|
[26001] | 294 | return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
|
---|
| 295 |
|
---|
| 296 | char *pszName;
|
---|
[26173] | 297 | int rc = CFGMR3QueryStringAlloc(pCfg, "Path", &pszName);
|
---|
[26001] | 298 | if (RT_FAILURE(rc))
|
---|
| 299 | {
|
---|
| 300 | AssertMsgFailed(("Configuration error: query for \"Path\" string return %Rrc.\n", rc));
|
---|
| 301 | return rc;
|
---|
| 302 | }
|
---|
| 303 |
|
---|
| 304 | /*
|
---|
| 305 | * Open the image.
|
---|
| 306 | */
|
---|
| 307 | rc = RTFileOpen(&pThis->File, pszName,
|
---|
| 308 | RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
|
---|
| 309 | if (RT_SUCCESS(rc))
|
---|
| 310 | {
|
---|
| 311 | LogFlow(("drvRawImageConstruct: Raw image '%s' opened successfully.\n", pszName));
|
---|
| 312 | pThis->pszFilename = pszName;
|
---|
| 313 | pThis->fReadOnly = false;
|
---|
| 314 | }
|
---|
| 315 | else
|
---|
| 316 | {
|
---|
| 317 | rc = RTFileOpen(&pThis->File, pszName,
|
---|
| 318 | RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
|
---|
| 319 | if (RT_SUCCESS(rc))
|
---|
| 320 | {
|
---|
| 321 | LogFlow(("drvRawImageConstruct: Raw image '%s' opened successfully.\n", pszName));
|
---|
| 322 | pThis->pszFilename = pszName;
|
---|
| 323 | pThis->fReadOnly = true;
|
---|
| 324 | }
|
---|
| 325 | else
|
---|
| 326 | {
|
---|
| 327 | AssertMsgFailed(("Could not open Raw image file %s, rc=%Rrc\n", pszName, rc));
|
---|
| 328 | MMR3HeapFree(pszName);
|
---|
| 329 | }
|
---|
| 330 | }
|
---|
| 331 |
|
---|
| 332 | return rc;
|
---|
| 333 | }
|
---|
| 334 |
|
---|
| 335 |
|
---|
| 336 | /**
|
---|
[1] | 337 | * Raw image driver registration record.
|
---|
| 338 | */
|
---|
| 339 | const PDMDRVREG g_DrvRawImage =
|
---|
| 340 | {
|
---|
| 341 | /* u32Version */
|
---|
| 342 | PDM_DRVREG_VERSION,
|
---|
[26166] | 343 | /* szName */
|
---|
[1] | 344 | "RawImage",
|
---|
[25893] | 345 | /* szRCMod */
|
---|
| 346 | "",
|
---|
| 347 | /* szR0Mod */
|
---|
| 348 | "",
|
---|
[1] | 349 | /* pszDescription */
|
---|
| 350 | "Raw image access driver.",
|
---|
| 351 | /* fFlags */
|
---|
| 352 | PDM_DRVREG_FLAGS_HOST_BITS_DEFAULT,
|
---|
| 353 | /* fClass. */
|
---|
| 354 | PDM_DRVREG_CLASS_MEDIA,
|
---|
| 355 | /* cMaxInstances */
|
---|
| 356 | ~0,
|
---|
| 357 | /* cbInstance */
|
---|
| 358 | sizeof(DRVRAWIMAGE),
|
---|
| 359 | /* pfnConstruct */
|
---|
| 360 | drvRawImageConstruct,
|
---|
| 361 | /* pfnDestruct */
|
---|
| 362 | drvRawImageDestruct,
|
---|
[25893] | 363 | /* pfnRelocate */
|
---|
| 364 | NULL,
|
---|
[1] | 365 | /* pfnIOCtl */
|
---|
| 366 | NULL,
|
---|
| 367 | /* pfnPowerOn */
|
---|
| 368 | NULL,
|
---|
| 369 | /* pfnReset */
|
---|
| 370 | NULL,
|
---|
| 371 | /* pfnSuspend */
|
---|
| 372 | NULL,
|
---|
| 373 | /* pfnResume */
|
---|
| 374 | NULL,
|
---|
[22277] | 375 | /* pfnAttach */
|
---|
| 376 | NULL,
|
---|
[1] | 377 | /* pfnDetach */
|
---|
[25893] | 378 | NULL,
|
---|
[22277] | 379 | /* pfnPowerOff */
|
---|
[25893] | 380 | NULL,
|
---|
[22277] | 381 | /* pfnSoftReset */
|
---|
[1] | 382 | NULL,
|
---|
[22277] | 383 | /* u32EndVersion */
|
---|
| 384 | PDM_DRVREG_VERSION
|
---|
[1] | 385 | };
|
---|