]>
Commit | Line | Data |
---|---|---|
656419f9 RC |
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 | |
9fb629ed RC |
9 | #ifndef _CMOS_H_\r |
10 | #define _CMOS_H_\r | |
656419f9 RC |
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 | |
ac0a286f | 26 | IN UINTN Index\r |
656419f9 RC |
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 | |
ac0a286f MK |
44 | IN UINTN Index,\r |
45 | IN UINT8 Value\r | |
656419f9 RC |
46 | );\r |
47 | \r | |
9fb629ed | 48 | #endif /* _CMOS_H_ */\r |