]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Io.c
3 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Light weight lib functions that wrape IoRead (), IoWrite, MemRead (),
24 #include "EfiRuntimeLib.h"
36 Address - IO address to read
45 EfiIoRead (EfiCpuIoWidthUint8
, Address
, 1, &Buffer
);
59 Address - IO address to read
68 EfiIoRead (EfiCpuIoWidthUint16
, Address
, 1, &Buffer
);
79 Do a four byte IO read
82 Address - IO address to read
91 EfiIoRead (EfiCpuIoWidthUint32
, Address
, 1, &Buffer
);
103 Do a one byte IO write
106 Address - IO address to write
107 Data - Data to write to Address
114 EfiIoWrite (EfiCpuIoWidthUint8
, Address
, 1, &Data
);
125 Do a two byte IO write
128 Address - IO address to write
129 Data - Data to write to Address
136 EfiIoWrite (EfiCpuIoWidthUint16
, Address
, 1, &Data
);
147 Do a four byte IO write
150 Address - IO address to write
151 Data - Data to write to Address
158 EfiIoWrite (EfiCpuIoWidthUint32
, Address
, 1, &Data
);
168 Do a one byte Memory mapped IO read
171 Address - Memory mapped IO address to read
180 EfiMemRead (EfiCpuIoWidthUint8
, Address
, 1, &Buffer
);
191 Do a two byte Memory mapped IO read
194 Address - Memory mapped IO address to read
203 EfiMemRead (EfiCpuIoWidthUint16
, Address
, 1, &Buffer
);
214 Do a four byte Memory mapped IO read
217 Address - Memory mapped IO address to read
226 EfiMemRead (EfiCpuIoWidthUint32
, Address
, 1, &Buffer
);
237 Do a eight byte Memory mapped IO read
240 Address - Memory mapped IO address to read
249 EfiMemRead (EfiCpuIoWidthUint64
, Address
, 1, &Buffer
);
261 Do a one byte Memory mapped IO write
264 Address - Memory mapped IO address to write
265 Data - Data to write to Address
272 EfiMemWrite (EfiCpuIoWidthUint8
, Address
, 1, &Data
);
283 Do a two byte Memory mapped IO write
286 Address - Memory mapped IO address to write
287 Data - Data to write to Address
294 EfiMemWrite (EfiCpuIoWidthUint16
, Address
, 1, &Data
);
305 Do a four byte Memory mapped IO write
308 Address - Memory mapped IO address to write
309 Data - Data to write to Address
316 EfiMemWrite (EfiCpuIoWidthUint32
, Address
, 1, &Data
);
327 Do a eight byte Memory mapped IO write
330 Address - Memory mapped IO address to write
331 Data - Data to write to Address
338 EfiMemWrite (EfiCpuIoWidthUint64
, Address
, 1, &Data
);