TianoCore EDK2 master
Loading...
Searching...
No Matches
IoLibFifo.c
Go to the documentation of this file.
1
10#include <Uefi/UefiBaseType.h>
11
31VOID
32EFIAPI
34 IN UINTN Port,
35 IN UINTN Count,
36 OUT VOID *Buffer
37 )
38{
39 UINT8 *Buffer8;
40
41 Buffer8 = (UINT8 *)Buffer;
42 while (Count-- > 0) {
43 *Buffer8++ = IoRead8 (Port);
44 }
45}
46
66VOID
67EFIAPI
69 IN UINTN Port,
70 IN UINTN Count,
71 IN VOID *Buffer
72 )
73{
74 UINT8 *Buffer8;
75
76 Buffer8 = (UINT8 *)Buffer;
77 while (Count-- > 0) {
78 IoWrite8 (Port, *Buffer8++);
79 }
80}
81
101VOID
102EFIAPI
104 IN UINTN Port,
105 IN UINTN Count,
106 OUT VOID *Buffer
107 )
108{
109 UINT16 *Buffer16;
110
111 Buffer16 = (UINT16 *)Buffer;
112 while (Count-- > 0) {
113 *Buffer16++ = IoRead16 (Port);
114 }
115}
116
136VOID
137EFIAPI
139 IN UINTN Port,
140 IN UINTN Count,
141 IN VOID *Buffer
142 )
143{
144 UINT16 *Buffer16;
145
146 Buffer16 = (UINT16 *)Buffer;
147 while (Count-- > 0) {
148 IoWrite16 (Port, *Buffer16++);
149 }
150}
151
171VOID
172EFIAPI
174 IN UINTN Port,
175 IN UINTN Count,
176 OUT VOID *Buffer
177 )
178{
179 UINT32 *Buffer32;
180
181 Buffer32 = (UINT32 *)Buffer;
182 while (Count-- > 0) {
183 *Buffer32++ = IoRead32 (Port);
184 }
185}
186
206VOID
207EFIAPI
209 IN UINTN Port,
210 IN UINTN Count,
211 IN VOID *Buffer
212 )
213{
214 UINT32 *Buffer32;
215
216 Buffer32 = (UINT32 *)Buffer;
217 while (Count-- > 0) {
218 IoWrite32 (Port, *Buffer32++);
219 }
220}
UINT64 UINTN
UINT8 EFIAPI IoWrite8(IN UINTN Port, IN UINT8 Value)
Definition: IoLibArmVirt.c:200
UINT8 EFIAPI IoRead8(IN UINTN Port)
Definition: IoLibArmVirt.c:175
UINT16 EFIAPI IoRead16(IN UINTN Port)
Definition: IoLibArmVirt.c:225
UINT32 EFIAPI IoRead32(IN UINTN Port)
Definition: IoLibArmVirt.c:275
UINT32 EFIAPI IoWrite32(IN UINTN Port, IN UINT32 Value)
Definition: IoLibArmVirt.c:300
UINT16 EFIAPI IoWrite16(IN UINTN Port, IN UINT16 Value)
Definition: IoLibArmVirt.c:250
VOID EFIAPI IoWriteFifo32(IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
Definition: IoLibFifo.c:208
VOID EFIAPI IoReadFifo8(IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
Definition: IoLibFifo.c:33
VOID EFIAPI IoReadFifo16(IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
Definition: IoLibFifo.c:103
VOID EFIAPI IoWriteFifo16(IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
Definition: IoLibFifo.c:138
VOID EFIAPI IoReadFifo32(IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
Definition: IoLibFifo.c:173
VOID EFIAPI IoWriteFifo8(IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
Definition: IoLibFifo.c:68
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284