]>
Commit | Line | Data |
---|---|---|
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 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
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 | |
23 | UINT8\r | |
24 | EFIAPI\r | |
25 | CmosRead8 (\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 | |
41 | UINT8\r | |
42 | EFIAPI\r | |
43 | CmosWrite8 (\r | |
44 | IN UINTN Index,\r | |
45 | IN UINT8 Value\r | |
46 | );\r | |
47 | \r | |
48 | \r | |
49 | #endif\r | |
50 | \r |