TianoCore EDK2
master
Loading...
Searching...
No Matches
Cmos.c
Go to the documentation of this file.
1
11
#include "
Cmos.h
"
12
#include "
Library/IoLib.h
"
13
25
UINT8
26
EFIAPI
27
CmosRead8
(
28
IN
UINTN
Index
29
)
30
{
31
IoWrite8
(0x70, (UINT8)Index);
32
return
IoRead8
(0x71);
33
}
34
47
UINT8
48
EFIAPI
49
CmosWrite8
(
50
IN
UINTN
Index,
51
IN
UINT8 Value
52
)
53
{
54
IoWrite8
(0x70, (UINT8)Index);
55
IoWrite8
(0x71, Value);
56
return
Value;
57
}
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
CmosRead8
UINT8 EFIAPI CmosRead8(IN UINTN Index)
Definition:
Cmos.c:25
CmosWrite8
UINT8 EFIAPI CmosWrite8(IN UINTN Index, IN UINT8 Value)
Definition:
Cmos.c:47
IoLib.h
IoWrite8
UINT8 EFIAPI IoWrite8(IN UINTN Port, IN UINT8 Value)
Definition:
IoLibArmVirt.c:200
IoRead8
UINT8 EFIAPI IoRead8(IN UINTN Port)
Definition:
IoLibArmVirt.c:175
IN
#define IN
Definition:
Base.h:279
Cmos.h
OvmfPkg
XenPlatformPei
Cmos.c
Generated on Fri Nov 15 2024 18:01:22 for TianoCore EDK2 by
1.9.6