]>
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 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php.
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include "BaseIoLibIntrinsicInternal.h"
20 Reads an 8-bit I/O port.
22 Reads the 8-bit I/O port specified by Port. The 8-bit read value is returned.
23 This function must guarantee that all I/O read and write operations are
26 If 8-bit I/O port operations are not supported, then ASSERT().
28 @param Port The I/O port to read.
30 @return The value read.
44 Writes an 8-bit I/O port.
46 Writes the 8-bit I/O port specified by Port with the value specified by Value
47 and returns Value. This function must guarantee that all I/O read and write
48 operations are serialized.
50 If 8-bit I/O port operations are not supported, then ASSERT().
52 @param Port The I/O port to write.
53 @param Value The value to write to the I/O port.
55 @return The value written to the I/O port.
70 Reads a 16-bit I/O port.
72 Reads the 16-bit I/O port specified by Port. The 16-bit read value is returned.
73 This function must guarantee that all I/O read and write operations are
76 If 16-bit I/O port operations are not supported, then ASSERT().
77 If Port is not aligned on a 16-bit boundary, then ASSERT().
79 @param Port The I/O port to read.
81 @return The value read.
95 Writes a 16-bit I/O port.
97 Writes the 16-bit I/O port specified by Port with the value specified by Value
98 and returns Value. This function must guarantee that all I/O read and write
99 operations are serialized.
101 If 16-bit I/O port operations are not supported, then ASSERT().
102 If Port is not aligned on a 16-bit boundary, then ASSERT().
104 @param Port The I/O port to write.
105 @param Value The value to write to the I/O port.
107 @return The value written to the I/O port.
122 Reads a 32-bit I/O port.
124 Reads the 32-bit I/O port specified by Port. The 32-bit read value is returned.
125 This function must guarantee that all I/O read and write operations are
128 If 32-bit I/O port operations are not supported, then ASSERT().
129 If Port is not aligned on a 32-bit boundary, then ASSERT().
131 @param Port The I/O port to read.
133 @return The value read.
147 Writes a 32-bit I/O port.
149 Writes the 32-bit I/O port specified by Port with the value specified by Value
150 and returns Value. This function must guarantee that all I/O read and write
151 operations are serialized.
153 If 32-bit I/O port operations are not supported, then ASSERT().
154 If Port is not aligned on a 32-bit boundary, then ASSERT().
156 @param Port The I/O port to write.
157 @param Value The value to write to the I/O port.
159 @return The value written to the I/O port.