diff options
Diffstat (limited to 'drivers/acpi/tables')
-rw-r--r-- | drivers/acpi/tables/tbconvrt.c | 2 | ||||
-rw-r--r-- | drivers/acpi/tables/tbget.c | 6 | ||||
-rw-r--r-- | drivers/acpi/tables/tbgetall.c | 2 | ||||
-rw-r--r-- | drivers/acpi/tables/tbinstal.c | 2 | ||||
-rw-r--r-- | drivers/acpi/tables/tbrsdt.c | 18 | ||||
-rw-r--r-- | drivers/acpi/tables/tbutils.c | 22 | ||||
-rw-r--r-- | drivers/acpi/tables/tbxface.c | 17 | ||||
-rw-r--r-- | drivers/acpi/tables/tbxfroot.c | 22 |
8 files changed, 36 insertions, 55 deletions
diff --git a/drivers/acpi/tables/tbconvrt.c b/drivers/acpi/tables/tbconvrt.c index cd33397d923..48290b7e6ba 100644 --- a/drivers/acpi/tables/tbconvrt.c +++ b/drivers/acpi/tables/tbconvrt.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/tables/tbget.c b/drivers/acpi/tables/tbget.c index 6acd5aeb093..0fedf4b27ea 100644 --- a/drivers/acpi/tables/tbget.c +++ b/drivers/acpi/tables/tbget.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -362,8 +362,8 @@ acpi_tb_get_this_table(struct acpi_pointer *address, | |||
362 | 362 | ||
363 | default: | 363 | default: |
364 | 364 | ||
365 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid address flags %X\n", | 365 | ACPI_REPORT_ERROR(("Invalid address flags %X\n", |
366 | address->pointer_type)); | 366 | address->pointer_type)); |
367 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 367 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
368 | } | 368 | } |
369 | 369 | ||
diff --git a/drivers/acpi/tables/tbgetall.c b/drivers/acpi/tables/tbgetall.c index 33c9ed8a6f9..496f336b3e3 100644 --- a/drivers/acpi/tables/tbgetall.c +++ b/drivers/acpi/tables/tbgetall.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/tables/tbinstal.c b/drivers/acpi/tables/tbinstal.c index 10db8484e46..e1c9faa3982 100644 --- a/drivers/acpi/tables/tbinstal.c +++ b/drivers/acpi/tables/tbinstal.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
diff --git a/drivers/acpi/tables/tbrsdt.c b/drivers/acpi/tables/tbrsdt.c index 3cee0cee4cc..17830902685 100644 --- a/drivers/acpi/tables/tbrsdt.c +++ b/drivers/acpi/tables/tbrsdt.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -176,7 +176,7 @@ acpi_status acpi_tb_validate_rsdt(struct acpi_table_header *table_ptr) | |||
176 | { | 176 | { |
177 | int no_match; | 177 | int no_match; |
178 | 178 | ||
179 | ACPI_FUNCTION_NAME("tb_validate_rsdt"); | 179 | ACPI_FUNCTION_ENTRY(); |
180 | 180 | ||
181 | /* | 181 | /* |
182 | * Search for appropriate signature, RSDT or XSDT | 182 | * Search for appropriate signature, RSDT or XSDT |
@@ -192,15 +192,11 @@ acpi_status acpi_tb_validate_rsdt(struct acpi_table_header *table_ptr) | |||
192 | if (no_match) { | 192 | if (no_match) { |
193 | /* Invalid RSDT or XSDT signature */ | 193 | /* Invalid RSDT or XSDT signature */ |
194 | 194 | ||
195 | ACPI_REPORT_ERROR(("Invalid signature where RSDP indicates RSDT/XSDT should be located\n")); | 195 | ACPI_REPORT_ERROR(("Invalid signature where RSDP indicates RSDT/XSDT should be located. RSDP:\n")); |
196 | 196 | ||
197 | ACPI_DUMP_BUFFER(acpi_gbl_RSDP, 20); | 197 | ACPI_DUMP_BUFFER(acpi_gbl_RSDP, 20); |
198 | 198 | ||
199 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_ERROR, | 199 | ACPI_REPORT_ERROR(("RSDT/XSDT signature at %X (%p) is invalid\n", acpi_gbl_RSDP->rsdt_physical_address, (void *)(acpi_native_uint) acpi_gbl_RSDP->rsdt_physical_address)); |
200 | "RSDT/XSDT signature at %X (%p) is invalid\n", | ||
201 | acpi_gbl_RSDP->rsdt_physical_address, | ||
202 | (void *)(acpi_native_uint) acpi_gbl_RSDP-> | ||
203 | rsdt_physical_address)); | ||
204 | 200 | ||
205 | if (acpi_gbl_root_table_type == ACPI_TABLE_TYPE_RSDT) { | 201 | if (acpi_gbl_root_table_type == ACPI_TABLE_TYPE_RSDT) { |
206 | ACPI_REPORT_ERROR(("Looking for RSDT\n")) | 202 | ACPI_REPORT_ERROR(("Looking for RSDT\n")) |
@@ -209,7 +205,6 @@ acpi_status acpi_tb_validate_rsdt(struct acpi_table_header *table_ptr) | |||
209 | } | 205 | } |
210 | 206 | ||
211 | ACPI_DUMP_BUFFER((char *)table_ptr, 48); | 207 | ACPI_DUMP_BUFFER((char *)table_ptr, 48); |
212 | |||
213 | return (AE_BAD_SIGNATURE); | 208 | return (AE_BAD_SIGNATURE); |
214 | } | 209 | } |
215 | 210 | ||
@@ -243,9 +238,8 @@ acpi_status acpi_tb_get_table_rsdt(void) | |||
243 | table_info.type = ACPI_TABLE_XSDT; | 238 | table_info.type = ACPI_TABLE_XSDT; |
244 | status = acpi_tb_get_table(&address, &table_info); | 239 | status = acpi_tb_get_table(&address, &table_info); |
245 | if (ACPI_FAILURE(status)) { | 240 | if (ACPI_FAILURE(status)) { |
246 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 241 | ACPI_REPORT_ERROR(("Could not get the RSDT/XSDT, %s\n", |
247 | "Could not get the RSDT/XSDT, %s\n", | 242 | acpi_format_exception(status))); |
248 | acpi_format_exception(status))); | ||
249 | 243 | ||
250 | return_ACPI_STATUS(status); | 244 | return_ACPI_STATUS(status); |
251 | } | 245 | } |
diff --git a/drivers/acpi/tables/tbutils.c b/drivers/acpi/tables/tbutils.c index 9d0bf536d67..38c6749e43d 100644 --- a/drivers/acpi/tables/tbutils.c +++ b/drivers/acpi/tables/tbutils.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -144,14 +144,13 @@ acpi_tb_validate_table_header(struct acpi_table_header *table_header) | |||
144 | { | 144 | { |
145 | acpi_name signature; | 145 | acpi_name signature; |
146 | 146 | ||
147 | ACPI_FUNCTION_NAME("tb_validate_table_header"); | 147 | ACPI_FUNCTION_ENTRY(); |
148 | 148 | ||
149 | /* Verify that this is a valid address */ | 149 | /* Verify that this is a valid address */ |
150 | 150 | ||
151 | if (!acpi_os_readable(table_header, sizeof(struct acpi_table_header))) { | 151 | if (!acpi_os_readable(table_header, sizeof(struct acpi_table_header))) { |
152 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 152 | ACPI_REPORT_ERROR(("Cannot read table header at %p\n", |
153 | "Cannot read table header at %p\n", | 153 | table_header)); |
154 | table_header)); | ||
155 | 154 | ||
156 | return (AE_BAD_ADDRESS); | 155 | return (AE_BAD_ADDRESS); |
157 | } | 156 | } |
@@ -160,12 +159,10 @@ acpi_tb_validate_table_header(struct acpi_table_header *table_header) | |||
160 | 159 | ||
161 | ACPI_MOVE_32_TO_32(&signature, table_header->signature); | 160 | ACPI_MOVE_32_TO_32(&signature, table_header->signature); |
162 | if (!acpi_ut_valid_acpi_name(signature)) { | 161 | if (!acpi_ut_valid_acpi_name(signature)) { |
163 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 162 | ACPI_REPORT_ERROR(("Table signature at %p [%p] has invalid characters\n", table_header, &signature)); |
164 | "Table signature at %p [%p] has invalid characters\n", | ||
165 | table_header, &signature)); | ||
166 | 163 | ||
167 | ACPI_REPORT_WARNING(("Invalid table signature found: [%4.4s]\n", | 164 | ACPI_REPORT_WARNING(("Invalid table signature found: [%4.4s]\n", |
168 | (char *)&signature)); | 165 | ACPI_CAST_PTR(char, &signature))); |
169 | 166 | ||
170 | ACPI_DUMP_BUFFER(table_header, | 167 | ACPI_DUMP_BUFFER(table_header, |
171 | sizeof(struct acpi_table_header)); | 168 | sizeof(struct acpi_table_header)); |
@@ -175,9 +172,7 @@ acpi_tb_validate_table_header(struct acpi_table_header *table_header) | |||
175 | /* Validate the table length */ | 172 | /* Validate the table length */ |
176 | 173 | ||
177 | if (table_header->length < sizeof(struct acpi_table_header)) { | 174 | if (table_header->length < sizeof(struct acpi_table_header)) { |
178 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 175 | ACPI_REPORT_ERROR(("Invalid length in table header %p name %4.4s\n", table_header, (char *)&signature)); |
179 | "Invalid length in table header %p name %4.4s\n", | ||
180 | table_header, (char *)&signature)); | ||
181 | 176 | ||
182 | ACPI_REPORT_WARNING(("Invalid table header length (0x%X) found\n", (u32) table_header->length)); | 177 | ACPI_REPORT_WARNING(("Invalid table header length (0x%X) found\n", (u32) table_header->length)); |
183 | 178 | ||
@@ -291,8 +286,7 @@ acpi_tb_handle_to_object(u16 table_id, | |||
291 | } | 286 | } |
292 | } | 287 | } |
293 | 288 | ||
294 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "table_id=%X does not exist\n", | 289 | ACPI_REPORT_ERROR(("table_id=%X does not exist\n", table_id)); |
295 | table_id)); | ||
296 | return (AE_BAD_PARAMETER); | 290 | return (AE_BAD_PARAMETER); |
297 | } | 291 | } |
298 | #endif | 292 | #endif |
diff --git a/drivers/acpi/tables/tbxface.c b/drivers/acpi/tables/tbxface.c index 3f96a4909aa..83a9ca8cb98 100644 --- a/drivers/acpi/tables/tbxface.c +++ b/drivers/acpi/tables/tbxface.c | |||
@@ -6,7 +6,7 @@ | |||
6 | *****************************************************************************/ | 6 | *****************************************************************************/ |
7 | 7 | ||
8 | /* | 8 | /* |
9 | * Copyright (C) 2000 - 2005, R. Byron Moore | 9 | * Copyright (C) 2000 - 2006, R. Byron Moore |
10 | * All rights reserved. | 10 | * All rights reserved. |
11 | * | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without |
@@ -75,7 +75,7 @@ acpi_status acpi_load_tables(void) | |||
75 | status = acpi_os_get_root_pointer(ACPI_LOGICAL_ADDRESSING, | 75 | status = acpi_os_get_root_pointer(ACPI_LOGICAL_ADDRESSING, |
76 | &rsdp_address); | 76 | &rsdp_address); |
77 | if (ACPI_FAILURE(status)) { | 77 | if (ACPI_FAILURE(status)) { |
78 | ACPI_REPORT_ERROR(("acpi_load_tables: Could not get RSDP, %s\n", | 78 | ACPI_REPORT_ERROR(("Could not get RSDP, %s\n", |
79 | acpi_format_exception(status))); | 79 | acpi_format_exception(status))); |
80 | goto error_exit; | 80 | goto error_exit; |
81 | } | 81 | } |
@@ -86,7 +86,8 @@ acpi_status acpi_load_tables(void) | |||
86 | 86 | ||
87 | status = acpi_tb_verify_rsdp(&rsdp_address); | 87 | status = acpi_tb_verify_rsdp(&rsdp_address); |
88 | if (ACPI_FAILURE(status)) { | 88 | if (ACPI_FAILURE(status)) { |
89 | ACPI_REPORT_ERROR(("acpi_load_tables: RSDP Failed validation: %s\n", acpi_format_exception(status))); | 89 | ACPI_REPORT_ERROR(("RSDP Failed validation: %s\n", |
90 | acpi_format_exception(status))); | ||
90 | goto error_exit; | 91 | goto error_exit; |
91 | } | 92 | } |
92 | 93 | ||
@@ -94,7 +95,8 @@ acpi_status acpi_load_tables(void) | |||
94 | 95 | ||
95 | status = acpi_tb_get_table_rsdt(); | 96 | status = acpi_tb_get_table_rsdt(); |
96 | if (ACPI_FAILURE(status)) { | 97 | if (ACPI_FAILURE(status)) { |
97 | ACPI_REPORT_ERROR(("acpi_load_tables: Could not load RSDT: %s\n", acpi_format_exception(status))); | 98 | ACPI_REPORT_ERROR(("Could not load RSDT: %s\n", |
99 | acpi_format_exception(status))); | ||
98 | goto error_exit; | 100 | goto error_exit; |
99 | } | 101 | } |
100 | 102 | ||
@@ -102,7 +104,7 @@ acpi_status acpi_load_tables(void) | |||
102 | 104 | ||
103 | status = acpi_tb_get_required_tables(); | 105 | status = acpi_tb_get_required_tables(); |
104 | if (ACPI_FAILURE(status)) { | 106 | if (ACPI_FAILURE(status)) { |
105 | ACPI_REPORT_ERROR(("acpi_load_tables: Error getting required tables (DSDT/FADT/FACS): %s\n", acpi_format_exception(status))); | 107 | ACPI_REPORT_ERROR(("Could not get all required tables (DSDT/FADT/FACS): %s\n", acpi_format_exception(status))); |
106 | goto error_exit; | 108 | goto error_exit; |
107 | } | 109 | } |
108 | 110 | ||
@@ -112,14 +114,15 @@ acpi_status acpi_load_tables(void) | |||
112 | 114 | ||
113 | status = acpi_ns_load_namespace(); | 115 | status = acpi_ns_load_namespace(); |
114 | if (ACPI_FAILURE(status)) { | 116 | if (ACPI_FAILURE(status)) { |
115 | ACPI_REPORT_ERROR(("acpi_load_tables: Could not load namespace: %s\n", acpi_format_exception(status))); | 117 | ACPI_REPORT_ERROR(("Could not load namespace: %s\n", |
118 | acpi_format_exception(status))); | ||
116 | goto error_exit; | 119 | goto error_exit; |
117 | } | 120 | } |
118 | 121 | ||
119 | return_ACPI_STATUS(AE_OK); | 122 | return_ACPI_STATUS(AE_OK); |
120 | 123 | ||
121 | error_exit: | 124 | error_exit: |
122 | ACPI_REPORT_ERROR(("acpi_load_tables: Could not load tables: %s\n", | 125 | ACPI_REPORT_ERROR(("Could not load tables: %s\n", |
123 | acpi_format_exception(status))); | 126 | acpi_format_exception(status))); |
124 | 127 | ||
125 | return_ACPI_STATUS(status); | 128 | return_ACPI_STATUS(status); |
diff --git a/drivers/acpi/tables/tbxfroot.c b/drivers/acpi/tables/tbxfroot.c index b01a4b2ae7d..6538ed818f5 100644 --- a/drivers/acpi/tables/tbxfroot.c +++ b/drivers/acpi/tables/tbxfroot.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -396,9 +396,8 @@ acpi_status acpi_find_root_pointer(u32 flags, struct acpi_pointer *rsdp_address) | |||
396 | 396 | ||
397 | status = acpi_tb_find_rsdp(&table_info, flags); | 397 | status = acpi_tb_find_rsdp(&table_info, flags); |
398 | if (ACPI_FAILURE(status)) { | 398 | if (ACPI_FAILURE(status)) { |
399 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 399 | ACPI_REPORT_ERROR(("RSDP structure not found, %s Flags=%X\n", |
400 | "RSDP structure not found, %s Flags=%X\n", | 400 | acpi_format_exception(status), flags)); |
401 | acpi_format_exception(status), flags)); | ||
402 | 401 | ||
403 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); | 402 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); |
404 | } | 403 | } |
@@ -503,10 +502,7 @@ acpi_tb_find_rsdp(struct acpi_table_desc *table_info, u32 flags) | |||
503 | ACPI_EBDA_PTR_LENGTH, | 502 | ACPI_EBDA_PTR_LENGTH, |
504 | (void *)&table_ptr); | 503 | (void *)&table_ptr); |
505 | if (ACPI_FAILURE(status)) { | 504 | if (ACPI_FAILURE(status)) { |
506 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 505 | ACPI_REPORT_ERROR(("Could not map memory at %8.8X for length %X\n", ACPI_EBDA_PTR_LOCATION, ACPI_EBDA_PTR_LENGTH)); |
507 | "Could not map memory at %8.8X for length %X\n", | ||
508 | ACPI_EBDA_PTR_LOCATION, | ||
509 | ACPI_EBDA_PTR_LENGTH)); | ||
510 | 506 | ||
511 | return_ACPI_STATUS(status); | 507 | return_ACPI_STATUS(status); |
512 | } | 508 | } |
@@ -530,10 +526,7 @@ acpi_tb_find_rsdp(struct acpi_table_desc *table_info, u32 flags) | |||
530 | ACPI_EBDA_WINDOW_SIZE, | 526 | ACPI_EBDA_WINDOW_SIZE, |
531 | (void *)&table_ptr); | 527 | (void *)&table_ptr); |
532 | if (ACPI_FAILURE(status)) { | 528 | if (ACPI_FAILURE(status)) { |
533 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 529 | ACPI_REPORT_ERROR(("Could not map memory at %8.8X for length %X\n", physical_address, ACPI_EBDA_WINDOW_SIZE)); |
534 | "Could not map memory at %8.8X for length %X\n", | ||
535 | physical_address, | ||
536 | ACPI_EBDA_WINDOW_SIZE)); | ||
537 | 530 | ||
538 | return_ACPI_STATUS(status); | 531 | return_ACPI_STATUS(status); |
539 | } | 532 | } |
@@ -563,10 +556,7 @@ acpi_tb_find_rsdp(struct acpi_table_desc *table_info, u32 flags) | |||
563 | (void *)&table_ptr); | 556 | (void *)&table_ptr); |
564 | 557 | ||
565 | if (ACPI_FAILURE(status)) { | 558 | if (ACPI_FAILURE(status)) { |
566 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 559 | ACPI_REPORT_ERROR(("Could not map memory at %8.8X for length %X\n", ACPI_HI_RSDP_WINDOW_BASE, ACPI_HI_RSDP_WINDOW_SIZE)); |
567 | "Could not map memory at %8.8X for length %X\n", | ||
568 | ACPI_HI_RSDP_WINDOW_BASE, | ||
569 | ACPI_HI_RSDP_WINDOW_SIZE)); | ||
570 | 560 | ||
571 | return_ACPI_STATUS(status); | 561 | return_ACPI_STATUS(status); |
572 | } | 562 | } |