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