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 | **/
|
---|
46 | UINT8
|
---|
47 | EFIAPI
|
---|
48 | CmosRead8 (
|
---|
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 | **/
|
---|
64 | UINT8
|
---|
65 | EFIAPI
|
---|
66 | CmosWrite8 (
|
---|
67 | IN UINTN Index,
|
---|
68 | IN UINT8 Value
|
---|
69 | );
|
---|
70 |
|
---|
71 |
|
---|
72 | #endif
|
---|
73 |
|
---|