VirtualBox

source: vbox/trunk/include/VBox/vmm/pdmnvram.h@ 43811

Last change on this file since 43811 was 43131, checked in by vboxsync, 12 years ago

EFI: permanent NVRAM storage.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/** @file
2 * PDM - Pluggable Device Manager, EFI NVRAM storage back-end.
3 */
4
5/*
6 * Copyright (C) 2012 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 */
25
26#ifndef ___VBox_vmm_pdmnvram_h_
27#define ___VBox_vmm_pdmnvram_h_
28
29#include <VBox/types.h>
30
31
32RT_C_DECLS_BEGIN
33
34/** @defgroup grp_pdm_ifs_nvram NVRAM Interface
35 * @ingroup grp_pdm_interfaces
36 * @{
37 */
38
39typedef struct PDMINVRAM *PPDMINVRAM;
40
41typedef struct PDMINVRAM
42{
43 /**
44 * This method flushes all values in the storage.
45 */
46 DECLR3CALLBACKMEMBER(int, pfnFlushNvramStorage, (PPDMINVRAM pInterface));
47
48 /**
49 * This method store NVRAM variable to storage
50 */
51 DECLR3CALLBACKMEMBER(int, pfnStoreNvramValue, (PPDMINVRAM pInterface, int idxVariable, RTUUID *pVendorUuid, const char *pcszVariableName, size_t cbVariableName, uint8_t *pu8Value, size_t cbValue));
52
53 /**
54 * This method load NVRAM variable to storage
55 */
56 DECLR3CALLBACKMEMBER(int, pfnLoadNvramValue, (PPDMINVRAM pInterface, int idxVariable, RTUUID *pVendorUuid, char *pcszVariableName, size_t *pcbVariableName, uint8_t *pu8Value, size_t *pcbValue));
57
58} PDMINVRAM;
59
60
61#define PDMINVRAM_IID "11226408-CB4C-4369-9218-1EE0092FB9F8"
62
63/** @} */
64
65RT_C_DECLS_END
66
67
68#endif
69
70
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