diff options
Diffstat (limited to 'src/VBox/Devices/Storage/DrvHostFloppy.cpp')
| -rw-r--r-- | src/VBox/Devices/Storage/DrvHostFloppy.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/VBox/Devices/Storage/DrvHostFloppy.cpp b/src/VBox/Devices/Storage/DrvHostFloppy.cpp index c0e6336ab..c31025e23 100644 --- a/src/VBox/Devices/Storage/DrvHostFloppy.cpp +++ b/src/VBox/Devices/Storage/DrvHostFloppy.cpp @@ -5,7 +5,7 @@ */ /* - * Copyright (C) 2006-2007 Sun Microsystems, Inc. + * Copyright (C) 2006-2007 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; @@ -14,10 +14,6 @@ * Foundation, in version 2 as it comes in the "COPYING" file of the * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. - * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa - * Clara, CA 95054 USA or visit http://www.sun.com if you need - * additional information or have any questions. */ @@ -146,7 +142,7 @@ static DECLCALLBACK(int) drvHostFloppyPoll(PDRVHOSTBASE pThis) /** * @copydoc FNPDMDRVCONSTRUCT */ -static DECLCALLBACK(int) drvHostFloppyConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags) +static DECLCALLBACK(int) drvHostFloppyConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) { PDRVHOSTFLOPPY pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTFLOPPY); LogFlow(("drvHostFloppyConstruct: iInstance=%d\n", pDrvIns->iInstance)); @@ -154,13 +150,13 @@ static DECLCALLBACK(int) drvHostFloppyConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pC /* * Validate configuration. */ - if (!CFGMR3AreValuesValid(pCfgHandle, "Path\0ReadOnly\0Interval\0Locked\0BIOSVisible\0")) + if (!CFGMR3AreValuesValid(pCfg, "Path\0ReadOnly\0Interval\0Locked\0BIOSVisible\0")) return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; /* * Init instance data. */ - int rc = DRVHostBaseInitData(pDrvIns, pCfgHandle, PDMBLOCKTYPE_FLOPPY_1_44); + int rc = DRVHostBaseInitData(pDrvIns, pCfg, PDMBLOCKTYPE_FLOPPY_1_44); if (RT_SUCCESS(rc)) { /* @@ -201,8 +197,12 @@ const PDMDRVREG g_DrvHostFloppy = { /* u32Version */ PDM_DRVREG_VERSION, - /* szDriverName */ + /* szName */ "HostFloppy", + /* szRCMod */ + "", + /* szR0Mod */ + "", /* pszDescription */ "Host Floppy Block Driver.", /* fFlags */ @@ -217,6 +217,8 @@ const PDMDRVREG g_DrvHostFloppy = drvHostFloppyConstruct, /* pfnDestruct */ DRVHostBaseDestruct, + /* pfnRelocate */ + NULL, /* pfnIOCtl */ NULL, /* pfnPowerOn */ @@ -230,9 +232,9 @@ const PDMDRVREG g_DrvHostFloppy = /* pfnAttach */ NULL, /* pfnDetach */ - NULL, + NULL, /* pfnPowerOff */ - NULL, + NULL, /* pfnSoftReset */ NULL, /* u32EndVersion */ |
