aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/resources/rsdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/resources/rsdump.c')
-rw-r--r--drivers/acpi/resources/rsdump.c847
1 files changed, 394 insertions, 453 deletions
diff --git a/drivers/acpi/resources/rsdump.c b/drivers/acpi/resources/rsdump.c
index 2c3bb8c35741..75bd34d1783f 100644
--- a/drivers/acpi/resources/rsdump.c
+++ b/drivers/acpi/resources/rsdump.c
@@ -41,70 +41,39 @@
41 * POSSIBILITY OF SUCH DAMAGES. 41 * POSSIBILITY OF SUCH DAMAGES.
42 */ 42 */
43 43
44
45#include <acpi/acpi.h> 44#include <acpi/acpi.h>
46#include <acpi/acresrc.h> 45#include <acpi/acresrc.h>
47 46
48#define _COMPONENT ACPI_RESOURCES 47#define _COMPONENT ACPI_RESOURCES
49 ACPI_MODULE_NAME ("rsdump") 48ACPI_MODULE_NAME("rsdump")
50
51 49
52#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) 50#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
53
54/* Local prototypes */ 51/* Local prototypes */
52static void acpi_rs_dump_irq(union acpi_resource_data *data);
55 53
56static void 54static void acpi_rs_dump_address16(union acpi_resource_data *data);
57acpi_rs_dump_irq (
58 union acpi_resource_data *data);
59
60static void
61acpi_rs_dump_address16 (
62 union acpi_resource_data *data);
63 55
64static void 56static void acpi_rs_dump_address32(union acpi_resource_data *data);
65acpi_rs_dump_address32 (
66 union acpi_resource_data *data);
67 57
68static void 58static void acpi_rs_dump_address64(union acpi_resource_data *data);
69acpi_rs_dump_address64 (
70 union acpi_resource_data *data);
71 59
72static void 60static void acpi_rs_dump_dma(union acpi_resource_data *data);
73acpi_rs_dump_dma (
74 union acpi_resource_data *data);
75 61
76static void 62static void acpi_rs_dump_io(union acpi_resource_data *data);
77acpi_rs_dump_io (
78 union acpi_resource_data *data);
79 63
80static void 64static void acpi_rs_dump_extended_irq(union acpi_resource_data *data);
81acpi_rs_dump_extended_irq (
82 union acpi_resource_data *data);
83 65
84static void 66static void acpi_rs_dump_fixed_io(union acpi_resource_data *data);
85acpi_rs_dump_fixed_io (
86 union acpi_resource_data *data);
87 67
88static void 68static void acpi_rs_dump_fixed_memory32(union acpi_resource_data *data);
89acpi_rs_dump_fixed_memory32 (
90 union acpi_resource_data *data);
91 69
92static void 70static void acpi_rs_dump_memory24(union acpi_resource_data *data);
93acpi_rs_dump_memory24 (
94 union acpi_resource_data *data);
95 71
96static void 72static void acpi_rs_dump_memory32(union acpi_resource_data *data);
97acpi_rs_dump_memory32 (
98 union acpi_resource_data *data);
99 73
100static void 74static void acpi_rs_dump_start_depend_fns(union acpi_resource_data *data);
101acpi_rs_dump_start_depend_fns (
102 union acpi_resource_data *data);
103
104static void
105acpi_rs_dump_vendor_specific (
106 union acpi_resource_data *data);
107 75
76static void acpi_rs_dump_vendor_specific(union acpi_resource_data *data);
108 77
109/******************************************************************************* 78/*******************************************************************************
110 * 79 *
@@ -118,39 +87,37 @@ acpi_rs_dump_vendor_specific (
118 * 87 *
119 ******************************************************************************/ 88 ******************************************************************************/
120 89
121static void 90static void acpi_rs_dump_irq(union acpi_resource_data *data)
122acpi_rs_dump_irq (
123 union acpi_resource_data *data)
124{ 91{
125 struct acpi_resource_irq *irq_data = (struct acpi_resource_irq *) data; 92 struct acpi_resource_irq *irq_data = (struct acpi_resource_irq *)data;
126 u8 index = 0; 93 u8 index = 0;
127
128
129 ACPI_FUNCTION_ENTRY ();
130 94
95 ACPI_FUNCTION_ENTRY();
131 96
132 acpi_os_printf ("IRQ Resource\n"); 97 acpi_os_printf("IRQ Resource\n");
133 98
134 acpi_os_printf (" %s Triggered\n", 99 acpi_os_printf(" %s Triggered\n",
135 ACPI_LEVEL_SENSITIVE == irq_data->edge_level ? "Level" : "Edge"); 100 ACPI_LEVEL_SENSITIVE ==
101 irq_data->edge_level ? "Level" : "Edge");
136 102
137 acpi_os_printf (" Active %s\n", 103 acpi_os_printf(" Active %s\n",
138 ACPI_ACTIVE_LOW == irq_data->active_high_low ? "Low" : "High"); 104 ACPI_ACTIVE_LOW ==
105 irq_data->active_high_low ? "Low" : "High");
139 106
140 acpi_os_printf (" %s\n", 107 acpi_os_printf(" %s\n",
141 ACPI_SHARED == irq_data->shared_exclusive ? "Shared" : "Exclusive"); 108 ACPI_SHARED ==
109 irq_data->shared_exclusive ? "Shared" : "Exclusive");
142 110
143 acpi_os_printf (" %X Interrupts ( ", irq_data->number_of_interrupts); 111 acpi_os_printf(" %X Interrupts ( ", irq_data->number_of_interrupts);
144 112
145 for (index = 0; index < irq_data->number_of_interrupts; index++) { 113 for (index = 0; index < irq_data->number_of_interrupts; index++) {
146 acpi_os_printf ("%X ", irq_data->interrupts[index]); 114 acpi_os_printf("%X ", irq_data->interrupts[index]);
147 } 115 }
148 116
149 acpi_os_printf (")\n"); 117 acpi_os_printf(")\n");
150 return; 118 return;
151} 119}
152 120
153
154/******************************************************************************* 121/*******************************************************************************
155 * 122 *
156 * FUNCTION: acpi_rs_dump_dma 123 * FUNCTION: acpi_rs_dump_dma
@@ -163,75 +130,69 @@ acpi_rs_dump_irq (
163 * 130 *
164 ******************************************************************************/ 131 ******************************************************************************/
165 132
166static void 133static void acpi_rs_dump_dma(union acpi_resource_data *data)
167acpi_rs_dump_dma (
168 union acpi_resource_data *data)
169{ 134{
170 struct acpi_resource_dma *dma_data = (struct acpi_resource_dma *) data; 135 struct acpi_resource_dma *dma_data = (struct acpi_resource_dma *)data;
171 u8 index = 0; 136 u8 index = 0;
172
173
174 ACPI_FUNCTION_ENTRY ();
175 137
138 ACPI_FUNCTION_ENTRY();
176 139
177 acpi_os_printf ("DMA Resource\n"); 140 acpi_os_printf("DMA Resource\n");
178 141
179 switch (dma_data->type) { 142 switch (dma_data->type) {
180 case ACPI_COMPATIBILITY: 143 case ACPI_COMPATIBILITY:
181 acpi_os_printf (" Compatibility mode\n"); 144 acpi_os_printf(" Compatibility mode\n");
182 break; 145 break;
183 146
184 case ACPI_TYPE_A: 147 case ACPI_TYPE_A:
185 acpi_os_printf (" Type A\n"); 148 acpi_os_printf(" Type A\n");
186 break; 149 break;
187 150
188 case ACPI_TYPE_B: 151 case ACPI_TYPE_B:
189 acpi_os_printf (" Type B\n"); 152 acpi_os_printf(" Type B\n");
190 break; 153 break;
191 154
192 case ACPI_TYPE_F: 155 case ACPI_TYPE_F:
193 acpi_os_printf (" Type F\n"); 156 acpi_os_printf(" Type F\n");
194 break; 157 break;
195 158
196 default: 159 default:
197 acpi_os_printf (" Invalid DMA type\n"); 160 acpi_os_printf(" Invalid DMA type\n");
198 break; 161 break;
199 } 162 }
200 163
201 acpi_os_printf (" %sBus Master\n", 164 acpi_os_printf(" %sBus Master\n",
202 ACPI_BUS_MASTER == dma_data->bus_master ? "" : "Not a "); 165 ACPI_BUS_MASTER == dma_data->bus_master ? "" : "Not a ");
203
204 166
205 switch (dma_data->transfer) { 167 switch (dma_data->transfer) {
206 case ACPI_TRANSFER_8: 168 case ACPI_TRANSFER_8:
207 acpi_os_printf (" 8-bit only transfer\n"); 169 acpi_os_printf(" 8-bit only transfer\n");
208 break; 170 break;
209 171
210 case ACPI_TRANSFER_8_16: 172 case ACPI_TRANSFER_8_16:
211 acpi_os_printf (" 8 and 16-bit transfer\n"); 173 acpi_os_printf(" 8 and 16-bit transfer\n");
212 break; 174 break;
213 175
214 case ACPI_TRANSFER_16: 176 case ACPI_TRANSFER_16:
215 acpi_os_printf (" 16 bit only transfer\n"); 177 acpi_os_printf(" 16 bit only transfer\n");
216 break; 178 break;
217 179
218 default: 180 default:
219 acpi_os_printf (" Invalid transfer preference\n"); 181 acpi_os_printf(" Invalid transfer preference\n");
220 break; 182 break;
221 } 183 }
222 184
223 acpi_os_printf (" Number of Channels: %X ( ", 185 acpi_os_printf(" Number of Channels: %X ( ",
224 dma_data->number_of_channels); 186 dma_data->number_of_channels);
225 187
226 for (index = 0; index < dma_data->number_of_channels; index++) { 188 for (index = 0; index < dma_data->number_of_channels; index++) {
227 acpi_os_printf ("%X ", dma_data->channels[index]); 189 acpi_os_printf("%X ", dma_data->channels[index]);
228 } 190 }
229 191
230 acpi_os_printf (")\n"); 192 acpi_os_printf(")\n");
231 return; 193 return;
232} 194}
233 195
234
235/******************************************************************************* 196/*******************************************************************************
236 * 197 *
237 * FUNCTION: acpi_rs_dump_start_depend_fns 198 * FUNCTION: acpi_rs_dump_start_depend_fns
@@ -244,58 +205,54 @@ acpi_rs_dump_dma (
244 * 205 *
245 ******************************************************************************/ 206 ******************************************************************************/
246 207
247static void 208static void acpi_rs_dump_start_depend_fns(union acpi_resource_data *data)
248acpi_rs_dump_start_depend_fns (
249 union acpi_resource_data *data)
250{ 209{
251 struct acpi_resource_start_dpf *sdf_data = (struct acpi_resource_start_dpf *) data; 210 struct acpi_resource_start_dpf *sdf_data =
252 211 (struct acpi_resource_start_dpf *)data;
253 212
254 ACPI_FUNCTION_ENTRY (); 213 ACPI_FUNCTION_ENTRY();
255 214
256 215 acpi_os_printf("Start Dependent Functions Resource\n");
257 acpi_os_printf ("Start Dependent Functions Resource\n");
258 216
259 switch (sdf_data->compatibility_priority) { 217 switch (sdf_data->compatibility_priority) {
260 case ACPI_GOOD_CONFIGURATION: 218 case ACPI_GOOD_CONFIGURATION:
261 acpi_os_printf (" Good configuration\n"); 219 acpi_os_printf(" Good configuration\n");
262 break; 220 break;
263 221
264 case ACPI_ACCEPTABLE_CONFIGURATION: 222 case ACPI_ACCEPTABLE_CONFIGURATION:
265 acpi_os_printf (" Acceptable configuration\n"); 223 acpi_os_printf(" Acceptable configuration\n");
266 break; 224 break;
267 225
268 case ACPI_SUB_OPTIMAL_CONFIGURATION: 226 case ACPI_SUB_OPTIMAL_CONFIGURATION:
269 acpi_os_printf (" Sub-optimal configuration\n"); 227 acpi_os_printf(" Sub-optimal configuration\n");
270 break; 228 break;
271 229
272 default: 230 default:
273 acpi_os_printf (" Invalid compatibility priority\n"); 231 acpi_os_printf(" Invalid compatibility priority\n");
274 break; 232 break;
275 } 233 }
276 234
277 switch(sdf_data->performance_robustness) { 235 switch (sdf_data->performance_robustness) {
278 case ACPI_GOOD_CONFIGURATION: 236 case ACPI_GOOD_CONFIGURATION:
279 acpi_os_printf (" Good configuration\n"); 237 acpi_os_printf(" Good configuration\n");
280 break; 238 break;
281 239
282 case ACPI_ACCEPTABLE_CONFIGURATION: 240 case ACPI_ACCEPTABLE_CONFIGURATION:
283 acpi_os_printf (" Acceptable configuration\n"); 241 acpi_os_printf(" Acceptable configuration\n");
284 break; 242 break;
285 243
286 case ACPI_SUB_OPTIMAL_CONFIGURATION: 244 case ACPI_SUB_OPTIMAL_CONFIGURATION:
287 acpi_os_printf (" Sub-optimal configuration\n"); 245 acpi_os_printf(" Sub-optimal configuration\n");
288 break; 246 break;
289 247
290 default: 248 default:
291 acpi_os_printf (" Invalid performance robustness preference\n"); 249 acpi_os_printf(" Invalid performance robustness preference\n");
292 break; 250 break;
293 } 251 }
294 252
295 return; 253 return;
296} 254}
297 255
298
299/******************************************************************************* 256/*******************************************************************************
300 * 257 *
301 * FUNCTION: acpi_rs_dump_io 258 * FUNCTION: acpi_rs_dump_io
@@ -308,33 +265,30 @@ acpi_rs_dump_start_depend_fns (
308 * 265 *
309 ******************************************************************************/ 266 ******************************************************************************/
310 267
311static void 268static void acpi_rs_dump_io(union acpi_resource_data *data)
312acpi_rs_dump_io (
313 union acpi_resource_data *data)
314{ 269{
315 struct acpi_resource_io *io_data = (struct acpi_resource_io *) data; 270 struct acpi_resource_io *io_data = (struct acpi_resource_io *)data;
316
317 271
318 ACPI_FUNCTION_ENTRY (); 272 ACPI_FUNCTION_ENTRY();
319 273
274 acpi_os_printf("Io Resource\n");
320 275
321 acpi_os_printf ("Io Resource\n"); 276 acpi_os_printf(" %d bit decode\n",
277 ACPI_DECODE_16 == io_data->io_decode ? 16 : 10);
322 278
323 acpi_os_printf (" %d bit decode\n", 279 acpi_os_printf(" Range minimum base: %08X\n",
324 ACPI_DECODE_16 == io_data->io_decode ? 16 : 10); 280 io_data->min_base_address);
325 281
326 acpi_os_printf (" Range minimum base: %08X\n", io_data->min_base_address); 282 acpi_os_printf(" Range maximum base: %08X\n",
283 io_data->max_base_address);
327 284
328 acpi_os_printf (" Range maximum base: %08X\n", io_data->max_base_address); 285 acpi_os_printf(" Alignment: %08X\n", io_data->alignment);
329 286
330 acpi_os_printf (" Alignment: %08X\n", io_data->alignment); 287 acpi_os_printf(" Range Length: %08X\n", io_data->range_length);
331
332 acpi_os_printf (" Range Length: %08X\n", io_data->range_length);
333 288
334 return; 289 return;
335} 290}
336 291
337
338/******************************************************************************* 292/*******************************************************************************
339 * 293 *
340 * FUNCTION: acpi_rs_dump_fixed_io 294 * FUNCTION: acpi_rs_dump_fixed_io
@@ -347,25 +301,22 @@ acpi_rs_dump_io (
347 * 301 *
348 ******************************************************************************/ 302 ******************************************************************************/
349 303
350static void 304static void acpi_rs_dump_fixed_io(union acpi_resource_data *data)
351acpi_rs_dump_fixed_io (
352 union acpi_resource_data *data)
353{ 305{
354 struct acpi_resource_fixed_io *fixed_io_data = (struct acpi_resource_fixed_io *) data; 306 struct acpi_resource_fixed_io *fixed_io_data =
355 307 (struct acpi_resource_fixed_io *)data;
356 308
357 ACPI_FUNCTION_ENTRY (); 309 ACPI_FUNCTION_ENTRY();
358 310
311 acpi_os_printf("Fixed Io Resource\n");
312 acpi_os_printf(" Range base address: %08X",
313 fixed_io_data->base_address);
359 314
360 acpi_os_printf ("Fixed Io Resource\n"); 315 acpi_os_printf(" Range length: %08X", fixed_io_data->range_length);
361 acpi_os_printf (" Range base address: %08X", fixed_io_data->base_address);
362
363 acpi_os_printf (" Range length: %08X", fixed_io_data->range_length);
364 316
365 return; 317 return;
366} 318}
367 319
368
369/******************************************************************************* 320/*******************************************************************************
370 * 321 *
371 * FUNCTION: acpi_rs_dump_vendor_specific 322 * FUNCTION: acpi_rs_dump_vendor_specific
@@ -378,30 +329,26 @@ acpi_rs_dump_fixed_io (
378 * 329 *
379 ******************************************************************************/ 330 ******************************************************************************/
380 331
381static void 332static void acpi_rs_dump_vendor_specific(union acpi_resource_data *data)
382acpi_rs_dump_vendor_specific (
383 union acpi_resource_data *data)
384{ 333{
385 struct acpi_resource_vendor *vendor_data = (struct acpi_resource_vendor *) data; 334 struct acpi_resource_vendor *vendor_data =
386 u16 index = 0; 335 (struct acpi_resource_vendor *)data;
387 336 u16 index = 0;
388 337
389 ACPI_FUNCTION_ENTRY (); 338 ACPI_FUNCTION_ENTRY();
390 339
340 acpi_os_printf("Vendor Specific Resource\n");
391 341
392 acpi_os_printf ("Vendor Specific Resource\n"); 342 acpi_os_printf(" Length: %08X\n", vendor_data->length);
393
394 acpi_os_printf (" Length: %08X\n", vendor_data->length);
395 343
396 for (index = 0; index < vendor_data->length; index++) { 344 for (index = 0; index < vendor_data->length; index++) {
397 acpi_os_printf (" Byte %X: %08X\n", 345 acpi_os_printf(" Byte %X: %08X\n",
398 index, vendor_data->reserved[index]); 346 index, vendor_data->reserved[index]);
399 } 347 }
400 348
401 return; 349 return;
402} 350}
403 351
404
405/******************************************************************************* 352/*******************************************************************************
406 * 353 *
407 * FUNCTION: acpi_rs_dump_memory24 354 * FUNCTION: acpi_rs_dump_memory24
@@ -414,37 +361,33 @@ acpi_rs_dump_vendor_specific (
414 * 361 *
415 ******************************************************************************/ 362 ******************************************************************************/
416 363
417static void 364static void acpi_rs_dump_memory24(union acpi_resource_data *data)
418acpi_rs_dump_memory24 (
419 union acpi_resource_data *data)
420{ 365{
421 struct acpi_resource_mem24 *memory24_data = (struct acpi_resource_mem24 *) data; 366 struct acpi_resource_mem24 *memory24_data =
422 367 (struct acpi_resource_mem24 *)data;
423 368
424 ACPI_FUNCTION_ENTRY (); 369 ACPI_FUNCTION_ENTRY();
425 370
371 acpi_os_printf("24-Bit Memory Range Resource\n");
426 372
427 acpi_os_printf ("24-Bit Memory Range Resource\n"); 373 acpi_os_printf(" Read%s\n",
374 ACPI_READ_WRITE_MEMORY ==
375 memory24_data->read_write_attribute ?
376 "/Write" : " only");
428 377
429 acpi_os_printf (" Read%s\n", 378 acpi_os_printf(" Range minimum base: %08X\n",
430 ACPI_READ_WRITE_MEMORY == 379 memory24_data->min_base_address);
431 memory24_data->read_write_attribute ?
432 "/Write" : " only");
433 380
434 acpi_os_printf (" Range minimum base: %08X\n", 381 acpi_os_printf(" Range maximum base: %08X\n",
435 memory24_data->min_base_address); 382 memory24_data->max_base_address);
436 383
437 acpi_os_printf (" Range maximum base: %08X\n", 384 acpi_os_printf(" Alignment: %08X\n", memory24_data->alignment);
438 memory24_data->max_base_address);
439 385
440 acpi_os_printf (" Alignment: %08X\n", memory24_data->alignment); 386 acpi_os_printf(" Range length: %08X\n", memory24_data->range_length);
441
442 acpi_os_printf (" Range length: %08X\n", memory24_data->range_length);
443 387
444 return; 388 return;
445} 389}
446 390
447
448/******************************************************************************* 391/*******************************************************************************
449 * 392 *
450 * FUNCTION: acpi_rs_dump_memory32 393 * FUNCTION: acpi_rs_dump_memory32
@@ -457,37 +400,33 @@ acpi_rs_dump_memory24 (
457 * 400 *
458 ******************************************************************************/ 401 ******************************************************************************/
459 402
460static void 403static void acpi_rs_dump_memory32(union acpi_resource_data *data)
461acpi_rs_dump_memory32 (
462 union acpi_resource_data *data)
463{ 404{
464 struct acpi_resource_mem32 *memory32_data = (struct acpi_resource_mem32 *) data; 405 struct acpi_resource_mem32 *memory32_data =
465 406 (struct acpi_resource_mem32 *)data;
466
467 ACPI_FUNCTION_ENTRY ();
468 407
408 ACPI_FUNCTION_ENTRY();
469 409
470 acpi_os_printf ("32-Bit Memory Range Resource\n"); 410 acpi_os_printf("32-Bit Memory Range Resource\n");
471 411
472 acpi_os_printf (" Read%s\n", 412 acpi_os_printf(" Read%s\n",
473 ACPI_READ_WRITE_MEMORY == 413 ACPI_READ_WRITE_MEMORY ==
474 memory32_data->read_write_attribute ? 414 memory32_data->read_write_attribute ?
475 "/Write" : " only"); 415 "/Write" : " only");
476 416
477 acpi_os_printf (" Range minimum base: %08X\n", 417 acpi_os_printf(" Range minimum base: %08X\n",
478 memory32_data->min_base_address); 418 memory32_data->min_base_address);
479 419
480 acpi_os_printf (" Range maximum base: %08X\n", 420 acpi_os_printf(" Range maximum base: %08X\n",
481 memory32_data->max_base_address); 421 memory32_data->max_base_address);
482 422
483 acpi_os_printf (" Alignment: %08X\n", memory32_data->alignment); 423 acpi_os_printf(" Alignment: %08X\n", memory32_data->alignment);
484 424
485 acpi_os_printf (" Range length: %08X\n", memory32_data->range_length); 425 acpi_os_printf(" Range length: %08X\n", memory32_data->range_length);
486 426
487 return; 427 return;
488} 428}
489 429
490
491/******************************************************************************* 430/*******************************************************************************
492 * 431 *
493 * FUNCTION: acpi_rs_dump_fixed_memory32 432 * FUNCTION: acpi_rs_dump_fixed_memory32
@@ -500,33 +439,29 @@ acpi_rs_dump_memory32 (
500 * 439 *
501 ******************************************************************************/ 440 ******************************************************************************/
502 441
503static void 442static void acpi_rs_dump_fixed_memory32(union acpi_resource_data *data)
504acpi_rs_dump_fixed_memory32 (
505 union acpi_resource_data *data)
506{ 443{
507 struct acpi_resource_fixed_mem32 *fixed_memory32_data = 444 struct acpi_resource_fixed_mem32 *fixed_memory32_data =
508 (struct acpi_resource_fixed_mem32 *) data; 445 (struct acpi_resource_fixed_mem32 *)data;
509
510
511 ACPI_FUNCTION_ENTRY ();
512 446
447 ACPI_FUNCTION_ENTRY();
513 448
514 acpi_os_printf ("32-Bit Fixed Location Memory Range Resource\n"); 449 acpi_os_printf("32-Bit Fixed Location Memory Range Resource\n");
515 450
516 acpi_os_printf (" Read%s\n", 451 acpi_os_printf(" Read%s\n",
517 ACPI_READ_WRITE_MEMORY == 452 ACPI_READ_WRITE_MEMORY ==
518 fixed_memory32_data->read_write_attribute ? "/Write" : " Only"); 453 fixed_memory32_data->
454 read_write_attribute ? "/Write" : " Only");
519 455
520 acpi_os_printf (" Range base address: %08X\n", 456 acpi_os_printf(" Range base address: %08X\n",
521 fixed_memory32_data->range_base_address); 457 fixed_memory32_data->range_base_address);
522 458
523 acpi_os_printf (" Range length: %08X\n", 459 acpi_os_printf(" Range length: %08X\n",
524 fixed_memory32_data->range_length); 460 fixed_memory32_data->range_length);
525 461
526 return; 462 return;
527} 463}
528 464
529
530/******************************************************************************* 465/*******************************************************************************
531 * 466 *
532 * FUNCTION: acpi_rs_dump_address16 467 * FUNCTION: acpi_rs_dump_address16
@@ -539,134 +474,136 @@ acpi_rs_dump_fixed_memory32 (
539 * 474 *
540 ******************************************************************************/ 475 ******************************************************************************/
541 476
542static void 477static void acpi_rs_dump_address16(union acpi_resource_data *data)
543acpi_rs_dump_address16 (
544 union acpi_resource_data *data)
545{ 478{
546 struct acpi_resource_address16 *address16_data = (struct acpi_resource_address16 *) data; 479 struct acpi_resource_address16 *address16_data =
547 480 (struct acpi_resource_address16 *)data;
548
549 ACPI_FUNCTION_ENTRY ();
550 481
482 ACPI_FUNCTION_ENTRY();
551 483
552 acpi_os_printf ("16-Bit Address Space Resource\n"); 484 acpi_os_printf("16-Bit Address Space Resource\n");
553 acpi_os_printf (" Resource Type: "); 485 acpi_os_printf(" Resource Type: ");
554 486
555 switch (address16_data->resource_type) { 487 switch (address16_data->resource_type) {
556 case ACPI_MEMORY_RANGE: 488 case ACPI_MEMORY_RANGE:
557 489
558 acpi_os_printf ("Memory Range\n"); 490 acpi_os_printf("Memory Range\n");
559 491
560 switch (address16_data->attribute.memory.cache_attribute) { 492 switch (address16_data->attribute.memory.cache_attribute) {
561 case ACPI_NON_CACHEABLE_MEMORY: 493 case ACPI_NON_CACHEABLE_MEMORY:
562 acpi_os_printf (" Type Specific: Noncacheable memory\n"); 494 acpi_os_printf
495 (" Type Specific: Noncacheable memory\n");
563 break; 496 break;
564 497
565 case ACPI_CACHABLE_MEMORY: 498 case ACPI_CACHABLE_MEMORY:
566 acpi_os_printf (" Type Specific: Cacheable memory\n"); 499 acpi_os_printf(" Type Specific: Cacheable memory\n");
567 break; 500 break;
568 501
569 case ACPI_WRITE_COMBINING_MEMORY: 502 case ACPI_WRITE_COMBINING_MEMORY:
570 acpi_os_printf (" Type Specific: Write-combining memory\n"); 503 acpi_os_printf
504 (" Type Specific: Write-combining memory\n");
571 break; 505 break;
572 506
573 case ACPI_PREFETCHABLE_MEMORY: 507 case ACPI_PREFETCHABLE_MEMORY:
574 acpi_os_printf (" Type Specific: Prefetchable memory\n"); 508 acpi_os_printf
509 (" Type Specific: Prefetchable memory\n");
575 break; 510 break;
576 511
577 default: 512 default:
578 acpi_os_printf (" Type Specific: Invalid cache attribute\n"); 513 acpi_os_printf
514 (" Type Specific: Invalid cache attribute\n");
579 break; 515 break;
580 } 516 }
581 517
582 acpi_os_printf (" Type Specific: Read%s\n", 518 acpi_os_printf(" Type Specific: Read%s\n",
583 ACPI_READ_WRITE_MEMORY == 519 ACPI_READ_WRITE_MEMORY ==
584 address16_data->attribute.memory.read_write_attribute ? 520 address16_data->attribute.memory.
585 "/Write" : " Only"); 521 read_write_attribute ? "/Write" : " Only");
586 break; 522 break;
587 523
588 case ACPI_IO_RANGE: 524 case ACPI_IO_RANGE:
589 525
590 acpi_os_printf ("I/O Range\n"); 526 acpi_os_printf("I/O Range\n");
591 527
592 switch (address16_data->attribute.io.range_attribute) { 528 switch (address16_data->attribute.io.range_attribute) {
593 case ACPI_NON_ISA_ONLY_RANGES: 529 case ACPI_NON_ISA_ONLY_RANGES:
594 acpi_os_printf (" Type Specific: Non-ISA Io Addresses\n"); 530 acpi_os_printf
531 (" Type Specific: Non-ISA Io Addresses\n");
595 break; 532 break;
596 533
597 case ACPI_ISA_ONLY_RANGES: 534 case ACPI_ISA_ONLY_RANGES:
598 acpi_os_printf (" Type Specific: ISA Io Addresses\n"); 535 acpi_os_printf(" Type Specific: ISA Io Addresses\n");
599 break; 536 break;
600 537
601 case ACPI_ENTIRE_RANGE: 538 case ACPI_ENTIRE_RANGE:
602 acpi_os_printf (" Type Specific: ISA and non-ISA Io Addresses\n"); 539 acpi_os_printf
540 (" Type Specific: ISA and non-ISA Io Addresses\n");
603 break; 541 break;
604 542
605 default: 543 default:
606 acpi_os_printf (" Type Specific: Invalid range attribute\n"); 544 acpi_os_printf
545 (" Type Specific: Invalid range attribute\n");
607 break; 546 break;
608 } 547 }
609 548
610 acpi_os_printf (" Type Specific: %s Translation\n", 549 acpi_os_printf(" Type Specific: %s Translation\n",
611 ACPI_SPARSE_TRANSLATION == 550 ACPI_SPARSE_TRANSLATION ==
612 address16_data->attribute.io.translation_attribute ? 551 address16_data->attribute.io.
613 "Sparse" : "Dense"); 552 translation_attribute ? "Sparse" : "Dense");
614 break; 553 break;
615 554
616 case ACPI_BUS_NUMBER_RANGE: 555 case ACPI_BUS_NUMBER_RANGE:
617 556
618 acpi_os_printf ("Bus Number Range\n"); 557 acpi_os_printf("Bus Number Range\n");
619 break; 558 break;
620 559
621 default: 560 default:
622 561
623 acpi_os_printf ("0x%2.2X\n", address16_data->resource_type); 562 acpi_os_printf("0x%2.2X\n", address16_data->resource_type);
624 break; 563 break;
625 } 564 }
626 565
627 acpi_os_printf (" Resource %s\n", 566 acpi_os_printf(" Resource %s\n",
628 ACPI_CONSUMER == address16_data->producer_consumer ? 567 ACPI_CONSUMER == address16_data->producer_consumer ?
629 "Consumer" : "Producer"); 568 "Consumer" : "Producer");
630 569
631 acpi_os_printf (" %s decode\n", 570 acpi_os_printf(" %s decode\n",
632 ACPI_SUB_DECODE == address16_data->decode ? 571 ACPI_SUB_DECODE == address16_data->decode ?
633 "Subtractive" : "Positive"); 572 "Subtractive" : "Positive");
634 573
635 acpi_os_printf (" Min address is %s fixed\n", 574 acpi_os_printf(" Min address is %s fixed\n",
636 ACPI_ADDRESS_FIXED == address16_data->min_address_fixed ? 575 ACPI_ADDRESS_FIXED == address16_data->min_address_fixed ?
637 "" : "not"); 576 "" : "not");
638 577
639 acpi_os_printf (" Max address is %s fixed\n", 578 acpi_os_printf(" Max address is %s fixed\n",
640 ACPI_ADDRESS_FIXED == address16_data->max_address_fixed ? 579 ACPI_ADDRESS_FIXED == address16_data->max_address_fixed ?
641 "" : "not"); 580 "" : "not");
642 581
643 acpi_os_printf (" Granularity: %08X\n", 582 acpi_os_printf(" Granularity: %08X\n", address16_data->granularity);
644 address16_data->granularity);
645 583
646 acpi_os_printf (" Address range min: %08X\n", 584 acpi_os_printf(" Address range min: %08X\n",
647 address16_data->min_address_range); 585 address16_data->min_address_range);
648 586
649 acpi_os_printf (" Address range max: %08X\n", 587 acpi_os_printf(" Address range max: %08X\n",
650 address16_data->max_address_range); 588 address16_data->max_address_range);
651 589
652 acpi_os_printf (" Address translation offset: %08X\n", 590 acpi_os_printf(" Address translation offset: %08X\n",
653 address16_data->address_translation_offset); 591 address16_data->address_translation_offset);
654 592
655 acpi_os_printf (" Address Length: %08X\n", 593 acpi_os_printf(" Address Length: %08X\n",
656 address16_data->address_length); 594 address16_data->address_length);
657 595
658 if (0xFF != address16_data->resource_source.index) { 596 if (0xFF != address16_data->resource_source.index) {
659 acpi_os_printf (" Resource Source Index: %X\n", 597 acpi_os_printf(" Resource Source Index: %X\n",
660 address16_data->resource_source.index); 598 address16_data->resource_source.index);
661 599
662 acpi_os_printf (" Resource Source: %s\n", 600 acpi_os_printf(" Resource Source: %s\n",
663 address16_data->resource_source.string_ptr); 601 address16_data->resource_source.string_ptr);
664 } 602 }
665 603
666 return; 604 return;
667} 605}
668 606
669
670/******************************************************************************* 607/*******************************************************************************
671 * 608 *
672 * FUNCTION: acpi_rs_dump_address32 609 * FUNCTION: acpi_rs_dump_address32
@@ -679,134 +616,136 @@ acpi_rs_dump_address16 (
679 * 616 *
680 ******************************************************************************/ 617 ******************************************************************************/
681 618
682static void 619static void acpi_rs_dump_address32(union acpi_resource_data *data)
683acpi_rs_dump_address32 (
684 union acpi_resource_data *data)
685{ 620{
686 struct acpi_resource_address32 *address32_data = (struct acpi_resource_address32 *) data; 621 struct acpi_resource_address32 *address32_data =
687 622 (struct acpi_resource_address32 *)data;
688
689 ACPI_FUNCTION_ENTRY ();
690 623
624 ACPI_FUNCTION_ENTRY();
691 625
692 acpi_os_printf ("32-Bit Address Space Resource\n"); 626 acpi_os_printf("32-Bit Address Space Resource\n");
693 627
694 switch (address32_data->resource_type) { 628 switch (address32_data->resource_type) {
695 case ACPI_MEMORY_RANGE: 629 case ACPI_MEMORY_RANGE:
696 630
697 acpi_os_printf (" Resource Type: Memory Range\n"); 631 acpi_os_printf(" Resource Type: Memory Range\n");
698 632
699 switch (address32_data->attribute.memory.cache_attribute) { 633 switch (address32_data->attribute.memory.cache_attribute) {
700 case ACPI_NON_CACHEABLE_MEMORY: 634 case ACPI_NON_CACHEABLE_MEMORY:
701 acpi_os_printf (" Type Specific: Noncacheable memory\n"); 635 acpi_os_printf
636 (" Type Specific: Noncacheable memory\n");
702 break; 637 break;
703 638
704 case ACPI_CACHABLE_MEMORY: 639 case ACPI_CACHABLE_MEMORY:
705 acpi_os_printf (" Type Specific: Cacheable memory\n"); 640 acpi_os_printf(" Type Specific: Cacheable memory\n");
706 break; 641 break;
707 642
708 case ACPI_WRITE_COMBINING_MEMORY: 643 case ACPI_WRITE_COMBINING_MEMORY:
709 acpi_os_printf (" Type Specific: Write-combining memory\n"); 644 acpi_os_printf
645 (" Type Specific: Write-combining memory\n");
710 break; 646 break;
711 647
712 case ACPI_PREFETCHABLE_MEMORY: 648 case ACPI_PREFETCHABLE_MEMORY:
713 acpi_os_printf (" Type Specific: Prefetchable memory\n"); 649 acpi_os_printf
650 (" Type Specific: Prefetchable memory\n");
714 break; 651 break;
715 652
716 default: 653 default:
717 acpi_os_printf (" Type Specific: Invalid cache attribute\n"); 654 acpi_os_printf
655 (" Type Specific: Invalid cache attribute\n");
718 break; 656 break;
719 } 657 }
720 658
721 acpi_os_printf (" Type Specific: Read%s\n", 659 acpi_os_printf(" Type Specific: Read%s\n",
722 ACPI_READ_WRITE_MEMORY == 660 ACPI_READ_WRITE_MEMORY ==
723 address32_data->attribute.memory.read_write_attribute ? 661 address32_data->attribute.memory.
724 "/Write" : " Only"); 662 read_write_attribute ? "/Write" : " Only");
725 break; 663 break;
726 664
727 case ACPI_IO_RANGE: 665 case ACPI_IO_RANGE:
728 666
729 acpi_os_printf (" Resource Type: Io Range\n"); 667 acpi_os_printf(" Resource Type: Io Range\n");
730 668
731 switch (address32_data->attribute.io.range_attribute) { 669 switch (address32_data->attribute.io.range_attribute) {
732 case ACPI_NON_ISA_ONLY_RANGES: 670 case ACPI_NON_ISA_ONLY_RANGES:
733 acpi_os_printf (" Type Specific: Non-ISA Io Addresses\n"); 671 acpi_os_printf
672 (" Type Specific: Non-ISA Io Addresses\n");
734 break; 673 break;
735 674
736 case ACPI_ISA_ONLY_RANGES: 675 case ACPI_ISA_ONLY_RANGES:
737 acpi_os_printf (" Type Specific: ISA Io Addresses\n"); 676 acpi_os_printf(" Type Specific: ISA Io Addresses\n");
738 break; 677 break;
739 678
740 case ACPI_ENTIRE_RANGE: 679 case ACPI_ENTIRE_RANGE:
741 acpi_os_printf (" Type Specific: ISA and non-ISA Io Addresses\n"); 680 acpi_os_printf
681 (" Type Specific: ISA and non-ISA Io Addresses\n");
742 break; 682 break;
743 683
744 default: 684 default:
745 acpi_os_printf (" Type Specific: Invalid Range attribute"); 685 acpi_os_printf
686 (" Type Specific: Invalid Range attribute");
746 break; 687 break;
747 } 688 }
748 689
749 acpi_os_printf (" Type Specific: %s Translation\n", 690 acpi_os_printf(" Type Specific: %s Translation\n",
750 ACPI_SPARSE_TRANSLATION == 691 ACPI_SPARSE_TRANSLATION ==
751 address32_data->attribute.io.translation_attribute ? 692 address32_data->attribute.io.
752 "Sparse" : "Dense"); 693 translation_attribute ? "Sparse" : "Dense");
753 break; 694 break;
754 695
755 case ACPI_BUS_NUMBER_RANGE: 696 case ACPI_BUS_NUMBER_RANGE:
756 697
757 acpi_os_printf (" Resource Type: Bus Number Range\n"); 698 acpi_os_printf(" Resource Type: Bus Number Range\n");
758 break; 699 break;
759 700
760 default: 701 default:
761 702
762 acpi_os_printf (" Resource Type: 0x%2.2X\n", 703 acpi_os_printf(" Resource Type: 0x%2.2X\n",
763 address32_data->resource_type); 704 address32_data->resource_type);
764 break; 705 break;
765 } 706 }
766 707
767 acpi_os_printf (" Resource %s\n", 708 acpi_os_printf(" Resource %s\n",
768 ACPI_CONSUMER == address32_data->producer_consumer ? 709 ACPI_CONSUMER == address32_data->producer_consumer ?
769 "Consumer" : "Producer"); 710 "Consumer" : "Producer");
770 711
771 acpi_os_printf (" %s decode\n", 712 acpi_os_printf(" %s decode\n",
772 ACPI_SUB_DECODE == address32_data->decode ? 713 ACPI_SUB_DECODE == address32_data->decode ?
773 "Subtractive" : "Positive"); 714 "Subtractive" : "Positive");
774 715
775 acpi_os_printf (" Min address is %s fixed\n", 716 acpi_os_printf(" Min address is %s fixed\n",
776 ACPI_ADDRESS_FIXED == address32_data->min_address_fixed ? 717 ACPI_ADDRESS_FIXED == address32_data->min_address_fixed ?
777 "" : "not "); 718 "" : "not ");
778 719
779 acpi_os_printf (" Max address is %s fixed\n", 720 acpi_os_printf(" Max address is %s fixed\n",
780 ACPI_ADDRESS_FIXED == address32_data->max_address_fixed ? 721 ACPI_ADDRESS_FIXED == address32_data->max_address_fixed ?
781 "" : "not "); 722 "" : "not ");
782 723
783 acpi_os_printf (" Granularity: %08X\n", 724 acpi_os_printf(" Granularity: %08X\n", address32_data->granularity);
784 address32_data->granularity);
785 725
786 acpi_os_printf (" Address range min: %08X\n", 726 acpi_os_printf(" Address range min: %08X\n",
787 address32_data->min_address_range); 727 address32_data->min_address_range);
788 728
789 acpi_os_printf (" Address range max: %08X\n", 729 acpi_os_printf(" Address range max: %08X\n",
790 address32_data->max_address_range); 730 address32_data->max_address_range);
791 731
792 acpi_os_printf (" Address translation offset: %08X\n", 732 acpi_os_printf(" Address translation offset: %08X\n",
793 address32_data->address_translation_offset); 733 address32_data->address_translation_offset);
794 734
795 acpi_os_printf (" Address Length: %08X\n", 735 acpi_os_printf(" Address Length: %08X\n",
796 address32_data->address_length); 736 address32_data->address_length);
797 737
798 if(0xFF != address32_data->resource_source.index) { 738 if (0xFF != address32_data->resource_source.index) {
799 acpi_os_printf (" Resource Source Index: %X\n", 739 acpi_os_printf(" Resource Source Index: %X\n",
800 address32_data->resource_source.index); 740 address32_data->resource_source.index);
801 741
802 acpi_os_printf (" Resource Source: %s\n", 742 acpi_os_printf(" Resource Source: %s\n",
803 address32_data->resource_source.string_ptr); 743 address32_data->resource_source.string_ptr);
804 } 744 }
805 745
806 return; 746 return;
807} 747}
808 748
809
810/******************************************************************************* 749/*******************************************************************************
811 * 750 *
812 * FUNCTION: acpi_rs_dump_address64 751 * FUNCTION: acpi_rs_dump_address64
@@ -819,137 +758,142 @@ acpi_rs_dump_address32 (
819 * 758 *
820 ******************************************************************************/ 759 ******************************************************************************/
821 760
822static void 761static void acpi_rs_dump_address64(union acpi_resource_data *data)
823acpi_rs_dump_address64 (
824 union acpi_resource_data *data)
825{ 762{
826 struct acpi_resource_address64 *address64_data = (struct acpi_resource_address64 *) data; 763 struct acpi_resource_address64 *address64_data =
827 764 (struct acpi_resource_address64 *)data;
828
829 ACPI_FUNCTION_ENTRY ();
830 765
766 ACPI_FUNCTION_ENTRY();
831 767
832 acpi_os_printf ("64-Bit Address Space Resource\n"); 768 acpi_os_printf("64-Bit Address Space Resource\n");
833 769
834 switch (address64_data->resource_type) { 770 switch (address64_data->resource_type) {
835 case ACPI_MEMORY_RANGE: 771 case ACPI_MEMORY_RANGE:
836 772
837 acpi_os_printf (" Resource Type: Memory Range\n"); 773 acpi_os_printf(" Resource Type: Memory Range\n");
838 774
839 switch (address64_data->attribute.memory.cache_attribute) { 775 switch (address64_data->attribute.memory.cache_attribute) {
840 case ACPI_NON_CACHEABLE_MEMORY: 776 case ACPI_NON_CACHEABLE_MEMORY:
841 acpi_os_printf (" Type Specific: Noncacheable memory\n"); 777 acpi_os_printf
778 (" Type Specific: Noncacheable memory\n");
842 break; 779 break;
843 780
844 case ACPI_CACHABLE_MEMORY: 781 case ACPI_CACHABLE_MEMORY:
845 acpi_os_printf (" Type Specific: Cacheable memory\n"); 782 acpi_os_printf(" Type Specific: Cacheable memory\n");
846 break; 783 break;
847 784
848 case ACPI_WRITE_COMBINING_MEMORY: 785 case ACPI_WRITE_COMBINING_MEMORY:
849 acpi_os_printf (" Type Specific: Write-combining memory\n"); 786 acpi_os_printf
787 (" Type Specific: Write-combining memory\n");
850 break; 788 break;
851 789
852 case ACPI_PREFETCHABLE_MEMORY: 790 case ACPI_PREFETCHABLE_MEMORY:
853 acpi_os_printf (" Type Specific: Prefetchable memory\n"); 791 acpi_os_printf
792 (" Type Specific: Prefetchable memory\n");
854 break; 793 break;
855 794
856 default: 795 default:
857 acpi_os_printf (" Type Specific: Invalid cache attribute\n"); 796 acpi_os_printf
797 (" Type Specific: Invalid cache attribute\n");
858 break; 798 break;
859 } 799 }
860 800
861 acpi_os_printf (" Type Specific: Read%s\n", 801 acpi_os_printf(" Type Specific: Read%s\n",
862 ACPI_READ_WRITE_MEMORY == 802 ACPI_READ_WRITE_MEMORY ==
863 address64_data->attribute.memory.read_write_attribute ? 803 address64_data->attribute.memory.
864 "/Write" : " Only"); 804 read_write_attribute ? "/Write" : " Only");
865 break; 805 break;
866 806
867 case ACPI_IO_RANGE: 807 case ACPI_IO_RANGE:
868 808
869 acpi_os_printf (" Resource Type: Io Range\n"); 809 acpi_os_printf(" Resource Type: Io Range\n");
870 810
871 switch (address64_data->attribute.io.range_attribute) { 811 switch (address64_data->attribute.io.range_attribute) {
872 case ACPI_NON_ISA_ONLY_RANGES: 812 case ACPI_NON_ISA_ONLY_RANGES:
873 acpi_os_printf (" Type Specific: Non-ISA Io Addresses\n"); 813 acpi_os_printf
814 (" Type Specific: Non-ISA Io Addresses\n");
874 break; 815 break;
875 816
876 case ACPI_ISA_ONLY_RANGES: 817 case ACPI_ISA_ONLY_RANGES:
877 acpi_os_printf (" Type Specific: ISA Io Addresses\n"); 818 acpi_os_printf(" Type Specific: ISA Io Addresses\n");
878 break; 819 break;
879 820
880 case ACPI_ENTIRE_RANGE: 821 case ACPI_ENTIRE_RANGE:
881 acpi_os_printf (" Type Specific: ISA and non-ISA Io Addresses\n"); 822 acpi_os_printf
823 (" Type Specific: ISA and non-ISA Io Addresses\n");
882 break; 824 break;
883 825
884 default: 826 default:
885 acpi_os_printf (" Type Specific: Invalid Range attribute"); 827 acpi_os_printf
828 (" Type Specific: Invalid Range attribute");
886 break; 829 break;
887 } 830 }
888 831
889 acpi_os_printf (" Type Specific: %s Translation\n", 832 acpi_os_printf(" Type Specific: %s Translation\n",
890 ACPI_SPARSE_TRANSLATION == 833 ACPI_SPARSE_TRANSLATION ==
891 address64_data->attribute.io.translation_attribute ? 834 address64_data->attribute.io.
892 "Sparse" : "Dense"); 835 translation_attribute ? "Sparse" : "Dense");
893 break; 836 break;
894 837
895 case ACPI_BUS_NUMBER_RANGE: 838 case ACPI_BUS_NUMBER_RANGE:
896 839
897 acpi_os_printf (" Resource Type: Bus Number Range\n"); 840 acpi_os_printf(" Resource Type: Bus Number Range\n");
898 break; 841 break;
899 842
900 default: 843 default:
901 844
902 acpi_os_printf (" Resource Type: 0x%2.2X\n", 845 acpi_os_printf(" Resource Type: 0x%2.2X\n",
903 address64_data->resource_type); 846 address64_data->resource_type);
904 break; 847 break;
905 } 848 }
906 849
907 acpi_os_printf (" Resource %s\n", 850 acpi_os_printf(" Resource %s\n",
908 ACPI_CONSUMER == address64_data->producer_consumer ? 851 ACPI_CONSUMER == address64_data->producer_consumer ?
909 "Consumer" : "Producer"); 852 "Consumer" : "Producer");
910 853
911 acpi_os_printf (" %s decode\n", 854 acpi_os_printf(" %s decode\n",
912 ACPI_SUB_DECODE == address64_data->decode ? 855 ACPI_SUB_DECODE == address64_data->decode ?
913 "Subtractive" : "Positive"); 856 "Subtractive" : "Positive");
914 857
915 acpi_os_printf (" Min address is %s fixed\n", 858 acpi_os_printf(" Min address is %s fixed\n",
916 ACPI_ADDRESS_FIXED == address64_data->min_address_fixed ? 859 ACPI_ADDRESS_FIXED == address64_data->min_address_fixed ?
917 "" : "not "); 860 "" : "not ");
918 861
919 acpi_os_printf (" Max address is %s fixed\n", 862 acpi_os_printf(" Max address is %s fixed\n",
920 ACPI_ADDRESS_FIXED == address64_data->max_address_fixed ? 863 ACPI_ADDRESS_FIXED == address64_data->max_address_fixed ?
921 "" : "not "); 864 "" : "not ");
922 865
923 acpi_os_printf (" Granularity: %8.8X%8.8X\n", 866 acpi_os_printf(" Granularity: %8.8X%8.8X\n",
924 ACPI_FORMAT_UINT64 (address64_data->granularity)); 867 ACPI_FORMAT_UINT64(address64_data->granularity));
925 868
926 acpi_os_printf (" Address range min: %8.8X%8.8X\n", 869 acpi_os_printf(" Address range min: %8.8X%8.8X\n",
927 ACPI_FORMAT_UINT64 (address64_data->min_address_range)); 870 ACPI_FORMAT_UINT64(address64_data->min_address_range));
928 871
929 acpi_os_printf (" Address range max: %8.8X%8.8X\n", 872 acpi_os_printf(" Address range max: %8.8X%8.8X\n",
930 ACPI_FORMAT_UINT64 (address64_data->max_address_range)); 873 ACPI_FORMAT_UINT64(address64_data->max_address_range));
931 874
932 acpi_os_printf (" Address translation offset: %8.8X%8.8X\n", 875 acpi_os_printf(" Address translation offset: %8.8X%8.8X\n",
933 ACPI_FORMAT_UINT64 (address64_data->address_translation_offset)); 876 ACPI_FORMAT_UINT64(address64_data->
877 address_translation_offset));
934 878
935 acpi_os_printf (" Address Length: %8.8X%8.8X\n", 879 acpi_os_printf(" Address Length: %8.8X%8.8X\n",
936 ACPI_FORMAT_UINT64 (address64_data->address_length)); 880 ACPI_FORMAT_UINT64(address64_data->address_length));
937 881
938 acpi_os_printf (" Type Specific Attributes: %8.8X%8.8X\n", 882 acpi_os_printf(" Type Specific Attributes: %8.8X%8.8X\n",
939 ACPI_FORMAT_UINT64 (address64_data->type_specific_attributes)); 883 ACPI_FORMAT_UINT64(address64_data->
884 type_specific_attributes));
940 885
941 if (0xFF != address64_data->resource_source.index) { 886 if (0xFF != address64_data->resource_source.index) {
942 acpi_os_printf (" Resource Source Index: %X\n", 887 acpi_os_printf(" Resource Source Index: %X\n",
943 address64_data->resource_source.index); 888 address64_data->resource_source.index);
944 889
945 acpi_os_printf (" Resource Source: %s\n", 890 acpi_os_printf(" Resource Source: %s\n",
946 address64_data->resource_source.string_ptr); 891 address64_data->resource_source.string_ptr);
947 } 892 }
948 893
949 return; 894 return;
950} 895}
951 896
952
953/******************************************************************************* 897/*******************************************************************************
954 * 898 *
955 * FUNCTION: acpi_rs_dump_extended_irq 899 * FUNCTION: acpi_rs_dump_extended_irq
@@ -962,55 +906,52 @@ acpi_rs_dump_address64 (
962 * 906 *
963 ******************************************************************************/ 907 ******************************************************************************/
964 908
965static void 909static void acpi_rs_dump_extended_irq(union acpi_resource_data *data)
966acpi_rs_dump_extended_irq (
967 union acpi_resource_data *data)
968{ 910{
969 struct acpi_resource_ext_irq *ext_irq_data = (struct acpi_resource_ext_irq *) data; 911 struct acpi_resource_ext_irq *ext_irq_data =
970 u8 index = 0; 912 (struct acpi_resource_ext_irq *)data;
971 913 u8 index = 0;
972
973 ACPI_FUNCTION_ENTRY ();
974 914
915 ACPI_FUNCTION_ENTRY();
975 916
976 acpi_os_printf ("Extended IRQ Resource\n"); 917 acpi_os_printf("Extended IRQ Resource\n");
977 918
978 acpi_os_printf (" Resource %s\n", 919 acpi_os_printf(" Resource %s\n",
979 ACPI_CONSUMER == ext_irq_data->producer_consumer ? 920 ACPI_CONSUMER == ext_irq_data->producer_consumer ?
980 "Consumer" : "Producer"); 921 "Consumer" : "Producer");
981 922
982 acpi_os_printf (" %s\n", 923 acpi_os_printf(" %s\n",
983 ACPI_LEVEL_SENSITIVE == ext_irq_data->edge_level ? 924 ACPI_LEVEL_SENSITIVE == ext_irq_data->edge_level ?
984 "Level" : "Edge"); 925 "Level" : "Edge");
985 926
986 acpi_os_printf (" Active %s\n", 927 acpi_os_printf(" Active %s\n",
987 ACPI_ACTIVE_LOW == ext_irq_data->active_high_low ? 928 ACPI_ACTIVE_LOW == ext_irq_data->active_high_low ?
988 "low" : "high"); 929 "low" : "high");
989 930
990 acpi_os_printf (" %s\n", 931 acpi_os_printf(" %s\n",
991 ACPI_SHARED == ext_irq_data->shared_exclusive ? 932 ACPI_SHARED == ext_irq_data->shared_exclusive ?
992 "Shared" : "Exclusive"); 933 "Shared" : "Exclusive");
993 934
994 acpi_os_printf (" Interrupts : %X ( ", ext_irq_data->number_of_interrupts); 935 acpi_os_printf(" Interrupts : %X ( ",
936 ext_irq_data->number_of_interrupts);
995 937
996 for (index = 0; index < ext_irq_data->number_of_interrupts; index++) { 938 for (index = 0; index < ext_irq_data->number_of_interrupts; index++) {
997 acpi_os_printf ("%X ", ext_irq_data->interrupts[index]); 939 acpi_os_printf("%X ", ext_irq_data->interrupts[index]);
998 } 940 }
999 941
1000 acpi_os_printf (")\n"); 942 acpi_os_printf(")\n");
1001 943
1002 if(0xFF != ext_irq_data->resource_source.index) { 944 if (0xFF != ext_irq_data->resource_source.index) {
1003 acpi_os_printf (" Resource Source Index: %X", 945 acpi_os_printf(" Resource Source Index: %X",
1004 ext_irq_data->resource_source.index); 946 ext_irq_data->resource_source.index);
1005 947
1006 acpi_os_printf (" Resource Source: %s", 948 acpi_os_printf(" Resource Source: %s",
1007 ext_irq_data->resource_source.string_ptr); 949 ext_irq_data->resource_source.string_ptr);
1008 } 950 }
1009 951
1010 return; 952 return;
1011} 953}
1012 954
1013
1014/******************************************************************************* 955/*******************************************************************************
1015 * 956 *
1016 * FUNCTION: acpi_rs_dump_resource_list 957 * FUNCTION: acpi_rs_dump_resource_list
@@ -1023,92 +964,91 @@ acpi_rs_dump_extended_irq (
1023 * 964 *
1024 ******************************************************************************/ 965 ******************************************************************************/
1025 966
1026void 967void acpi_rs_dump_resource_list(struct acpi_resource *resource)
1027acpi_rs_dump_resource_list (
1028 struct acpi_resource *resource)
1029{ 968{
1030 u8 count = 0; 969 u8 count = 0;
1031 u8 done = FALSE; 970 u8 done = FALSE;
1032
1033
1034 ACPI_FUNCTION_ENTRY ();
1035 971
972 ACPI_FUNCTION_ENTRY();
1036 973
1037 if (acpi_dbg_level & ACPI_LV_RESOURCES && _COMPONENT & acpi_dbg_layer) { 974 if (acpi_dbg_level & ACPI_LV_RESOURCES && _COMPONENT & acpi_dbg_layer) {
1038 while (!done) { 975 while (!done) {
1039 acpi_os_printf ("Resource structure %X.\n", count++); 976 acpi_os_printf("Resource structure %X.\n", count++);
1040 977
1041 switch (resource->id) { 978 switch (resource->id) {
1042 case ACPI_RSTYPE_IRQ: 979 case ACPI_RSTYPE_IRQ:
1043 acpi_rs_dump_irq (&resource->data); 980 acpi_rs_dump_irq(&resource->data);
1044 break; 981 break;
1045 982
1046 case ACPI_RSTYPE_DMA: 983 case ACPI_RSTYPE_DMA:
1047 acpi_rs_dump_dma (&resource->data); 984 acpi_rs_dump_dma(&resource->data);
1048 break; 985 break;
1049 986
1050 case ACPI_RSTYPE_START_DPF: 987 case ACPI_RSTYPE_START_DPF:
1051 acpi_rs_dump_start_depend_fns (&resource->data); 988 acpi_rs_dump_start_depend_fns(&resource->data);
1052 break; 989 break;
1053 990
1054 case ACPI_RSTYPE_END_DPF: 991 case ACPI_RSTYPE_END_DPF:
1055 acpi_os_printf ("end_dependent_functions Resource\n"); 992 acpi_os_printf
1056 /* acpi_rs_dump_end_dependent_functions (Resource->Data);*/ 993 ("end_dependent_functions Resource\n");
994 /* acpi_rs_dump_end_dependent_functions (Resource->Data); */
1057 break; 995 break;
1058 996
1059 case ACPI_RSTYPE_IO: 997 case ACPI_RSTYPE_IO:
1060 acpi_rs_dump_io (&resource->data); 998 acpi_rs_dump_io(&resource->data);
1061 break; 999 break;
1062 1000
1063 case ACPI_RSTYPE_FIXED_IO: 1001 case ACPI_RSTYPE_FIXED_IO:
1064 acpi_rs_dump_fixed_io (&resource->data); 1002 acpi_rs_dump_fixed_io(&resource->data);
1065 break; 1003 break;
1066 1004
1067 case ACPI_RSTYPE_VENDOR: 1005 case ACPI_RSTYPE_VENDOR:
1068 acpi_rs_dump_vendor_specific (&resource->data); 1006 acpi_rs_dump_vendor_specific(&resource->data);
1069 break; 1007 break;
1070 1008
1071 case ACPI_RSTYPE_END_TAG: 1009 case ACPI_RSTYPE_END_TAG:
1072 /*rs_dump_end_tag (Resource->Data);*/ 1010 /*rs_dump_end_tag (Resource->Data); */
1073 acpi_os_printf ("end_tag Resource\n"); 1011 acpi_os_printf("end_tag Resource\n");
1074 done = TRUE; 1012 done = TRUE;
1075 break; 1013 break;
1076 1014
1077 case ACPI_RSTYPE_MEM24: 1015 case ACPI_RSTYPE_MEM24:
1078 acpi_rs_dump_memory24 (&resource->data); 1016 acpi_rs_dump_memory24(&resource->data);
1079 break; 1017 break;
1080 1018
1081 case ACPI_RSTYPE_MEM32: 1019 case ACPI_RSTYPE_MEM32:
1082 acpi_rs_dump_memory32 (&resource->data); 1020 acpi_rs_dump_memory32(&resource->data);
1083 break; 1021 break;
1084 1022
1085 case ACPI_RSTYPE_FIXED_MEM32: 1023 case ACPI_RSTYPE_FIXED_MEM32:
1086 acpi_rs_dump_fixed_memory32 (&resource->data); 1024 acpi_rs_dump_fixed_memory32(&resource->data);
1087 break; 1025 break;
1088 1026
1089 case ACPI_RSTYPE_ADDRESS16: 1027 case ACPI_RSTYPE_ADDRESS16:
1090 acpi_rs_dump_address16 (&resource->data); 1028 acpi_rs_dump_address16(&resource->data);
1091 break; 1029 break;
1092 1030
1093 case ACPI_RSTYPE_ADDRESS32: 1031 case ACPI_RSTYPE_ADDRESS32:
1094 acpi_rs_dump_address32 (&resource->data); 1032 acpi_rs_dump_address32(&resource->data);
1095 break; 1033 break;
1096 1034
1097 case ACPI_RSTYPE_ADDRESS64: 1035 case ACPI_RSTYPE_ADDRESS64:
1098 acpi_rs_dump_address64 (&resource->data); 1036 acpi_rs_dump_address64(&resource->data);
1099 break; 1037 break;
1100 1038
1101 case ACPI_RSTYPE_EXT_IRQ: 1039 case ACPI_RSTYPE_EXT_IRQ:
1102 acpi_rs_dump_extended_irq (&resource->data); 1040 acpi_rs_dump_extended_irq(&resource->data);
1103 break; 1041 break;
1104 1042
1105 default: 1043 default:
1106 acpi_os_printf ("Invalid resource type\n"); 1044 acpi_os_printf("Invalid resource type\n");
1107 break; 1045 break;
1108 1046
1109 } 1047 }
1110 1048
1111 resource = ACPI_PTR_ADD (struct acpi_resource, resource, resource->length); 1049 resource =
1050 ACPI_PTR_ADD(struct acpi_resource, resource,
1051 resource->length);
1112 } 1052 }
1113 } 1053 }
1114 1054
@@ -1127,36 +1067,38 @@ acpi_rs_dump_resource_list (
1127 * 1067 *
1128 ******************************************************************************/ 1068 ******************************************************************************/
1129 1069
1130void 1070void acpi_rs_dump_irq_list(u8 * route_table)
1131acpi_rs_dump_irq_list (
1132 u8 *route_table)
1133{ 1071{
1134 u8 *buffer = route_table; 1072 u8 *buffer = route_table;
1135 u8 count = 0; 1073 u8 count = 0;
1136 u8 done = FALSE; 1074 u8 done = FALSE;
1137 struct acpi_pci_routing_table *prt_element; 1075 struct acpi_pci_routing_table *prt_element;
1138
1139
1140 ACPI_FUNCTION_ENTRY ();
1141 1076
1077 ACPI_FUNCTION_ENTRY();
1142 1078
1143 if (acpi_dbg_level & ACPI_LV_RESOURCES && _COMPONENT & acpi_dbg_layer) { 1079 if (acpi_dbg_level & ACPI_LV_RESOURCES && _COMPONENT & acpi_dbg_layer) {
1144 prt_element = ACPI_CAST_PTR (struct acpi_pci_routing_table, buffer); 1080 prt_element =
1081 ACPI_CAST_PTR(struct acpi_pci_routing_table, buffer);
1145 1082
1146 while (!done) { 1083 while (!done) {
1147 acpi_os_printf ("PCI IRQ Routing Table structure %X.\n", count++); 1084 acpi_os_printf("PCI IRQ Routing Table structure %X.\n",
1085 count++);
1148 1086
1149 acpi_os_printf (" Address: %8.8X%8.8X\n", 1087 acpi_os_printf(" Address: %8.8X%8.8X\n",
1150 ACPI_FORMAT_UINT64 (prt_element->address)); 1088 ACPI_FORMAT_UINT64(prt_element->
1089 address));
1151 1090
1152 acpi_os_printf (" Pin: %X\n", prt_element->pin); 1091 acpi_os_printf(" Pin: %X\n", prt_element->pin);
1153 1092
1154 acpi_os_printf (" Source: %s\n", prt_element->source); 1093 acpi_os_printf(" Source: %s\n", prt_element->source);
1155 1094
1156 acpi_os_printf (" source_index: %X\n", prt_element->source_index); 1095 acpi_os_printf(" source_index: %X\n",
1096 prt_element->source_index);
1157 1097
1158 buffer += prt_element->length; 1098 buffer += prt_element->length;
1159 prt_element = ACPI_CAST_PTR (struct acpi_pci_routing_table, buffer); 1099 prt_element =
1100 ACPI_CAST_PTR(struct acpi_pci_routing_table,
1101 buffer);
1160 if (0 == prt_element->length) { 1102 if (0 == prt_element->length) {
1161 done = TRUE; 1103 done = TRUE;
1162 } 1104 }
@@ -1167,4 +1109,3 @@ acpi_rs_dump_irq_list (
1167} 1109}
1168 1110
1169#endif 1111#endif
1170