]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Io.c
3 Copyright (c) 2004 - 2010, 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
46 EfiIoRead (EfiCpuIoWidthUint8
, Address
, 1, &Buffer
);
60 Address - IO address to read
70 EfiIoRead (EfiCpuIoWidthUint16
, Address
, 1, &Buffer
);
81 Do a four byte IO read
84 Address - IO address to read
94 EfiIoRead (EfiCpuIoWidthUint32
, Address
, 1, &Buffer
);
106 Do a one byte IO write
109 Address - IO address to write
110 Data - Data to write to Address
117 EfiIoWrite (EfiCpuIoWidthUint8
, Address
, 1, &Data
);
128 Do a two byte IO write
131 Address - IO address to write
132 Data - Data to write to Address
139 EfiIoWrite (EfiCpuIoWidthUint16
, Address
, 1, &Data
);
150 Do a four byte IO write
153 Address - IO address to write
154 Data - Data to write to Address
161 EfiIoWrite (EfiCpuIoWidthUint32
, Address
, 1, &Data
);
171 Do a one byte Memory mapped IO read
174 Address - Memory mapped IO address to read
184 EfiMemRead (EfiCpuIoWidthUint8
, Address
, 1, &Buffer
);
195 Do a two byte Memory mapped IO read
198 Address - Memory mapped IO address to read
208 EfiMemRead (EfiCpuIoWidthUint16
, Address
, 1, &Buffer
);
219 Do a four byte Memory mapped IO read
222 Address - Memory mapped IO address to read
232 EfiMemRead (EfiCpuIoWidthUint32
, Address
, 1, &Buffer
);
243 Do a eight byte Memory mapped IO read
246 Address - Memory mapped IO address to read
256 EfiMemRead (EfiCpuIoWidthUint64
, Address
, 1, &Buffer
);
268 Do a one byte Memory mapped IO write
271 Address - Memory mapped IO address to write
272 Data - Data to write to Address
279 EfiMemWrite (EfiCpuIoWidthUint8
, Address
, 1, &Data
);
290 Do a two byte Memory mapped IO write
293 Address - Memory mapped IO address to write
294 Data - Data to write to Address
301 EfiMemWrite (EfiCpuIoWidthUint16
, Address
, 1, &Data
);
312 Do a four byte Memory mapped IO write
315 Address - Memory mapped IO address to write
316 Data - Data to write to Address
323 EfiMemWrite (EfiCpuIoWidthUint32
, Address
, 1, &Data
);
334 Do a eight byte Memory mapped IO write
337 Address - Memory mapped IO address to write
338 Data - Data to write to Address
345 EfiMemWrite (EfiCpuIoWidthUint64
, Address
, 1, &Data
);