]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PciHostBridgeDxe/IoFifo.h
4 Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials are licensed and made available
7 under the terms and conditions of the BSD License which accompanies this
8 distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _IO_FIFO_H_INCLUDED_
17 #define _IO_FIFO_H_INCLUDED_
20 Reads an 8-bit I/O port fifo into a block of memory.
22 Reads the 8-bit I/O fifo port specified by Port.
24 The port is read Count times, and the read data is
25 stored in the provided Buffer.
27 This function must guarantee that all I/O read and write operations are
30 If 8-bit I/O port operations are not supported, then ASSERT().
32 @param Port The I/O port to read.
33 @param Count The number of times to read I/O port.
34 @param Buffer The buffer to store the read data into.
46 Reads a 16-bit I/O port fifo into a block of memory.
48 Reads the 16-bit I/O fifo port specified by Port.
50 The port is read Count times, and the read data is
51 stored in the provided Buffer.
53 This function must guarantee that all I/O read and write operations are
56 If 16-bit I/O port operations are not supported, then ASSERT().
58 @param Port The I/O port to read.
59 @param Count The number of times to read I/O port.
60 @param Buffer The buffer to store the read data into.
72 Reads a 32-bit I/O port fifo into a block of memory.
74 Reads the 32-bit I/O fifo port specified by Port.
76 The port is read Count times, and the read data is
77 stored in the provided Buffer.
79 This function must guarantee that all I/O read and write operations are
82 If 32-bit I/O port operations are not supported, then ASSERT().
84 @param Port The I/O port to read.
85 @param Count The number of times to read I/O port.
86 @param Buffer The buffer to store the read data into.
98 Writes a block of memory into an 8-bit I/O port fifo.
100 Writes the 8-bit I/O fifo port specified by Port.
102 The port is written Count times, and the write data is
103 retrieved from the provided Buffer.
105 This function must guarantee that all I/O write and write operations are
108 If 8-bit I/O port operations are not supported, then ASSERT().
110 @param Port The I/O port to write.
111 @param Count The number of times to write I/O port.
112 @param Buffer The buffer to store the write data into.
124 Writes a block of memory into a 16-bit I/O port fifo.
126 Writes the 16-bit I/O fifo port specified by Port.
128 The port is written Count times, and the write data is
129 retrieved from the provided Buffer.
131 This function must guarantee that all I/O write and write operations are
134 If 16-bit I/O port operations are not supported, then ASSERT().
136 @param Port The I/O port to write.
137 @param Count The number of times to write I/O port.
138 @param Buffer The buffer to store the write data into.
150 Writes a block of memory into a 32-bit I/O port fifo.
152 Writes the 32-bit I/O fifo port specified by Port.
154 The port is written Count times, and the write data is
155 retrieved from the provided Buffer.
157 This function must guarantee that all I/O write and write operations are
160 If 32-bit I/O port operations are not supported, then ASSERT().
162 @param Port The I/O port to write.
163 @param Count The number of times to write I/O port.
164 @param Buffer The buffer to store the write data into.