3 Copyright (c) 2005, Intel Corporation
4 All rights reserved. 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 to support Tiano drivers.
23 #include "EfiRuntimeLib.h"
24 #include EFI_PROTOCOL_DEFINITION (CpuIo)
26 extern EFI_CPU_IO_PROTOCOL
*gCpuIo
;
30 IN EFI_CPU_IO_PROTOCOL_WIDTH Width
,
38 Perform an IO read into Buffer.
41 Width - Width of read transaction, and repeat operation to use
42 Address - IO address to read
43 Count - Number of times to read the IO address.
44 Buffer - Buffer to read data into. size is Width * Count
47 BugBug: Check with Mike to see if I can find this #define some ware else
51 return gCpuIo
->Io
.Read (gCpuIo
, Width
, Address
, Count
, Buffer
);
56 IN EFI_CPU_IO_PROTOCOL_WIDTH Width
,
64 Perform an IO write into Buffer.
67 Width - Width of write transaction, and repeat operation to use
68 Address - IO address to write
69 Count - Number of times to write the IO address.
70 Buffer - Buffer to write data from. size is Width * Count
73 BugBug: Check with Mike to see if I can find this #define some ware else
77 return gCpuIo
->Io
.Write (gCpuIo
, Width
, Address
, Count
, Buffer
);
82 IN EFI_CPU_IO_PROTOCOL_WIDTH Width
,
90 Perform a Memory mapped IO read into Buffer.
93 Width - Width of each read transaction.
94 Address - Memory mapped IO address to read
95 Count - Number of Width quanta to read
96 Buffer - Buffer to read data into. size is Width * Count
99 BugBug: Check with Mike to see if I can find this #define some ware else
103 return gCpuIo
->Mem
.Read (gCpuIo
, Width
, Address
, Count
, Buffer
);
108 IN EFI_CPU_IO_PROTOCOL_WIDTH Width
,
116 Perform a memory mapped IO write into Buffer.
119 Width - Width of write transaction, and repeat operation to use
120 Address - IO address to write
121 Count - Number of times to write the IO address.
122 Buffer - Buffer to write data from. size is Width * Count
125 BugBug: Check with Mike to see if I can find this #define some ware else
129 return gCpuIo
->Mem
.Write (gCpuIo
, Width
, Address
, Count
, Buffer
);