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