1 | /* $Id: Nvram.h 69500 2017-10-28 15:14:05Z vboxsync $ */
|
---|
2 |
|
---|
3 | /** @file
|
---|
4 | * VirtualBox COM class implementation
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2012-2017 Oracle Corporation
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | * General Public License (GPL) as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | */
|
---|
18 |
|
---|
19 | #ifndef ____H_NVRAM
|
---|
20 | #define ____H_NVRAM
|
---|
21 |
|
---|
22 | #include <VBox/com/ptr.h>
|
---|
23 | #include <VBox/vmm/pdmdrv.h>
|
---|
24 |
|
---|
25 | class Console;
|
---|
26 | struct NVRAM;
|
---|
27 |
|
---|
28 | class Nvram
|
---|
29 | {
|
---|
30 | public:
|
---|
31 | Nvram(Console *console);
|
---|
32 | virtual ~Nvram();
|
---|
33 |
|
---|
34 | Console *getParent(void) { return mParent; }
|
---|
35 |
|
---|
36 | static const PDMDRVREG DrvReg;
|
---|
37 |
|
---|
38 | private:
|
---|
39 | static DECLCALLBACK(void *) drvNvram_QueryInterface(PPDMIBASE pInterface, const char *pszIID);
|
---|
40 | static DECLCALLBACK(int) drvNvram_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
|
---|
41 | static DECLCALLBACK(void) drvNvram_Destruct(PPDMDRVINS pDrvIns);
|
---|
42 |
|
---|
43 | /** Pointer to the parent object. */
|
---|
44 | Console * const mParent;
|
---|
45 | /** Pointer to the driver instance data.
|
---|
46 | * Can be NULL during init and termination. */
|
---|
47 | struct NVRAM *mpDrv;
|
---|
48 | };
|
---|
49 |
|
---|
50 | #endif /* !____H_NVRAM */
|
---|
51 | /* vi: set tabstop=4 shiftwidth=4 expandtab: */
|
---|