TianoCore EDK2 master
Loading...
Searching...
No Matches
Csr.c
Go to the documentation of this file.
1
10AsmCsrRead (
11 IN UINT16 Select
12 );
13
15AsmCsrWrite (
16 IN UINT16 Select,
17 IN UINTN Value
18 );
19
21AsmCsrXChg (
22 IN UINT16 Select,
23 IN UINTN Value,
24 IN UINTN Mask
25 );
26
36EFIAPI
38 IN UINT16 Select
39 )
40{
41 return AsmCsrRead (Select);
42}
43
54EFIAPI
56 IN UINT16 Select,
57 IN OUT UINTN Value
58 )
59{
60 return AsmCsrWrite (Select, Value);
61}
62
74EFIAPI
76 IN UINT16 Select,
77 IN OUT UINTN Value,
78 IN UINTN Mask
79 )
80{
81 return AsmCsrXChg (Select, Value, Mask);
82}
UINT64 UINTN
UINTN EFIAPI CsrRead(IN UINT16 Select)
Definition: Csr.c:37
UINTN EFIAPI CsrXChg(IN UINT16 Select, IN OUT UINTN Value, IN UINTN Mask)
Definition: Csr.c:75
UINTN EFIAPI CsrWrite(IN UINT16 Select, IN OUT UINTN Value)
Definition: Csr.c:55
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284