TianoCore EDK2 master
Loading...
Searching...
No Matches
Cmos.c
Go to the documentation of this file.
1
9#include "Cmos.h"
10#include "Library/IoLib.h"
11
23UINT8
24EFIAPI
26 IN UINTN Index
27 )
28{
29 IoWrite8 (0x70, (UINT8)Index);
30 return IoRead8 (0x71);
31}
32
45UINT8
46EFIAPI
48 IN UINTN Index,
49 IN UINT8 Value
50 )
51{
52 IoWrite8 (0x70, (UINT8)Index);
53 IoWrite8 (0x71, Value);
54 return Value;
55}
UINT64 UINTN
UINT8 EFIAPI CmosRead8(IN UINTN Index)
Definition: Cmos.c:25
UINT8 EFIAPI CmosWrite8(IN UINTN Index, IN UINT8 Value)
Definition: Cmos.c:47
UINT8 EFIAPI IoWrite8(IN UINTN Port, IN UINT8 Value)
Definition: IoLibArmVirt.c:200
UINT8 EFIAPI IoRead8(IN UINTN Port)
Definition: IoLibArmVirt.c:175
#define IN
Definition: Base.h:279