]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/XenPlatformPei/Cmos.c
5d9ee67cd851818fbf005f24ff0bbb8631e45ddc
2 PC/AT CMOS access routines
4 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
5 Copyright (c) 2019, Citrix Systems, Inc.
7 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #include "Library/IoLib.h"
16 Reads 8-bits of CMOS data.
18 Reads the 8-bits of CMOS data at the location specified by Index.
19 The 8-bit read value is returned.
21 @param Index The CMOS location to read.
23 @return The value read.
32 IoWrite8 (0x70, (UINT8
) Index
);
33 return IoRead8 (0x71);
38 Writes 8-bits of CMOS data.
40 Writes 8-bits of CMOS data to the location specified by Index
41 with the value specified by Value and returns Value.
43 @param Index The CMOS location to write.
44 @param Value The value to write to CMOS.
46 @return The value written to CMOS.
56 IoWrite8 (0x70, (UINT8
) Index
);
57 IoWrite8 (0x71, Value
);