]> git.proxmox.com Git - mirror_edk2.git/blob - DuetPkg/CpuIoDxe/CpuIoAccess.h
Porting Duet module from EDKI to EDKII
[mirror_edk2.git] / DuetPkg / CpuIoDxe / CpuIoAccess.h
1 /*++
2 #
3 # Copyright (c) 2004, 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
8 #
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.
11
12
13 Module Name:
14
15 CpuIoAccess.h
16
17 Abstract:
18
19 --*/
20
21 #ifndef _CPU_IO_ACCESS_H
22 #define _CPU_IO_ACCESS_H
23
24
25 #define IA32API __cdecl
26
27 UINT8
28 IA32API
29 CpuIoRead8 (
30 IN UINT16 Port
31 )
32 /*++
33
34 Routine Description:
35
36 GC_TODO: Add function description
37
38 Arguments:
39
40 Port - GC_TODO: add argument description
41
42 Returns:
43
44 GC_TODO: add return values
45
46 --*/
47 ;
48
49 /*++
50 Routine Description:
51 Cpu I/O read port
52 Arguments:
53 Port: - Port number to read
54 Returns:
55 Return read 8 bit value
56 --*/
57 UINT16
58 IA32API
59 CpuIoRead16 (
60 IN UINT16 Port
61 )
62 /*++
63
64 Routine Description:
65
66 GC_TODO: Add function description
67
68 Arguments:
69
70 Port - GC_TODO: add argument description
71
72 Returns:
73
74 GC_TODO: add return values
75
76 --*/
77 ;
78
79 /*++
80 Routine Description:
81 Cpu I/O read port
82 Arguments:
83 Port: - Port number to read
84 Returns:
85 Return read 16 bit value
86 --*/
87 UINT32
88 IA32API
89 CpuIoRead32 (
90 IN UINT16 Port
91 )
92 /*++
93
94 Routine Description:
95
96 GC_TODO: Add function description
97
98 Arguments:
99
100 Port - GC_TODO: add argument description
101
102 Returns:
103
104 GC_TODO: add return values
105
106 --*/
107 ;
108
109 /*++
110 Routine Description:
111 Cpu I/O read port
112 Arguments:
113 Port: - Port number to read
114 Returns:
115 Return read 32 bit value
116 --*/
117 VOID
118 IA32API
119 CpuIoWrite8 (
120 IN UINT16 Port,
121 IN UINT32 Data
122 )
123 /*++
124
125 Routine Description:
126
127 GC_TODO: Add function description
128
129 Arguments:
130
131 Port - GC_TODO: add argument description
132 Data - GC_TODO: add argument description
133
134 Returns:
135
136 GC_TODO: add return values
137
138 --*/
139 ;
140
141 /*++
142 Routine Description:
143 Cpu I/O write 8 bit data to port
144 Arguments:
145 Port: - Port number to read
146 Data: - Data to write to the Port
147 Returns:
148 None
149 --*/
150 VOID
151 IA32API
152 CpuIoWrite16 (
153 IN UINT16 Port,
154 IN UINT32 Data
155 )
156 /*++
157
158 Routine Description:
159
160 GC_TODO: Add function description
161
162 Arguments:
163
164 Port - GC_TODO: add argument description
165 Data - GC_TODO: add argument description
166
167 Returns:
168
169 GC_TODO: add return values
170
171 --*/
172 ;
173
174 /*++
175 Routine Description:
176 Cpu I/O write 16 bit data to port
177 Arguments:
178 Port: - Port number to read
179 Data: - Data to write to the Port
180 Returns:
181 None
182 --*/
183 VOID
184 IA32API
185 CpuIoWrite32 (
186 IN UINT16 Port,
187 IN UINT32 Data
188 )
189 /*++
190
191 Routine Description:
192
193 GC_TODO: Add function description
194
195 Arguments:
196
197 Port - GC_TODO: add argument description
198 Data - GC_TODO: add argument description
199
200 Returns:
201
202 GC_TODO: add return values
203
204 --*/
205 ;
206
207 /*++
208 Routine Description:
209 Cpu I/O write 32 bit data to port
210 Arguments:
211 Port: - Port number to read
212 Data: - Data to write to the Port
213 Returns:
214 None
215 --*/
216 #endif