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