]>
git.proxmox.com Git - mirror_edk2.git/blob - PcAtChipsetPkg/PciHostBridgeDxe/IoFifo.h
4 Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are
6 licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _IO_FIFO_H_INCLUDED_
16 #define _IO_FIFO_H_INCLUDED_
19 Reads an 8-bit I/O port fifo into a block of memory.
21 Reads the 8-bit I/O fifo port specified by Port.
23 The port is read Count times, and the read data is
24 stored in the provided Buffer.
26 This function must guarantee that all I/O read and write operations are
29 If 8-bit I/O port operations are not supported, then ASSERT().
31 @param Port The I/O port to read.
32 @param Count The number of times to read I/O port.
33 @param Buffer The buffer to store the read data into.
45 Reads a 16-bit I/O port fifo into a block of memory.
47 Reads the 16-bit I/O fifo port specified by Port.
49 The port is read Count times, and the read data is
50 stored in the provided Buffer.
52 This function must guarantee that all I/O read and write operations are
55 If 16-bit I/O port operations are not supported, then ASSERT().
57 @param Port The I/O port to read.
58 @param Count The number of times to read I/O port.
59 @param Buffer The buffer to store the read data into.
71 Reads a 32-bit I/O port fifo into a block of memory.
73 Reads the 32-bit I/O fifo port specified by Port.
75 The port is read Count times, and the read data is
76 stored in the provided Buffer.
78 This function must guarantee that all I/O read and write operations are
81 If 32-bit I/O port operations are not supported, then ASSERT().
83 @param Port The I/O port to read.
84 @param Count The number of times to read I/O port.
85 @param Buffer The buffer to store the read data into.
97 Writes a block of memory into an 8-bit I/O port fifo.
99 Writes the 8-bit I/O fifo port specified by Port.
101 The port is written Count times, and the write data is
102 retrieved from the provided Buffer.
104 This function must guarantee that all I/O write and write operations are
107 If 8-bit I/O port operations are not supported, then ASSERT().
109 @param Port The I/O port to write.
110 @param Count The number of times to write I/O port.
111 @param Buffer The buffer to store the write data into.
123 Writes a block of memory into a 16-bit I/O port fifo.
125 Writes the 16-bit I/O fifo port specified by Port.
127 The port is written Count times, and the write data is
128 retrieved from the provided Buffer.
130 This function must guarantee that all I/O write and write operations are
133 If 16-bit I/O port operations are not supported, then ASSERT().
135 @param Port The I/O port to write.
136 @param Count The number of times to write I/O port.
137 @param Buffer The buffer to store the write data into.
149 Writes a block of memory into a 32-bit I/O port fifo.
151 Writes the 32-bit I/O fifo port specified by Port.
153 The port is written Count times, and the write data is
154 retrieved from the provided Buffer.
156 This function must guarantee that all I/O write and write operations are
159 If 32-bit I/O port operations are not supported, then ASSERT().
161 @param Port The I/O port to write.
162 @param Count The number of times to write I/O port.
163 @param Buffer The buffer to store the write data into.