]>
Commit | Line | Data |
---|---|---|
c69dd9df | 1 | /*++\r |
2 | # \r | |
3 | # Copyright (c) 2004, Intel Corporation \r | |
4 | # All rights reserved. This program and the accompanying materials \r | |
5 | # are licensed and made available under the terms and conditions of the BSD License \r | |
6 | # which accompanies this distribution. The full text of the license may be found at \r | |
7 | # http://opensource.org/licenses/bsd-license.php \r | |
8 | # \r | |
9 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | CpuIoAccess.h\r | |
16 | \r | |
17 | Abstract:\r | |
18 | \r | |
19 | --*/\r | |
20 | \r | |
21 | #ifndef _CPU_IO_ACCESS_H\r | |
22 | #define _CPU_IO_ACCESS_H\r | |
23 | \r | |
24 | \r | |
25 | #define IA32API __cdecl\r | |
26 | \r | |
27 | UINT8\r | |
28 | IA32API\r | |
29 | CpuIoRead8 (\r | |
30 | IN UINT16 Port\r | |
31 | )\r | |
32 | /*++\r | |
33 | \r | |
34 | Routine Description:\r | |
35 | \r | |
36 | GC_TODO: Add function description\r | |
37 | \r | |
38 | Arguments:\r | |
39 | \r | |
40 | Port - GC_TODO: add argument description\r | |
41 | \r | |
42 | Returns:\r | |
43 | \r | |
44 | GC_TODO: add return values\r | |
45 | \r | |
46 | --*/\r | |
47 | ;\r | |
48 | \r | |
49 | /*++ \r | |
50 | Routine Description: \r | |
51 | Cpu I/O read port\r | |
52 | Arguments: \r | |
53 | Port: - Port number to read \r | |
54 | Returns: \r | |
55 | Return read 8 bit value \r | |
56 | --*/\r | |
57 | UINT16\r | |
58 | IA32API\r | |
59 | CpuIoRead16 (\r | |
60 | IN UINT16 Port\r | |
61 | )\r | |
62 | /*++\r | |
63 | \r | |
64 | Routine Description:\r | |
65 | \r | |
66 | GC_TODO: Add function description\r | |
67 | \r | |
68 | Arguments:\r | |
69 | \r | |
70 | Port - GC_TODO: add argument description\r | |
71 | \r | |
72 | Returns:\r | |
73 | \r | |
74 | GC_TODO: add return values\r | |
75 | \r | |
76 | --*/\r | |
77 | ;\r | |
78 | \r | |
79 | /*++ \r | |
80 | Routine Description: \r | |
81 | Cpu I/O read port\r | |
82 | Arguments: \r | |
83 | Port: - Port number to read \r | |
84 | Returns: \r | |
85 | Return read 16 bit value \r | |
86 | --*/\r | |
87 | UINT32\r | |
88 | IA32API\r | |
89 | CpuIoRead32 (\r | |
90 | IN UINT16 Port\r | |
91 | )\r | |
92 | /*++\r | |
93 | \r | |
94 | Routine Description:\r | |
95 | \r | |
96 | GC_TODO: Add function description\r | |
97 | \r | |
98 | Arguments:\r | |
99 | \r | |
100 | Port - GC_TODO: add argument description\r | |
101 | \r | |
102 | Returns:\r | |
103 | \r | |
104 | GC_TODO: add return values\r | |
105 | \r | |
106 | --*/\r | |
107 | ;\r | |
108 | \r | |
109 | /*++ \r | |
110 | Routine Description: \r | |
111 | Cpu I/O read port\r | |
112 | Arguments: \r | |
113 | Port: - Port number to read \r | |
114 | Returns: \r | |
115 | Return read 32 bit value \r | |
116 | --*/\r | |
117 | VOID\r | |
118 | IA32API\r | |
119 | CpuIoWrite8 (\r | |
120 | IN UINT16 Port,\r | |
121 | IN UINT32 Data\r | |
122 | )\r | |
123 | /*++\r | |
124 | \r | |
125 | Routine Description:\r | |
126 | \r | |
127 | GC_TODO: Add function description\r | |
128 | \r | |
129 | Arguments:\r | |
130 | \r | |
131 | Port - GC_TODO: add argument description\r | |
132 | Data - GC_TODO: add argument description\r | |
133 | \r | |
134 | Returns:\r | |
135 | \r | |
136 | GC_TODO: add return values\r | |
137 | \r | |
138 | --*/\r | |
139 | ;\r | |
140 | \r | |
141 | /*++ \r | |
142 | Routine Description: \r | |
143 | Cpu I/O write 8 bit data to port\r | |
144 | Arguments: \r | |
145 | Port: - Port number to read \r | |
146 | Data: - Data to write to the Port \r | |
147 | Returns: \r | |
148 | None \r | |
149 | --*/\r | |
150 | VOID\r | |
151 | IA32API\r | |
152 | CpuIoWrite16 (\r | |
153 | IN UINT16 Port,\r | |
154 | IN UINT32 Data\r | |
155 | )\r | |
156 | /*++\r | |
157 | \r | |
158 | Routine Description:\r | |
159 | \r | |
160 | GC_TODO: Add function description\r | |
161 | \r | |
162 | Arguments:\r | |
163 | \r | |
164 | Port - GC_TODO: add argument description\r | |
165 | Data - GC_TODO: add argument description\r | |
166 | \r | |
167 | Returns:\r | |
168 | \r | |
169 | GC_TODO: add return values\r | |
170 | \r | |
171 | --*/\r | |
172 | ;\r | |
173 | \r | |
174 | /*++ \r | |
175 | Routine Description: \r | |
176 | Cpu I/O write 16 bit data to port\r | |
177 | Arguments: \r | |
178 | Port: - Port number to read \r | |
179 | Data: - Data to write to the Port \r | |
180 | Returns: \r | |
181 | None \r | |
182 | --*/\r | |
183 | VOID\r | |
184 | IA32API\r | |
185 | CpuIoWrite32 (\r | |
186 | IN UINT16 Port,\r | |
187 | IN UINT32 Data\r | |
188 | )\r | |
189 | /*++\r | |
190 | \r | |
191 | Routine Description:\r | |
192 | \r | |
193 | GC_TODO: Add function description\r | |
194 | \r | |
195 | Arguments:\r | |
196 | \r | |
197 | Port - GC_TODO: add argument description\r | |
198 | Data - GC_TODO: add argument description\r | |
199 | \r | |
200 | Returns:\r | |
201 | \r | |
202 | GC_TODO: add return values\r | |
203 | \r | |
204 | --*/\r | |
205 | ;\r | |
206 | \r | |
207 | /*++ \r | |
208 | Routine Description: \r | |
209 | Cpu I/O write 32 bit data to port\r | |
210 | Arguments: \r | |
211 | Port: - Port number to read \r | |
212 | Data: - Data to write to the Port \r | |
213 | Returns: \r | |
214 | None \r | |
215 | --*/\r | |
216 | #endif\r |