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
25UINT8
26EFIAPI
28 IN UINTN Index
29 )
30{
31 IoWrite8 (0x70, (UINT8)Index);
32 return IoRead8 (0x71);
33}
34
47UINT8
48EFIAPI
50 IN UINTN Index,
51 IN UINT8 Value
52 )
53{
54 IoWrite8 (0x70, (UINT8)Index);
55 IoWrite8 (0x71, Value);
56 return Value;
57}
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