]>
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 This program and the accompanying materials
10 are licensed and made available under the terms and conditions of the BSD License
11 which accompanies this distribution. The full text of the license may be found at
12 http://opensource.org/licenses/bsd-license.php.
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 #include "BaseIoLibIntrinsicInternal.h"
22 Reads an 8-bit I/O port.
24 Reads the 8-bit I/O port specified by Port. The 8-bit read value is returned.
25 This function must guarantee that all I/O read and write operations are
28 If 8-bit I/O port operations are not supported, then ASSERT().
30 @param Port The I/O port to read.
32 @return The value read.
46 Writes an 8-bit I/O port.
48 Writes the 8-bit I/O port specified by Port with the value specified by Value
49 and returns Value. This function must guarantee that all I/O read and write
50 operations are serialized.
52 If 8-bit I/O port operations are not supported, then ASSERT().
54 @param Port The I/O port to write.
55 @param Value The value to write to the I/O port.
57 @return The value written to the I/O port.
72 Reads a 16-bit I/O port.
74 Reads the 16-bit I/O port specified by Port. The 16-bit read value is returned.
75 This function must guarantee that all I/O read and write operations are
78 If 16-bit I/O port operations are not supported, then ASSERT().
79 If Port is not aligned on a 16-bit boundary, then ASSERT().
81 @param Port The I/O port to read.
83 @return The value read.
97 Writes a 16-bit I/O port.
99 Writes the 16-bit I/O port specified by Port with the value specified by Value
100 and returns Value. This function must guarantee that all I/O read and write
101 operations are serialized.
103 If 16-bit I/O port operations are not supported, then ASSERT().
104 If Port is not aligned on a 16-bit boundary, then ASSERT().
106 @param Port The I/O port to write.
107 @param Value The value to write to the I/O port.
109 @return The value written to the I/O port.
124 Reads a 32-bit I/O port.
126 Reads the 32-bit I/O port specified by Port. The 32-bit read value is returned.
127 This function must guarantee that all I/O read and write operations are
130 If 32-bit I/O port operations are not supported, then ASSERT().
131 If Port is not aligned on a 32-bit boundary, then ASSERT().
133 @param Port The I/O port to read.
135 @return The value read.
149 Writes a 32-bit I/O port.
151 Writes the 32-bit I/O port specified by Port with the value specified by Value
152 and returns Value. This function must guarantee that all I/O read and write
153 operations are serialized.
155 If 32-bit I/O port operations are not supported, then ASSERT().
156 If Port is not aligned on a 32-bit boundary, then ASSERT().
158 @param Port The I/O port to write.
159 @param Value The value to write to the I/O port.
161 @return The value written to the I/O port.
176 Reads an 8-bit I/O port fifo into a block of memory.
178 Reads the 8-bit I/O fifo port specified by Port.
179 The port is read Count times, and the read data is
180 stored in the provided Buffer.
182 This function must guarantee that all I/O read and write operations are
185 If 8-bit I/O port operations are not supported, then ASSERT().
187 @param Port The I/O port to read.
188 @param Count The number of times to read I/O port.
189 @param Buffer The buffer to store the read data into.
204 Writes a block of memory into an 8-bit I/O port fifo.
206 Writes the 8-bit I/O fifo port specified by Port.
207 The port is written Count times, and the write data is
208 retrieved from the provided Buffer.
210 This function must guarantee that all I/O write and write operations are
213 If 8-bit I/O port operations are not supported, then ASSERT().
215 @param Port The I/O port to write.
216 @param Count The number of times to write I/O port.
217 @param Buffer The buffer to retrieve the write data from.
232 Reads a 16-bit I/O port fifo into a block of memory.
234 Reads the 16-bit I/O fifo port specified by Port.
235 The port is read Count times, and the read data is
236 stored in the provided Buffer.
238 This function must guarantee that all I/O read and write operations are
241 If 16-bit I/O port operations are not supported, then ASSERT().
243 @param Port The I/O port to read.
244 @param Count The number of times to read I/O port.
245 @param Buffer The buffer to store the read data into.
260 Writes a block of memory into a 16-bit I/O port fifo.
262 Writes the 16-bit I/O fifo port specified by Port.
263 The port is written Count times, and the write data is
264 retrieved from the provided Buffer.
266 This function must guarantee that all I/O write and write operations are
269 If 16-bit I/O port operations are not supported, then ASSERT().
271 @param Port The I/O port to write.
272 @param Count The number of times to write I/O port.
273 @param Buffer The buffer to retrieve the write data from.
288 Reads a 32-bit I/O port fifo into a block of memory.
290 Reads the 32-bit I/O fifo port specified by Port.
291 The port is read Count times, and the read data is
292 stored in the provided Buffer.
294 This function must guarantee that all I/O read and write operations are
297 If 32-bit I/O port operations are not supported, then ASSERT().
299 @param Port The I/O port to read.
300 @param Count The number of times to read I/O port.
301 @param Buffer The buffer to store the read data into.
316 Writes a block of memory into a 32-bit I/O port fifo.
318 Writes the 32-bit I/O fifo port specified by Port.
319 The port is written Count times, and the write data is
320 retrieved from the provided Buffer.
322 This function must guarantee that all I/O write and write operations are
325 If 32-bit I/O port operations are not supported, then ASSERT().
327 @param Port The I/O port to write.
328 @param Count The number of times to write I/O port.
329 @param Buffer The buffer to retrieve the write data from.