]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PlatformPei/Cmos.c
2 PC/AT CMOS access routines
4 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include "Library/IoLib.h"
14 Reads 8-bits of CMOS data.
16 Reads the 8-bits of CMOS data at the location specified by Index.
17 The 8-bit read value is returned.
19 @param Index The CMOS location to read.
21 @return The value read.
30 IoWrite8 (0x70, (UINT8
) Index
);
31 return IoRead8 (0x71);
36 Writes 8-bits of CMOS data.
38 Writes 8-bits of CMOS data to the location specified by Index
39 with the value specified by Value and returns Value.
41 @param Index The CMOS location to write.
42 @param Value The value to write to CMOS.
44 @return The value written to CMOS.
54 IoWrite8 (0x70, (UINT8
) Index
);
55 IoWrite8 (0x71, Value
);