]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PlatformPei/Cmos.h
BaseTools: Library hashing fix and optimization for --hash feature
[mirror_edk2.git] / OvmfPkg / PlatformPei / Cmos.h
1 /** @file
2 PC/AT CMOS access routines
3
4 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef __CMOS_H__
10 #define __CMOS_H__
11
12 /**
13 Reads 8-bits of CMOS data.
14
15 Reads the 8-bits of CMOS data at the location specified by Index.
16 The 8-bit read value is returned.
17
18 @param Index The CMOS location to read.
19
20 @return The value read.
21
22 **/
23 UINT8
24 EFIAPI
25 CmosRead8 (
26 IN UINTN Index
27 );
28
29 /**
30 Writes 8-bits of CMOS data.
31
32 Writes 8-bits of CMOS data to the location specified by Index
33 with the value specified by Value and returns Value.
34
35 @param Index The CMOS location to write.
36 @param Value The value to write to CMOS.
37
38 @return The value written to CMOS.
39
40 **/
41 UINT8
42 EFIAPI
43 CmosWrite8 (
44 IN UINTN Index,
45 IN UINT8 Value
46 );
47
48
49 #endif
50