VirtualBox

source: vbox/trunk/src/VBox/Main/include/Nvram.h@ 48112

Last change on this file since 48112 was 44591, checked in by vboxsync, 12 years ago

DevEFI,Nvram.cpp: Cleaning up. (partly tested)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1/* $Id: Nvram.h 44591 2013-02-08 04:48:00Z vboxsync $ */
2
3/** @file
4 * VirtualBox COM class implementation
5 */
6
7/*
8 * Copyright (C) 2012 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
25class Console;
26struct NVRAM;
27
28class Nvram
29{
30public:
31 Nvram(Console *console);
32 virtual ~Nvram();
33
34 Console *getParent(void) { return mParent; }
35
36 static const PDMDRVREG DrvReg;
37
38private:
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: */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette