]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseIoLibIntrinsic/IoLibEbc.c
4 EBC does not support port I/O. All APIs in this file ASSERT().
6 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
7 Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>
9 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #include "BaseIoLibIntrinsicInternal.h"
16 Reads an 8-bit I/O port.
18 Reads the 8-bit I/O port specified by Port. The 8-bit read value is returned.
19 This function must guarantee that all I/O read and write operations are
22 If 8-bit I/O port operations are not supported, then ASSERT().
24 @param Port The I/O port to read.
26 @return The value read.
40 Writes an 8-bit I/O port.
42 Writes the 8-bit I/O port specified by Port with the value specified by Value
43 and returns Value. This function must guarantee that all I/O read and write
44 operations are serialized.
46 If 8-bit I/O port operations are not supported, then ASSERT().
48 @param Port The I/O port to write.
49 @param Value The value to write to the I/O port.
51 @return The value written to the I/O port.
66 Reads a 16-bit I/O port.
68 Reads the 16-bit I/O port specified by Port. The 16-bit read value is returned.
69 This function must guarantee that all I/O read and write operations are
72 If 16-bit I/O port operations are not supported, then ASSERT().
73 If Port is not aligned on a 16-bit boundary, then ASSERT().
75 @param Port The I/O port to read.
77 @return The value read.
91 Writes a 16-bit I/O port.
93 Writes the 16-bit I/O port specified by Port with the value specified by Value
94 and returns Value. This function must guarantee that all I/O read and write
95 operations are serialized.
97 If 16-bit I/O port operations are not supported, then ASSERT().
98 If Port is not aligned on a 16-bit boundary, then ASSERT().
100 @param Port The I/O port to write.
101 @param Value The value to write to the I/O port.
103 @return The value written to the I/O port.
118 Reads a 32-bit I/O port.
120 Reads the 32-bit I/O port specified by Port. The 32-bit read value is returned.
121 This function must guarantee that all I/O read and write operations are
124 If 32-bit I/O port operations are not supported, then ASSERT().
125 If Port is not aligned on a 32-bit boundary, then ASSERT().
127 @param Port The I/O port to read.
129 @return The value read.
143 Writes a 32-bit I/O port.
145 Writes the 32-bit I/O port specified by Port with the value specified by Value
146 and returns Value. This function must guarantee that all I/O read and write
147 operations are serialized.
149 If 32-bit I/O port operations are not supported, then ASSERT().
150 If Port is not aligned on a 32-bit boundary, then ASSERT().
152 @param Port The I/O port to write.
153 @param Value The value to write to the I/O port.
155 @return The value written to the I/O port.
170 Reads an 8-bit I/O port fifo into a block of memory.
172 Reads the 8-bit I/O fifo port specified by Port.
173 The port is read Count times, and the read data is
174 stored in the provided Buffer.
176 This function must guarantee that all I/O read and write operations are
179 If 8-bit I/O port operations are not supported, then ASSERT().
181 @param Port The I/O port to read.
182 @param Count The number of times to read I/O port.
183 @param Buffer The buffer to store the read data into.
198 Writes a block of memory into an 8-bit I/O port fifo.
200 Writes the 8-bit I/O fifo port specified by Port.
201 The port is written Count times, and the write data is
202 retrieved from the provided Buffer.
204 This function must guarantee that all I/O write and write operations are
207 If 8-bit I/O port operations are not supported, then ASSERT().
209 @param Port The I/O port to write.
210 @param Count The number of times to write I/O port.
211 @param Buffer The buffer to retrieve the write data from.
226 Reads a 16-bit I/O port fifo into a block of memory.
228 Reads the 16-bit I/O fifo port specified by Port.
229 The port is read Count times, and the read data is
230 stored in the provided Buffer.
232 This function must guarantee that all I/O read and write operations are
235 If 16-bit I/O port operations are not supported, then ASSERT().
237 @param Port The I/O port to read.
238 @param Count The number of times to read I/O port.
239 @param Buffer The buffer to store the read data into.
254 Writes a block of memory into a 16-bit I/O port fifo.
256 Writes the 16-bit I/O fifo port specified by Port.
257 The port is written Count times, and the write data is
258 retrieved from the provided Buffer.
260 This function must guarantee that all I/O write and write operations are
263 If 16-bit I/O port operations are not supported, then ASSERT().
265 @param Port The I/O port to write.
266 @param Count The number of times to write I/O port.
267 @param Buffer The buffer to retrieve the write data from.
282 Reads a 32-bit I/O port fifo into a block of memory.
284 Reads the 32-bit I/O fifo port specified by Port.
285 The port is read Count times, and the read data is
286 stored in the provided Buffer.
288 This function must guarantee that all I/O read and write operations are
291 If 32-bit I/O port operations are not supported, then ASSERT().
293 @param Port The I/O port to read.
294 @param Count The number of times to read I/O port.
295 @param Buffer The buffer to store the read data into.
310 Writes a block of memory into a 32-bit I/O port fifo.
312 Writes the 32-bit I/O fifo port specified by Port.
313 The port is written Count times, and the write data is
314 retrieved from the provided Buffer.
316 This function must guarantee that all I/O write and write operations are
319 If 32-bit I/O port operations are not supported, then ASSERT().
321 @param Port The I/O port to write.
322 @param Count The number of times to write I/O port.
323 @param Buffer The buffer to retrieve the write data from.