VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/PlatformPei/Cmos.h@ 42405

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

EFI/Ovmf: PlatformPei (replacement of ovmf_pei patch) derived from UDK2010.SR1/Ovmf r13361.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: Cmos.h 42405 2012-07-26 07:04:37Z vboxsync $ */
2/** @file
3 * Cmos.h
4 */
5
6/*
7 * Copyright (C) 2012 Oracle Corporation
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
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.
16 */
17
18/** @file
19 PC/AT CMOS access routines
20
21 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
22 This program and the accompanying materials
23 are licensed and made available under the terms and conditions of the BSD License
24 which accompanies this distribution. The full text of the license may be found at
25 http://opensource.org/licenses/bsd-license.php
26
27 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
28 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
29
30**/
31
32#ifndef __CMOS_H__
33#define __CMOS_H__
34
35/**
36 Reads 8-bits of CMOS data.
37
38 Reads the 8-bits of CMOS data at the location specified by Index.
39 The 8-bit read value is returned.
40
41 @param Index The CMOS location to read.
42
43 @return The value read.
44
45**/
46UINT8
47EFIAPI
48CmosRead8 (
49 IN UINTN Index
50 );
51
52/**
53 Writes 8-bits of CMOS data.
54
55 Writes 8-bits of CMOS data to the location specified by Index
56 with the value specified by Value and returns Value.
57
58 @param Index The CMOS location to write.
59 @param Value The value to write to CMOS.
60
61 @return The value written to CMOS.
62
63**/
64UINT8
65EFIAPI
66CmosWrite8 (
67 IN UINTN Index,
68 IN UINT8 Value
69 );
70
71
72#endif
73
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