diff options
author | Len Brown <len.brown@intel.com> | 2005-08-05 00:44:28 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-08-05 00:45:14 -0400 |
commit | 4be44fcd3bf648b782f4460fd06dfae6c42ded4b (patch) | |
tree | 5b5b7d296ea58786f53b95e5eac9565ff66890b0 /include/acpi/acresrc.h | |
parent | c65ade4dc8b486e8c8b9b0a6399789a5428e2039 (diff) |
[ACPI] Lindent all ACPI files
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acresrc.h')
-rw-r--r-- | include/acpi/acresrc.h | 309 |
1 files changed, 111 insertions, 198 deletions
diff --git a/include/acpi/acresrc.h b/include/acpi/acresrc.h index ed679264c12c..38e798b05d08 100644 --- a/include/acpi/acresrc.h +++ b/include/acpi/acresrc.h | |||
@@ -44,303 +44,216 @@ | |||
44 | #ifndef __ACRESRC_H__ | 44 | #ifndef __ACRESRC_H__ |
45 | #define __ACRESRC_H__ | 45 | #define __ACRESRC_H__ |
46 | 46 | ||
47 | |||
48 | /* | 47 | /* |
49 | * Function prototypes called from Acpi* APIs | 48 | * Function prototypes called from Acpi* APIs |
50 | */ | 49 | */ |
51 | acpi_status | 50 | acpi_status |
52 | acpi_rs_get_prt_method_data ( | 51 | acpi_rs_get_prt_method_data(acpi_handle handle, struct acpi_buffer *ret_buffer); |
53 | acpi_handle handle, | ||
54 | struct acpi_buffer *ret_buffer); | ||
55 | |||
56 | 52 | ||
57 | acpi_status | 53 | acpi_status |
58 | acpi_rs_get_crs_method_data ( | 54 | acpi_rs_get_crs_method_data(acpi_handle handle, struct acpi_buffer *ret_buffer); |
59 | acpi_handle handle, | ||
60 | struct acpi_buffer *ret_buffer); | ||
61 | 55 | ||
62 | #ifdef ACPI_FUTURE_USAGE | 56 | #ifdef ACPI_FUTURE_USAGE |
63 | acpi_status | 57 | acpi_status |
64 | acpi_rs_get_prs_method_data ( | 58 | acpi_rs_get_prs_method_data(acpi_handle handle, struct acpi_buffer *ret_buffer); |
65 | acpi_handle handle, | 59 | #endif /* ACPI_FUTURE_USAGE */ |
66 | struct acpi_buffer *ret_buffer); | ||
67 | #endif /* ACPI_FUTURE_USAGE */ | ||
68 | 60 | ||
69 | acpi_status | 61 | acpi_status |
70 | acpi_rs_get_method_data ( | 62 | acpi_rs_get_method_data(acpi_handle handle, |
71 | acpi_handle handle, | 63 | char *path, struct acpi_buffer *ret_buffer); |
72 | char *path, | ||
73 | struct acpi_buffer *ret_buffer); | ||
74 | 64 | ||
75 | acpi_status | 65 | acpi_status |
76 | acpi_rs_set_srs_method_data ( | 66 | acpi_rs_set_srs_method_data(acpi_handle handle, struct acpi_buffer *ret_buffer); |
77 | acpi_handle handle, | ||
78 | struct acpi_buffer *ret_buffer); | ||
79 | 67 | ||
80 | acpi_status | 68 | acpi_status |
81 | acpi_rs_create_resource_list ( | 69 | acpi_rs_create_resource_list(union acpi_operand_object *byte_stream_buffer, |
82 | union acpi_operand_object *byte_stream_buffer, | 70 | struct acpi_buffer *output_buffer); |
83 | struct acpi_buffer *output_buffer); | ||
84 | 71 | ||
85 | acpi_status | 72 | acpi_status |
86 | acpi_rs_create_byte_stream ( | 73 | acpi_rs_create_byte_stream(struct acpi_resource *linked_list_buffer, |
87 | struct acpi_resource *linked_list_buffer, | 74 | struct acpi_buffer *output_buffer); |
88 | struct acpi_buffer *output_buffer); | ||
89 | 75 | ||
90 | acpi_status | 76 | acpi_status |
91 | acpi_rs_create_pci_routing_table ( | 77 | acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, |
92 | union acpi_operand_object *package_object, | 78 | struct acpi_buffer *output_buffer); |
93 | struct acpi_buffer *output_buffer); | ||
94 | |||
95 | 79 | ||
96 | /* | 80 | /* |
97 | * rsdump | 81 | * rsdump |
98 | */ | 82 | */ |
99 | #ifdef ACPI_FUTURE_USAGE | 83 | #ifdef ACPI_FUTURE_USAGE |
100 | void | 84 | void acpi_rs_dump_resource_list(struct acpi_resource *resource); |
101 | acpi_rs_dump_resource_list ( | ||
102 | struct acpi_resource *resource); | ||
103 | |||
104 | void | ||
105 | acpi_rs_dump_irq_list ( | ||
106 | u8 *route_table); | ||
107 | #endif /* ACPI_FUTURE_USAGE */ | ||
108 | 85 | ||
86 | void acpi_rs_dump_irq_list(u8 * route_table); | ||
87 | #endif /* ACPI_FUTURE_USAGE */ | ||
109 | 88 | ||
110 | /* | 89 | /* |
111 | * rscalc | 90 | * rscalc |
112 | */ | 91 | */ |
113 | acpi_status | 92 | acpi_status |
114 | acpi_rs_get_byte_stream_start ( | 93 | acpi_rs_get_byte_stream_start(u8 * byte_stream_buffer, |
115 | u8 *byte_stream_buffer, | 94 | u8 ** byte_stream_start, u32 * size); |
116 | u8 **byte_stream_start, | ||
117 | u32 *size); | ||
118 | 95 | ||
119 | acpi_status | 96 | acpi_status |
120 | acpi_rs_get_list_length ( | 97 | acpi_rs_get_list_length(u8 * byte_stream_buffer, |
121 | u8 *byte_stream_buffer, | 98 | u32 byte_stream_buffer_length, acpi_size * size_needed); |
122 | u32 byte_stream_buffer_length, | ||
123 | acpi_size *size_needed); | ||
124 | 99 | ||
125 | acpi_status | 100 | acpi_status |
126 | acpi_rs_get_byte_stream_length ( | 101 | acpi_rs_get_byte_stream_length(struct acpi_resource *linked_list_buffer, |
127 | struct acpi_resource *linked_list_buffer, | 102 | acpi_size * size_needed); |
128 | acpi_size *size_needed); | ||
129 | 103 | ||
130 | acpi_status | 104 | acpi_status |
131 | acpi_rs_get_pci_routing_table_length ( | 105 | acpi_rs_get_pci_routing_table_length(union acpi_operand_object *package_object, |
132 | union acpi_operand_object *package_object, | 106 | acpi_size * buffer_size_needed); |
133 | acpi_size *buffer_size_needed); | ||
134 | 107 | ||
135 | acpi_status | 108 | acpi_status |
136 | acpi_rs_byte_stream_to_list ( | 109 | acpi_rs_byte_stream_to_list(u8 * byte_stream_buffer, |
137 | u8 *byte_stream_buffer, | 110 | u32 byte_stream_buffer_length, u8 * output_buffer); |
138 | u32 byte_stream_buffer_length, | ||
139 | u8 *output_buffer); | ||
140 | 111 | ||
141 | acpi_status | 112 | acpi_status |
142 | acpi_rs_list_to_byte_stream ( | 113 | acpi_rs_list_to_byte_stream(struct acpi_resource *linked_list, |
143 | struct acpi_resource *linked_list, | 114 | acpi_size byte_stream_size_needed, |
144 | acpi_size byte_stream_size_needed, | 115 | u8 * output_buffer); |
145 | u8 *output_buffer); | ||
146 | 116 | ||
147 | acpi_status | 117 | acpi_status |
148 | acpi_rs_io_resource ( | 118 | acpi_rs_io_resource(u8 * byte_stream_buffer, |
149 | u8 *byte_stream_buffer, | 119 | acpi_size * bytes_consumed, |
150 | acpi_size *bytes_consumed, | 120 | u8 ** output_buffer, acpi_size * structure_size); |
151 | u8 **output_buffer, | ||
152 | acpi_size *structure_size); | ||
153 | 121 | ||
154 | acpi_status | 122 | acpi_status |
155 | acpi_rs_fixed_io_resource ( | 123 | acpi_rs_fixed_io_resource(u8 * byte_stream_buffer, |
156 | u8 *byte_stream_buffer, | 124 | acpi_size * bytes_consumed, |
157 | acpi_size *bytes_consumed, | 125 | u8 ** output_buffer, acpi_size * structure_size); |
158 | u8 **output_buffer, | ||
159 | acpi_size *structure_size); | ||
160 | 126 | ||
161 | acpi_status | 127 | acpi_status |
162 | acpi_rs_io_stream ( | 128 | acpi_rs_io_stream(struct acpi_resource *linked_list, |
163 | struct acpi_resource *linked_list, | 129 | u8 ** output_buffer, acpi_size * bytes_consumed); |
164 | u8 **output_buffer, | ||
165 | acpi_size *bytes_consumed); | ||
166 | 130 | ||
167 | acpi_status | 131 | acpi_status |
168 | acpi_rs_fixed_io_stream ( | 132 | acpi_rs_fixed_io_stream(struct acpi_resource *linked_list, |
169 | struct acpi_resource *linked_list, | 133 | u8 ** output_buffer, acpi_size * bytes_consumed); |
170 | u8 **output_buffer, | ||
171 | acpi_size *bytes_consumed); | ||
172 | 134 | ||
173 | acpi_status | 135 | acpi_status |
174 | acpi_rs_irq_resource ( | 136 | acpi_rs_irq_resource(u8 * byte_stream_buffer, |
175 | u8 *byte_stream_buffer, | 137 | acpi_size * bytes_consumed, |
176 | acpi_size *bytes_consumed, | 138 | u8 ** output_buffer, acpi_size * structure_size); |
177 | u8 **output_buffer, | ||
178 | acpi_size *structure_size); | ||
179 | 139 | ||
180 | acpi_status | 140 | acpi_status |
181 | acpi_rs_irq_stream ( | 141 | acpi_rs_irq_stream(struct acpi_resource *linked_list, |
182 | struct acpi_resource *linked_list, | 142 | u8 ** output_buffer, acpi_size * bytes_consumed); |
183 | u8 **output_buffer, | ||
184 | acpi_size *bytes_consumed); | ||
185 | 143 | ||
186 | acpi_status | 144 | acpi_status |
187 | acpi_rs_dma_resource ( | 145 | acpi_rs_dma_resource(u8 * byte_stream_buffer, |
188 | u8 *byte_stream_buffer, | 146 | acpi_size * bytes_consumed, |
189 | acpi_size *bytes_consumed, | 147 | u8 ** output_buffer, acpi_size * structure_size); |
190 | u8 **output_buffer, | ||
191 | acpi_size *structure_size); | ||
192 | 148 | ||
193 | acpi_status | 149 | acpi_status |
194 | acpi_rs_dma_stream ( | 150 | acpi_rs_dma_stream(struct acpi_resource *linked_list, |
195 | struct acpi_resource *linked_list, | 151 | u8 ** output_buffer, acpi_size * bytes_consumed); |
196 | u8 **output_buffer, | ||
197 | acpi_size *bytes_consumed); | ||
198 | 152 | ||
199 | acpi_status | 153 | acpi_status |
200 | acpi_rs_address16_resource ( | 154 | acpi_rs_address16_resource(u8 * byte_stream_buffer, |
201 | u8 *byte_stream_buffer, | 155 | acpi_size * bytes_consumed, |
202 | acpi_size *bytes_consumed, | 156 | u8 ** output_buffer, acpi_size * structure_size); |
203 | u8 **output_buffer, | ||
204 | acpi_size *structure_size); | ||
205 | 157 | ||
206 | acpi_status | 158 | acpi_status |
207 | acpi_rs_address16_stream ( | 159 | acpi_rs_address16_stream(struct acpi_resource *linked_list, |
208 | struct acpi_resource *linked_list, | 160 | u8 ** output_buffer, acpi_size * bytes_consumed); |
209 | u8 **output_buffer, | ||
210 | acpi_size *bytes_consumed); | ||
211 | 161 | ||
212 | acpi_status | 162 | acpi_status |
213 | acpi_rs_address32_resource ( | 163 | acpi_rs_address32_resource(u8 * byte_stream_buffer, |
214 | u8 *byte_stream_buffer, | 164 | acpi_size * bytes_consumed, |
215 | acpi_size *bytes_consumed, | 165 | u8 ** output_buffer, acpi_size * structure_size); |
216 | u8 **output_buffer, | ||
217 | acpi_size *structure_size); | ||
218 | 166 | ||
219 | acpi_status | 167 | acpi_status |
220 | acpi_rs_address32_stream ( | 168 | acpi_rs_address32_stream(struct acpi_resource *linked_list, |
221 | struct acpi_resource *linked_list, | 169 | u8 ** output_buffer, acpi_size * bytes_consumed); |
222 | u8 **output_buffer, | ||
223 | acpi_size *bytes_consumed); | ||
224 | 170 | ||
225 | acpi_status | 171 | acpi_status |
226 | acpi_rs_address64_resource ( | 172 | acpi_rs_address64_resource(u8 * byte_stream_buffer, |
227 | u8 *byte_stream_buffer, | 173 | acpi_size * bytes_consumed, |
228 | acpi_size *bytes_consumed, | 174 | u8 ** output_buffer, acpi_size * structure_size); |
229 | u8 **output_buffer, | ||
230 | acpi_size *structure_size); | ||
231 | 175 | ||
232 | acpi_status | 176 | acpi_status |
233 | acpi_rs_address64_stream ( | 177 | acpi_rs_address64_stream(struct acpi_resource *linked_list, |
234 | struct acpi_resource *linked_list, | 178 | u8 ** output_buffer, acpi_size * bytes_consumed); |
235 | u8 **output_buffer, | ||
236 | acpi_size *bytes_consumed); | ||
237 | 179 | ||
238 | acpi_status | 180 | acpi_status |
239 | acpi_rs_start_depend_fns_resource ( | 181 | acpi_rs_start_depend_fns_resource(u8 * byte_stream_buffer, |
240 | u8 *byte_stream_buffer, | 182 | acpi_size * bytes_consumed, |
241 | acpi_size *bytes_consumed, | 183 | u8 ** output_buffer, |
242 | u8 **output_buffer, | 184 | acpi_size * structure_size); |
243 | acpi_size *structure_size); | ||
244 | 185 | ||
245 | acpi_status | 186 | acpi_status |
246 | acpi_rs_end_depend_fns_resource ( | 187 | acpi_rs_end_depend_fns_resource(u8 * byte_stream_buffer, |
247 | u8 *byte_stream_buffer, | 188 | acpi_size * bytes_consumed, |
248 | acpi_size *bytes_consumed, | 189 | u8 ** output_buffer, |
249 | u8 **output_buffer, | 190 | acpi_size * structure_size); |
250 | acpi_size *structure_size); | ||
251 | 191 | ||
252 | acpi_status | 192 | acpi_status |
253 | acpi_rs_start_depend_fns_stream ( | 193 | acpi_rs_start_depend_fns_stream(struct acpi_resource *linked_list, |
254 | struct acpi_resource *linked_list, | 194 | u8 ** output_buffer, |
255 | u8 **output_buffer, | 195 | acpi_size * bytes_consumed); |
256 | acpi_size *bytes_consumed); | ||
257 | 196 | ||
258 | acpi_status | 197 | acpi_status |
259 | acpi_rs_end_depend_fns_stream ( | 198 | acpi_rs_end_depend_fns_stream(struct acpi_resource *linked_list, |
260 | struct acpi_resource *linked_list, | 199 | u8 ** output_buffer, acpi_size * bytes_consumed); |
261 | u8 **output_buffer, | ||
262 | acpi_size *bytes_consumed); | ||
263 | 200 | ||
264 | acpi_status | 201 | acpi_status |
265 | acpi_rs_memory24_resource ( | 202 | acpi_rs_memory24_resource(u8 * byte_stream_buffer, |
266 | u8 *byte_stream_buffer, | 203 | acpi_size * bytes_consumed, |
267 | acpi_size *bytes_consumed, | 204 | u8 ** output_buffer, acpi_size * structure_size); |
268 | u8 **output_buffer, | ||
269 | acpi_size *structure_size); | ||
270 | 205 | ||
271 | acpi_status | 206 | acpi_status |
272 | acpi_rs_memory24_stream ( | 207 | acpi_rs_memory24_stream(struct acpi_resource *linked_list, |
273 | struct acpi_resource *linked_list, | 208 | u8 ** output_buffer, acpi_size * bytes_consumed); |
274 | u8 **output_buffer, | ||
275 | acpi_size *bytes_consumed); | ||
276 | 209 | ||
277 | acpi_status | 210 | acpi_status |
278 | acpi_rs_memory32_range_resource ( | 211 | acpi_rs_memory32_range_resource(u8 * byte_stream_buffer, |
279 | u8 *byte_stream_buffer, | 212 | acpi_size * bytes_consumed, |
280 | acpi_size *bytes_consumed, | 213 | u8 ** output_buffer, |
281 | u8 **output_buffer, | 214 | acpi_size * structure_size); |
282 | acpi_size *structure_size); | ||
283 | 215 | ||
284 | acpi_status | 216 | acpi_status |
285 | acpi_rs_fixed_memory32_resource ( | 217 | acpi_rs_fixed_memory32_resource(u8 * byte_stream_buffer, |
286 | u8 *byte_stream_buffer, | 218 | acpi_size * bytes_consumed, |
287 | acpi_size *bytes_consumed, | 219 | u8 ** output_buffer, |
288 | u8 **output_buffer, | 220 | acpi_size * structure_size); |
289 | acpi_size *structure_size); | ||
290 | 221 | ||
291 | acpi_status | 222 | acpi_status |
292 | acpi_rs_memory32_range_stream ( | 223 | acpi_rs_memory32_range_stream(struct acpi_resource *linked_list, |
293 | struct acpi_resource *linked_list, | 224 | u8 ** output_buffer, acpi_size * bytes_consumed); |
294 | u8 **output_buffer, | ||
295 | acpi_size *bytes_consumed); | ||
296 | 225 | ||
297 | acpi_status | 226 | acpi_status |
298 | acpi_rs_fixed_memory32_stream ( | 227 | acpi_rs_fixed_memory32_stream(struct acpi_resource *linked_list, |
299 | struct acpi_resource *linked_list, | 228 | u8 ** output_buffer, acpi_size * bytes_consumed); |
300 | u8 **output_buffer, | ||
301 | acpi_size *bytes_consumed); | ||
302 | 229 | ||
303 | acpi_status | 230 | acpi_status |
304 | acpi_rs_extended_irq_resource ( | 231 | acpi_rs_extended_irq_resource(u8 * byte_stream_buffer, |
305 | u8 *byte_stream_buffer, | 232 | acpi_size * bytes_consumed, |
306 | acpi_size *bytes_consumed, | 233 | u8 ** output_buffer, acpi_size * structure_size); |
307 | u8 **output_buffer, | ||
308 | acpi_size *structure_size); | ||
309 | 234 | ||
310 | acpi_status | 235 | acpi_status |
311 | acpi_rs_extended_irq_stream ( | 236 | acpi_rs_extended_irq_stream(struct acpi_resource *linked_list, |
312 | struct acpi_resource *linked_list, | 237 | u8 ** output_buffer, acpi_size * bytes_consumed); |
313 | u8 **output_buffer, | ||
314 | acpi_size *bytes_consumed); | ||
315 | 238 | ||
316 | acpi_status | 239 | acpi_status |
317 | acpi_rs_end_tag_resource ( | 240 | acpi_rs_end_tag_resource(u8 * byte_stream_buffer, |
318 | u8 *byte_stream_buffer, | 241 | acpi_size * bytes_consumed, |
319 | acpi_size *bytes_consumed, | 242 | u8 ** output_buffer, acpi_size * structure_size); |
320 | u8 **output_buffer, | ||
321 | acpi_size *structure_size); | ||
322 | 243 | ||
323 | acpi_status | 244 | acpi_status |
324 | acpi_rs_end_tag_stream ( | 245 | acpi_rs_end_tag_stream(struct acpi_resource *linked_list, |
325 | struct acpi_resource *linked_list, | 246 | u8 ** output_buffer, acpi_size * bytes_consumed); |
326 | u8 **output_buffer, | ||
327 | acpi_size *bytes_consumed); | ||
328 | 247 | ||
329 | acpi_status | 248 | acpi_status |
330 | acpi_rs_vendor_resource ( | 249 | acpi_rs_vendor_resource(u8 * byte_stream_buffer, |
331 | u8 *byte_stream_buffer, | 250 | acpi_size * bytes_consumed, |
332 | acpi_size *bytes_consumed, | 251 | u8 ** output_buffer, acpi_size * structure_size); |
333 | u8 **output_buffer, | ||
334 | acpi_size *structure_size); | ||
335 | 252 | ||
336 | acpi_status | 253 | acpi_status |
337 | acpi_rs_vendor_stream ( | 254 | acpi_rs_vendor_stream(struct acpi_resource *linked_list, |
338 | struct acpi_resource *linked_list, | 255 | u8 ** output_buffer, acpi_size * bytes_consumed); |
339 | u8 **output_buffer, | ||
340 | acpi_size *bytes_consumed); | ||
341 | 256 | ||
342 | u8 | 257 | u8 acpi_rs_get_resource_type(u8 resource_start_byte); |
343 | acpi_rs_get_resource_type ( | ||
344 | u8 resource_start_byte); | ||
345 | 258 | ||
346 | #endif /* __ACRESRC_H__ */ | 259 | #endif /* __ACRESRC_H__ */ |