diff options
Diffstat (limited to 'include/acpi')
32 files changed, 784 insertions, 157 deletions
diff --git a/include/acpi/acconfig.h b/include/acpi/acconfig.h index 422f29c06c77..28fe8bae1037 100644 --- a/include/acpi/acconfig.h +++ b/include/acpi/acconfig.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -63,7 +63,7 @@ | |||
| 63 | 63 | ||
| 64 | /* Current ACPICA subsystem version in YYYYMMDD format */ | 64 | /* Current ACPICA subsystem version in YYYYMMDD format */ |
| 65 | 65 | ||
| 66 | #define ACPI_CA_VERSION 0x20070126 | 66 | #define ACPI_CA_VERSION 0x20080321 |
| 67 | 67 | ||
| 68 | /* | 68 | /* |
| 69 | * OS name, used for the _OS object. The _OS object is essentially obsolete, | 69 | * OS name, used for the _OS object. The _OS object is essentially obsolete, |
| @@ -150,6 +150,17 @@ | |||
| 150 | #define ACPI_OBJ_NUM_OPERANDS 8 | 150 | #define ACPI_OBJ_NUM_OPERANDS 8 |
| 151 | #define ACPI_OBJ_MAX_OPERAND 7 | 151 | #define ACPI_OBJ_MAX_OPERAND 7 |
| 152 | 152 | ||
| 153 | /* Number of elements in the Result Stack frame, can be an arbitrary value */ | ||
| 154 | |||
| 155 | #define ACPI_RESULTS_FRAME_OBJ_NUM 8 | ||
| 156 | |||
| 157 | /* | ||
| 158 | * Maximal number of elements the Result Stack can contain, | ||
| 159 | * it may be an arbitray value not exceeding the types of | ||
| 160 | * result_size and result_count (now u8). | ||
| 161 | */ | ||
| 162 | #define ACPI_RESULTS_OBJ_NUM_MAX 255 | ||
| 163 | |||
| 153 | /* Names within the namespace are 4 bytes long */ | 164 | /* Names within the namespace are 4 bytes long */ |
| 154 | 165 | ||
| 155 | #define ACPI_NAME_SIZE 4 | 166 | #define ACPI_NAME_SIZE 4 |
diff --git a/include/acpi/acdebug.h b/include/acpi/acdebug.h index d626bb1d2973..c5a1b50d8d94 100644 --- a/include/acpi/acdebug.h +++ b/include/acpi/acdebug.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/acdisasm.h b/include/acpi/acdisasm.h index 389d772c7d5b..788f88782012 100644 --- a/include/acpi/acdisasm.h +++ b/include/acpi/acdisasm.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -97,19 +97,23 @@ typedef const struct acpi_dmtable_info { | |||
| 97 | #define ACPI_DMT_CHKSUM 20 | 97 | #define ACPI_DMT_CHKSUM 20 |
| 98 | #define ACPI_DMT_SPACEID 21 | 98 | #define ACPI_DMT_SPACEID 21 |
| 99 | #define ACPI_DMT_GAS 22 | 99 | #define ACPI_DMT_GAS 22 |
| 100 | #define ACPI_DMT_DMAR 23 | 100 | #define ACPI_DMT_ASF 23 |
| 101 | #define ACPI_DMT_MADT 24 | 101 | #define ACPI_DMT_DMAR 24 |
| 102 | #define ACPI_DMT_SRAT 25 | 102 | #define ACPI_DMT_HEST 25 |
| 103 | #define ACPI_DMT_EXIT 26 | 103 | #define ACPI_DMT_HESTNTFY 26 |
| 104 | #define ACPI_DMT_SIG 27 | 104 | #define ACPI_DMT_HESTNTYP 27 |
| 105 | #define ACPI_DMT_MADT 28 | ||
| 106 | #define ACPI_DMT_SRAT 29 | ||
| 107 | #define ACPI_DMT_EXIT 30 | ||
| 108 | #define ACPI_DMT_SIG 31 | ||
| 105 | 109 | ||
| 106 | typedef | 110 | typedef |
| 107 | void (*ACPI_TABLE_HANDLER) (struct acpi_table_header * table); | 111 | void (*acpi_dmtable_handler) (struct acpi_table_header * table); |
| 108 | 112 | ||
| 109 | struct acpi_dmtable_data { | 113 | struct acpi_dmtable_data { |
| 110 | char *signature; | 114 | char *signature; |
| 111 | struct acpi_dmtable_info *table_info; | 115 | struct acpi_dmtable_info *table_info; |
| 112 | ACPI_TABLE_HANDLER table_handler; | 116 | acpi_dmtable_handler table_handler; |
| 113 | char *name; | 117 | char *name; |
| 114 | }; | 118 | }; |
| 115 | 119 | ||
| @@ -149,6 +153,7 @@ extern struct acpi_dmtable_info acpi_dm_table_info_asf3[]; | |||
| 149 | extern struct acpi_dmtable_info acpi_dm_table_info_asf4[]; | 153 | extern struct acpi_dmtable_info acpi_dm_table_info_asf4[]; |
| 150 | extern struct acpi_dmtable_info acpi_dm_table_info_asf_hdr[]; | 154 | extern struct acpi_dmtable_info acpi_dm_table_info_asf_hdr[]; |
| 151 | extern struct acpi_dmtable_info acpi_dm_table_info_boot[]; | 155 | extern struct acpi_dmtable_info acpi_dm_table_info_boot[]; |
| 156 | extern struct acpi_dmtable_info acpi_dm_table_info_bert[]; | ||
| 152 | extern struct acpi_dmtable_info acpi_dm_table_info_cpep[]; | 157 | extern struct acpi_dmtable_info acpi_dm_table_info_cpep[]; |
| 153 | extern struct acpi_dmtable_info acpi_dm_table_info_cpep0[]; | 158 | extern struct acpi_dmtable_info acpi_dm_table_info_cpep0[]; |
| 154 | extern struct acpi_dmtable_info acpi_dm_table_info_dbgp[]; | 159 | extern struct acpi_dmtable_info acpi_dm_table_info_dbgp[]; |
| @@ -158,11 +163,17 @@ extern struct acpi_dmtable_info acpi_dm_table_info_dmar_scope[]; | |||
| 158 | extern struct acpi_dmtable_info acpi_dm_table_info_dmar0[]; | 163 | extern struct acpi_dmtable_info acpi_dm_table_info_dmar0[]; |
| 159 | extern struct acpi_dmtable_info acpi_dm_table_info_dmar1[]; | 164 | extern struct acpi_dmtable_info acpi_dm_table_info_dmar1[]; |
| 160 | extern struct acpi_dmtable_info acpi_dm_table_info_ecdt[]; | 165 | extern struct acpi_dmtable_info acpi_dm_table_info_ecdt[]; |
| 166 | extern struct acpi_dmtable_info acpi_dm_table_info_einj[]; | ||
| 167 | extern struct acpi_dmtable_info acpi_dm_table_info_einj0[]; | ||
| 168 | extern struct acpi_dmtable_info acpi_dm_table_info_erst[]; | ||
| 161 | extern struct acpi_dmtable_info acpi_dm_table_info_facs[]; | 169 | extern struct acpi_dmtable_info acpi_dm_table_info_facs[]; |
| 162 | extern struct acpi_dmtable_info acpi_dm_table_info_fadt1[]; | 170 | extern struct acpi_dmtable_info acpi_dm_table_info_fadt1[]; |
| 163 | extern struct acpi_dmtable_info acpi_dm_table_info_fadt2[]; | 171 | extern struct acpi_dmtable_info acpi_dm_table_info_fadt2[]; |
| 164 | extern struct acpi_dmtable_info acpi_dm_table_info_gas[]; | 172 | extern struct acpi_dmtable_info acpi_dm_table_info_gas[]; |
| 165 | extern struct acpi_dmtable_info acpi_dm_table_info_header[]; | 173 | extern struct acpi_dmtable_info acpi_dm_table_info_header[]; |
| 174 | extern struct acpi_dmtable_info acpi_dm_table_info_hest[]; | ||
| 175 | extern struct acpi_dmtable_info acpi_dm_table_info_hest9[]; | ||
| 176 | extern struct acpi_dmtable_info acpi_dm_table_info_hest_notify[]; | ||
| 166 | extern struct acpi_dmtable_info acpi_dm_table_info_hpet[]; | 177 | extern struct acpi_dmtable_info acpi_dm_table_info_hpet[]; |
| 167 | extern struct acpi_dmtable_info acpi_dm_table_info_madt[]; | 178 | extern struct acpi_dmtable_info acpi_dm_table_info_madt[]; |
| 168 | extern struct acpi_dmtable_info acpi_dm_table_info_madt0[]; | 179 | extern struct acpi_dmtable_info acpi_dm_table_info_madt0[]; |
| @@ -180,6 +191,7 @@ extern struct acpi_dmtable_info acpi_dm_table_info_mcfg0[]; | |||
| 180 | extern struct acpi_dmtable_info acpi_dm_table_info_rsdp1[]; | 191 | extern struct acpi_dmtable_info acpi_dm_table_info_rsdp1[]; |
| 181 | extern struct acpi_dmtable_info acpi_dm_table_info_rsdp2[]; | 192 | extern struct acpi_dmtable_info acpi_dm_table_info_rsdp2[]; |
| 182 | extern struct acpi_dmtable_info acpi_dm_table_info_sbst[]; | 193 | extern struct acpi_dmtable_info acpi_dm_table_info_sbst[]; |
| 194 | extern struct acpi_dmtable_info acpi_dm_table_info_slic[]; | ||
| 183 | extern struct acpi_dmtable_info acpi_dm_table_info_slit[]; | 195 | extern struct acpi_dmtable_info acpi_dm_table_info_slit[]; |
| 184 | extern struct acpi_dmtable_info acpi_dm_table_info_spcr[]; | 196 | extern struct acpi_dmtable_info acpi_dm_table_info_spcr[]; |
| 185 | extern struct acpi_dmtable_info acpi_dm_table_info_spmi[]; | 197 | extern struct acpi_dmtable_info acpi_dm_table_info_spmi[]; |
| @@ -194,7 +206,7 @@ extern struct acpi_dmtable_info acpi_dm_table_info_wdrt[]; | |||
| 194 | */ | 206 | */ |
| 195 | void acpi_dm_dump_data_table(struct acpi_table_header *table); | 207 | void acpi_dm_dump_data_table(struct acpi_table_header *table); |
| 196 | 208 | ||
| 197 | void | 209 | acpi_status |
| 198 | acpi_dm_dump_table(u32 table_length, | 210 | acpi_dm_dump_table(u32 table_length, |
| 199 | u32 table_offset, | 211 | u32 table_offset, |
| 200 | void *table, | 212 | void *table, |
| @@ -213,9 +225,13 @@ void acpi_dm_dump_cpep(struct acpi_table_header *table); | |||
| 213 | 225 | ||
| 214 | void acpi_dm_dump_dmar(struct acpi_table_header *table); | 226 | void acpi_dm_dump_dmar(struct acpi_table_header *table); |
| 215 | 227 | ||
| 228 | void acpi_dm_dump_einj(struct acpi_table_header *table); | ||
| 229 | |||
| 230 | void acpi_dm_dump_erst(struct acpi_table_header *table); | ||
| 231 | |||
| 216 | void acpi_dm_dump_fadt(struct acpi_table_header *table); | 232 | void acpi_dm_dump_fadt(struct acpi_table_header *table); |
| 217 | 233 | ||
| 218 | void acpi_dm_dump_srat(struct acpi_table_header *table); | 234 | void acpi_dm_dump_hest(struct acpi_table_header *table); |
| 219 | 235 | ||
| 220 | void acpi_dm_dump_mcfg(struct acpi_table_header *table); | 236 | void acpi_dm_dump_mcfg(struct acpi_table_header *table); |
| 221 | 237 | ||
| @@ -227,6 +243,8 @@ void acpi_dm_dump_rsdt(struct acpi_table_header *table); | |||
| 227 | 243 | ||
| 228 | void acpi_dm_dump_slit(struct acpi_table_header *table); | 244 | void acpi_dm_dump_slit(struct acpi_table_header *table); |
| 229 | 245 | ||
| 246 | void acpi_dm_dump_srat(struct acpi_table_header *table); | ||
| 247 | |||
| 230 | void acpi_dm_dump_xsdt(struct acpi_table_header *table); | 248 | void acpi_dm_dump_xsdt(struct acpi_table_header *table); |
| 231 | 249 | ||
| 232 | /* | 250 | /* |
diff --git a/include/acpi/acdispat.h b/include/acpi/acdispat.h index 7f690bb0f02f..910f018d92c7 100644 --- a/include/acpi/acdispat.h +++ b/include/acpi/acdispat.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -53,6 +53,9 @@ | |||
| 53 | acpi_status | 53 | acpi_status |
| 54 | acpi_ds_get_buffer_field_arguments(union acpi_operand_object *obj_desc); | 54 | acpi_ds_get_buffer_field_arguments(union acpi_operand_object *obj_desc); |
| 55 | 55 | ||
| 56 | acpi_status | ||
| 57 | acpi_ds_get_bank_field_arguments(union acpi_operand_object *obj_desc); | ||
| 58 | |||
| 56 | acpi_status acpi_ds_get_region_arguments(union acpi_operand_object *rgn_desc); | 59 | acpi_status acpi_ds_get_region_arguments(union acpi_operand_object *rgn_desc); |
| 57 | 60 | ||
| 58 | acpi_status acpi_ds_get_buffer_arguments(union acpi_operand_object *obj_desc); | 61 | acpi_status acpi_ds_get_buffer_arguments(union acpi_operand_object *obj_desc); |
| @@ -68,10 +71,18 @@ acpi_ds_eval_region_operands(struct acpi_walk_state *walk_state, | |||
| 68 | union acpi_parse_object *op); | 71 | union acpi_parse_object *op); |
| 69 | 72 | ||
| 70 | acpi_status | 73 | acpi_status |
| 74 | acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state, | ||
| 75 | union acpi_parse_object *op); | ||
| 76 | |||
| 77 | acpi_status | ||
| 71 | acpi_ds_eval_data_object_operands(struct acpi_walk_state *walk_state, | 78 | acpi_ds_eval_data_object_operands(struct acpi_walk_state *walk_state, |
| 72 | union acpi_parse_object *op, | 79 | union acpi_parse_object *op, |
| 73 | union acpi_operand_object *obj_desc); | 80 | union acpi_operand_object *obj_desc); |
| 74 | 81 | ||
| 82 | acpi_status | ||
| 83 | acpi_ds_eval_bank_field_operands(struct acpi_walk_state *walk_state, | ||
| 84 | union acpi_parse_object *op); | ||
| 85 | |||
| 75 | acpi_status acpi_ds_initialize_region(acpi_handle obj_handle); | 86 | acpi_status acpi_ds_initialize_region(acpi_handle obj_handle); |
| 76 | 87 | ||
| 77 | /* | 88 | /* |
| @@ -269,6 +280,8 @@ acpi_status acpi_ds_resolve_operands(struct acpi_walk_state *walk_state); | |||
| 269 | 280 | ||
| 270 | void acpi_ds_clear_operands(struct acpi_walk_state *walk_state); | 281 | void acpi_ds_clear_operands(struct acpi_walk_state *walk_state); |
| 271 | 282 | ||
| 283 | acpi_status acpi_ds_evaluate_name_path(struct acpi_walk_state *walk_state); | ||
| 284 | |||
| 272 | /* | 285 | /* |
| 273 | * dswscope - Scope Stack manipulation | 286 | * dswscope - Scope Stack manipulation |
| 274 | */ | 287 | */ |
| @@ -303,7 +316,7 @@ acpi_ds_init_aml_walk(struct acpi_walk_state *walk_state, | |||
| 303 | u32 aml_length, | 316 | u32 aml_length, |
| 304 | struct acpi_evaluate_info *info, u8 pass_number); | 317 | struct acpi_evaluate_info *info, u8 pass_number); |
| 305 | 318 | ||
| 306 | acpi_status | 319 | void |
| 307 | acpi_ds_obj_stack_pop_and_delete(u32 pop_count, | 320 | acpi_ds_obj_stack_pop_and_delete(u32 pop_count, |
| 308 | struct acpi_walk_state *walk_state); | 321 | struct acpi_walk_state *walk_state); |
| 309 | 322 | ||
| @@ -316,21 +329,11 @@ void | |||
| 316 | acpi_ds_push_walk_state(struct acpi_walk_state *walk_state, | 329 | acpi_ds_push_walk_state(struct acpi_walk_state *walk_state, |
| 317 | struct acpi_thread_state *thread); | 330 | struct acpi_thread_state *thread); |
| 318 | 331 | ||
| 319 | acpi_status acpi_ds_result_stack_pop(struct acpi_walk_state *walk_state); | ||
| 320 | |||
| 321 | acpi_status acpi_ds_result_stack_push(struct acpi_walk_state *walk_state); | ||
| 322 | |||
| 323 | acpi_status acpi_ds_result_stack_clear(struct acpi_walk_state *walk_state); | 332 | acpi_status acpi_ds_result_stack_clear(struct acpi_walk_state *walk_state); |
| 324 | 333 | ||
| 325 | struct acpi_walk_state *acpi_ds_get_current_walk_state(struct acpi_thread_state | 334 | struct acpi_walk_state *acpi_ds_get_current_walk_state(struct acpi_thread_state |
| 326 | *thread); | 335 | *thread); |
| 327 | 336 | ||
| 328 | #ifdef ACPI_FUTURE_USAGE | ||
| 329 | acpi_status | ||
| 330 | acpi_ds_result_remove(union acpi_operand_object **object, | ||
| 331 | u32 index, struct acpi_walk_state *walk_state); | ||
| 332 | #endif | ||
| 333 | |||
| 334 | acpi_status | 337 | acpi_status |
| 335 | acpi_ds_result_pop(union acpi_operand_object **object, | 338 | acpi_ds_result_pop(union acpi_operand_object **object, |
| 336 | struct acpi_walk_state *walk_state); | 339 | struct acpi_walk_state *walk_state); |
| @@ -339,8 +342,4 @@ acpi_status | |||
| 339 | acpi_ds_result_push(union acpi_operand_object *object, | 342 | acpi_ds_result_push(union acpi_operand_object *object, |
| 340 | struct acpi_walk_state *walk_state); | 343 | struct acpi_walk_state *walk_state); |
| 341 | 344 | ||
| 342 | acpi_status | ||
| 343 | acpi_ds_result_pop_from_bottom(union acpi_operand_object **object, | ||
| 344 | struct acpi_walk_state *walk_state); | ||
| 345 | |||
| 346 | #endif /* _ACDISPAT_H_ */ | 345 | #endif /* _ACDISPAT_H_ */ |
diff --git a/include/acpi/acevents.h b/include/acpi/acevents.h index d23cdf326808..d5d099bf349c 100644 --- a/include/acpi/acevents.h +++ b/include/acpi/acevents.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/acexcep.h b/include/acpi/acexcep.h index b73f18a48785..1f591171bf31 100644 --- a/include/acpi/acexcep.h +++ b/include/acpi/acexcep.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/acglobal.h b/include/acpi/acglobal.h index 47a1fd8f2d8a..74ad971241db 100644 --- a/include/acpi/acglobal.h +++ b/include/acpi/acglobal.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -170,10 +170,14 @@ ACPI_EXTERN u8 acpi_gbl_integer_nybble_width; | |||
| 170 | ACPI_EXTERN struct acpi_mutex_info acpi_gbl_mutex_info[ACPI_NUM_MUTEX]; | 170 | ACPI_EXTERN struct acpi_mutex_info acpi_gbl_mutex_info[ACPI_NUM_MUTEX]; |
| 171 | 171 | ||
| 172 | /* | 172 | /* |
| 173 | * Global lock semaphore works in conjunction with the actual HW global lock | 173 | * Global lock mutex is an actual AML mutex object |
| 174 | * Global lock semaphore works in conjunction with the HW global lock | ||
| 174 | */ | 175 | */ |
| 175 | ACPI_EXTERN acpi_mutex acpi_gbl_global_lock_mutex; | 176 | ACPI_EXTERN union acpi_operand_object *acpi_gbl_global_lock_mutex; |
| 176 | ACPI_EXTERN acpi_semaphore acpi_gbl_global_lock_semaphore; | 177 | ACPI_EXTERN acpi_semaphore acpi_gbl_global_lock_semaphore; |
| 178 | ACPI_EXTERN u16 acpi_gbl_global_lock_handle; | ||
| 179 | ACPI_EXTERN u8 acpi_gbl_global_lock_acquired; | ||
| 180 | ACPI_EXTERN u8 acpi_gbl_global_lock_present; | ||
| 177 | 181 | ||
| 178 | /* | 182 | /* |
| 179 | * Spinlocks are used for interfaces that can be possibly called at | 183 | * Spinlocks are used for interfaces that can be possibly called at |
| @@ -213,27 +217,33 @@ ACPI_EXTERN struct acpi_object_notify_handler acpi_gbl_device_notify; | |||
| 213 | ACPI_EXTERN struct acpi_object_notify_handler acpi_gbl_system_notify; | 217 | ACPI_EXTERN struct acpi_object_notify_handler acpi_gbl_system_notify; |
| 214 | ACPI_EXTERN acpi_exception_handler acpi_gbl_exception_handler; | 218 | ACPI_EXTERN acpi_exception_handler acpi_gbl_exception_handler; |
| 215 | ACPI_EXTERN acpi_init_handler acpi_gbl_init_handler; | 219 | ACPI_EXTERN acpi_init_handler acpi_gbl_init_handler; |
| 220 | ACPI_EXTERN acpi_tbl_handler acpi_gbl_table_handler; | ||
| 221 | ACPI_EXTERN void *acpi_gbl_table_handler_context; | ||
| 216 | ACPI_EXTERN struct acpi_walk_state *acpi_gbl_breakpoint_walk; | 222 | ACPI_EXTERN struct acpi_walk_state *acpi_gbl_breakpoint_walk; |
| 217 | 223 | ||
| 224 | /* Owner ID support */ | ||
| 225 | |||
| 226 | ACPI_EXTERN u32 acpi_gbl_owner_id_mask[ACPI_NUM_OWNERID_MASKS]; | ||
| 227 | ACPI_EXTERN u8 acpi_gbl_last_owner_id_index; | ||
| 228 | ACPI_EXTERN u8 acpi_gbl_next_owner_id_offset; | ||
| 229 | |||
| 218 | /* Misc */ | 230 | /* Misc */ |
| 219 | 231 | ||
| 220 | ACPI_EXTERN u32 acpi_gbl_original_mode; | 232 | ACPI_EXTERN u32 acpi_gbl_original_mode; |
| 221 | ACPI_EXTERN u32 acpi_gbl_rsdp_original_location; | 233 | ACPI_EXTERN u32 acpi_gbl_rsdp_original_location; |
| 222 | ACPI_EXTERN u32 acpi_gbl_ns_lookup_count; | 234 | ACPI_EXTERN u32 acpi_gbl_ns_lookup_count; |
| 223 | ACPI_EXTERN u32 acpi_gbl_ps_find_count; | 235 | ACPI_EXTERN u32 acpi_gbl_ps_find_count; |
| 224 | ACPI_EXTERN u32 acpi_gbl_owner_id_mask[ACPI_NUM_OWNERID_MASKS]; | ||
| 225 | ACPI_EXTERN u16 acpi_gbl_pm1_enable_register_save; | 236 | ACPI_EXTERN u16 acpi_gbl_pm1_enable_register_save; |
| 226 | ACPI_EXTERN u16 acpi_gbl_global_lock_handle; | ||
| 227 | ACPI_EXTERN u8 acpi_gbl_last_owner_id_index; | ||
| 228 | ACPI_EXTERN u8 acpi_gbl_next_owner_id_offset; | ||
| 229 | ACPI_EXTERN u8 acpi_gbl_debugger_configuration; | 237 | ACPI_EXTERN u8 acpi_gbl_debugger_configuration; |
| 230 | ACPI_EXTERN u8 acpi_gbl_global_lock_acquired; | ||
| 231 | ACPI_EXTERN u8 acpi_gbl_step_to_next_call; | 238 | ACPI_EXTERN u8 acpi_gbl_step_to_next_call; |
| 232 | ACPI_EXTERN u8 acpi_gbl_acpi_hardware_present; | 239 | ACPI_EXTERN u8 acpi_gbl_acpi_hardware_present; |
| 233 | ACPI_EXTERN u8 acpi_gbl_global_lock_present; | ||
| 234 | ACPI_EXTERN u8 acpi_gbl_events_initialized; | 240 | ACPI_EXTERN u8 acpi_gbl_events_initialized; |
| 235 | ACPI_EXTERN u8 acpi_gbl_system_awake_and_running; | 241 | ACPI_EXTERN u8 acpi_gbl_system_awake_and_running; |
| 236 | 242 | ||
| 243 | #ifndef DEFINE_ACPI_GLOBALS | ||
| 244 | |||
| 245 | /* Other miscellaneous */ | ||
| 246 | |||
| 237 | extern u8 acpi_gbl_shutdown; | 247 | extern u8 acpi_gbl_shutdown; |
| 238 | extern u32 acpi_gbl_startup_flags; | 248 | extern u32 acpi_gbl_startup_flags; |
| 239 | extern const char *acpi_gbl_sleep_state_names[ACPI_S_STATE_COUNT]; | 249 | extern const char *acpi_gbl_sleep_state_names[ACPI_S_STATE_COUNT]; |
| @@ -241,6 +251,8 @@ extern const char *acpi_gbl_highest_dstate_names[4]; | |||
| 241 | extern const struct acpi_opcode_info acpi_gbl_aml_op_info[AML_NUM_OPCODES]; | 251 | extern const struct acpi_opcode_info acpi_gbl_aml_op_info[AML_NUM_OPCODES]; |
| 242 | extern const char *acpi_gbl_region_types[ACPI_NUM_PREDEFINED_REGIONS]; | 252 | extern const char *acpi_gbl_region_types[ACPI_NUM_PREDEFINED_REGIONS]; |
| 243 | 253 | ||
| 254 | #endif | ||
| 255 | |||
| 244 | /* Exception codes */ | 256 | /* Exception codes */ |
| 245 | 257 | ||
| 246 | extern char const *acpi_gbl_exception_names_env[]; | 258 | extern char const *acpi_gbl_exception_names_env[]; |
| @@ -255,8 +267,6 @@ extern char const *acpi_gbl_exception_names_ctrl[]; | |||
| 255 | * | 267 | * |
| 256 | ****************************************************************************/ | 268 | ****************************************************************************/ |
| 257 | 269 | ||
| 258 | #define NUM_NS_TYPES ACPI_TYPE_INVALID+1 | ||
| 259 | |||
| 260 | #if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY) | 270 | #if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY) |
| 261 | #define NUM_PREDEFINED_NAMES 10 | 271 | #define NUM_PREDEFINED_NAMES 10 |
| 262 | #else | 272 | #else |
| @@ -267,7 +277,7 @@ ACPI_EXTERN struct acpi_namespace_node acpi_gbl_root_node_struct; | |||
| 267 | ACPI_EXTERN struct acpi_namespace_node *acpi_gbl_root_node; | 277 | ACPI_EXTERN struct acpi_namespace_node *acpi_gbl_root_node; |
| 268 | ACPI_EXTERN struct acpi_namespace_node *acpi_gbl_fadt_gpe_device; | 278 | ACPI_EXTERN struct acpi_namespace_node *acpi_gbl_fadt_gpe_device; |
| 269 | 279 | ||
| 270 | extern const u8 acpi_gbl_ns_properties[NUM_NS_TYPES]; | 280 | extern const u8 acpi_gbl_ns_properties[ACPI_NUM_NS_TYPES]; |
| 271 | extern const struct acpi_predefined_names | 281 | extern const struct acpi_predefined_names |
| 272 | acpi_gbl_pre_defined_names[NUM_PREDEFINED_NAMES]; | 282 | acpi_gbl_pre_defined_names[NUM_PREDEFINED_NAMES]; |
| 273 | 283 | ||
| @@ -275,8 +285,8 @@ extern const struct acpi_predefined_names | |||
| 275 | ACPI_EXTERN u32 acpi_gbl_current_node_count; | 285 | ACPI_EXTERN u32 acpi_gbl_current_node_count; |
| 276 | ACPI_EXTERN u32 acpi_gbl_current_node_size; | 286 | ACPI_EXTERN u32 acpi_gbl_current_node_size; |
| 277 | ACPI_EXTERN u32 acpi_gbl_max_concurrent_node_count; | 287 | ACPI_EXTERN u32 acpi_gbl_max_concurrent_node_count; |
| 278 | ACPI_EXTERN acpi_size acpi_gbl_entry_stack_pointer; | 288 | ACPI_EXTERN acpi_size *acpi_gbl_entry_stack_pointer; |
| 279 | ACPI_EXTERN acpi_size acpi_gbl_lowest_stack_pointer; | 289 | ACPI_EXTERN acpi_size *acpi_gbl_lowest_stack_pointer; |
| 280 | ACPI_EXTERN u32 acpi_gbl_deepest_nesting; | 290 | ACPI_EXTERN u32 acpi_gbl_deepest_nesting; |
| 281 | #endif | 291 | #endif |
| 282 | 292 | ||
diff --git a/include/acpi/achware.h b/include/acpi/achware.h index 4053df943453..d4fb9bbc903c 100644 --- a/include/acpi/achware.h +++ b/include/acpi/achware.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/acinterp.h b/include/acpi/acinterp.h index ce7c9d653910..e249ce5d3300 100644 --- a/include/acpi/acinterp.h +++ b/include/acpi/acinterp.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -215,8 +215,6 @@ acpi_ex_create_region(u8 * aml_start, | |||
| 215 | u32 aml_length, | 215 | u32 aml_length, |
| 216 | u8 region_space, struct acpi_walk_state *walk_state); | 216 | u8 region_space, struct acpi_walk_state *walk_state); |
| 217 | 217 | ||
| 218 | acpi_status acpi_ex_create_table_region(struct acpi_walk_state *walk_state); | ||
| 219 | |||
| 220 | acpi_status acpi_ex_create_event(struct acpi_walk_state *walk_state); | 218 | acpi_status acpi_ex_create_event(struct acpi_walk_state *walk_state); |
| 221 | 219 | ||
| 222 | acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state); | 220 | acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state); |
| @@ -248,9 +246,16 @@ acpi_ex_acquire_mutex(union acpi_operand_object *time_desc, | |||
| 248 | struct acpi_walk_state *walk_state); | 246 | struct acpi_walk_state *walk_state); |
| 249 | 247 | ||
| 250 | acpi_status | 248 | acpi_status |
| 249 | acpi_ex_acquire_mutex_object(u16 timeout, | ||
| 250 | union acpi_operand_object *obj_desc, | ||
| 251 | acpi_thread_id thread_id); | ||
| 252 | |||
| 253 | acpi_status | ||
| 251 | acpi_ex_release_mutex(union acpi_operand_object *obj_desc, | 254 | acpi_ex_release_mutex(union acpi_operand_object *obj_desc, |
| 252 | struct acpi_walk_state *walk_state); | 255 | struct acpi_walk_state *walk_state); |
| 253 | 256 | ||
| 257 | acpi_status acpi_ex_release_mutex_object(union acpi_operand_object *obj_desc); | ||
| 258 | |||
| 254 | void acpi_ex_release_all_mutexes(struct acpi_thread_state *thread); | 259 | void acpi_ex_release_all_mutexes(struct acpi_thread_state *thread); |
| 255 | 260 | ||
| 256 | void acpi_ex_unlink_mutex(union acpi_operand_object *obj_desc); | 261 | void acpi_ex_unlink_mutex(union acpi_operand_object *obj_desc); |
| @@ -455,9 +460,9 @@ void acpi_ex_relinquish_interpreter(void); | |||
| 455 | 460 | ||
| 456 | void acpi_ex_truncate_for32bit_table(union acpi_operand_object *obj_desc); | 461 | void acpi_ex_truncate_for32bit_table(union acpi_operand_object *obj_desc); |
| 457 | 462 | ||
| 458 | u8 acpi_ex_acquire_global_lock(u32 rule); | 463 | void acpi_ex_acquire_global_lock(u32 rule); |
| 459 | 464 | ||
| 460 | void acpi_ex_release_global_lock(u8 locked); | 465 | void acpi_ex_release_global_lock(u32 rule); |
| 461 | 466 | ||
| 462 | void acpi_ex_eisa_id_to_string(u32 numeric_id, char *out_string); | 467 | void acpi_ex_eisa_id_to_string(u32 numeric_id, char *out_string); |
| 463 | 468 | ||
diff --git a/include/acpi/aclocal.h b/include/acpi/aclocal.h index 202cd4242ba1..c5cdc32ac2f8 100644 --- a/include/acpi/aclocal.h +++ b/include/acpi/aclocal.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -522,9 +522,8 @@ struct acpi_thread_state { | |||
| 522 | * AML arguments | 522 | * AML arguments |
| 523 | */ | 523 | */ |
| 524 | struct acpi_result_values { | 524 | struct acpi_result_values { |
| 525 | ACPI_STATE_COMMON u8 num_results; | 525 | ACPI_STATE_COMMON |
| 526 | u8 last_insert; | 526 | union acpi_operand_object *obj_desc[ACPI_RESULTS_FRAME_OBJ_NUM]; |
| 527 | union acpi_operand_object *obj_desc[ACPI_OBJ_NUM_OPERANDS]; | ||
| 528 | }; | 527 | }; |
| 529 | 528 | ||
| 530 | typedef | 529 | typedef |
| @@ -604,6 +603,7 @@ union acpi_parse_value { | |||
| 604 | union acpi_parse_object *next; /* Next op */\ | 603 | union acpi_parse_object *next; /* Next op */\ |
| 605 | struct acpi_namespace_node *node; /* For use by interpreter */\ | 604 | struct acpi_namespace_node *node; /* For use by interpreter */\ |
| 606 | union acpi_parse_value value; /* Value or args associated with the opcode */\ | 605 | union acpi_parse_value value; /* Value or args associated with the opcode */\ |
| 606 | u8 arg_list_length; /* Number of elements in the arg list */\ | ||
| 607 | ACPI_DISASM_ONLY_MEMBERS (\ | 607 | ACPI_DISASM_ONLY_MEMBERS (\ |
| 608 | u8 disasm_flags; /* Used during AML disassembly */\ | 608 | u8 disasm_flags; /* Used during AML disassembly */\ |
| 609 | u8 disasm_opcode; /* Subtype used for disassembly */\ | 609 | u8 disasm_opcode; /* Subtype used for disassembly */\ |
| @@ -696,6 +696,8 @@ struct acpi_parse_state { | |||
| 696 | #define ACPI_PARSEOP_NAMED 0x02 | 696 | #define ACPI_PARSEOP_NAMED 0x02 |
| 697 | #define ACPI_PARSEOP_DEFERRED 0x04 | 697 | #define ACPI_PARSEOP_DEFERRED 0x04 |
| 698 | #define ACPI_PARSEOP_BYTELIST 0x08 | 698 | #define ACPI_PARSEOP_BYTELIST 0x08 |
| 699 | #define ACPI_PARSEOP_IN_STACK 0x10 | ||
| 700 | #define ACPI_PARSEOP_TARGET 0x20 | ||
| 699 | #define ACPI_PARSEOP_IN_CACHE 0x80 | 701 | #define ACPI_PARSEOP_IN_CACHE 0x80 |
| 700 | 702 | ||
| 701 | /* Parse object disasm_flags */ | 703 | /* Parse object disasm_flags */ |
diff --git a/include/acpi/acmacros.h b/include/acpi/acmacros.h index 99d171c87c84..fb41a3b802fc 100644 --- a/include/acpi/acmacros.h +++ b/include/acpi/acmacros.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -61,30 +61,6 @@ | |||
| 61 | 61 | ||
| 62 | #define ACPI_ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) | 62 | #define ACPI_ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) |
| 63 | 63 | ||
| 64 | #ifdef ACPI_NO_INTEGER64_SUPPORT | ||
| 65 | /* | ||
| 66 | * acpi_integer is 32-bits, no 64-bit support on this platform | ||
| 67 | */ | ||
| 68 | #define ACPI_LODWORD(l) ((u32)(l)) | ||
| 69 | #define ACPI_HIDWORD(l) ((u32)(0)) | ||
| 70 | |||
| 71 | #else | ||
| 72 | |||
| 73 | /* | ||
| 74 | * Full 64-bit address/integer on both 32-bit and 64-bit platforms | ||
| 75 | */ | ||
| 76 | #define ACPI_LODWORD(l) ((u32)(u64)(l)) | ||
| 77 | #define ACPI_HIDWORD(l) ((u32)(((*(struct uint64_struct *)(void *)(&l))).hi)) | ||
| 78 | #endif | ||
| 79 | |||
| 80 | /* | ||
| 81 | * printf() format helpers | ||
| 82 | */ | ||
| 83 | |||
| 84 | /* Split 64-bit integer into two 32-bit values. Use with %8.8_x%8.8_x */ | ||
| 85 | |||
| 86 | #define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i),ACPI_LODWORD(i) | ||
| 87 | |||
| 88 | /* | 64 | /* |
| 89 | * Extract data using a pointer. Any more than a byte and we | 65 | * Extract data using a pointer. Any more than a byte and we |
| 90 | * get into potential aligment issues -- see the STORE macros below. | 66 | * get into potential aligment issues -- see the STORE macros below. |
| @@ -122,6 +98,31 @@ | |||
| 122 | #endif | 98 | #endif |
| 123 | 99 | ||
| 124 | /* | 100 | /* |
| 101 | * Full 64-bit integer must be available on both 32-bit and 64-bit platforms | ||
| 102 | */ | ||
| 103 | struct acpi_integer_overlay { | ||
| 104 | u32 lo_dword; | ||
| 105 | u32 hi_dword; | ||
| 106 | }; | ||
| 107 | |||
| 108 | #define ACPI_LODWORD(integer) (ACPI_CAST_PTR (struct acpi_integer_overlay, &integer)->lo_dword) | ||
| 109 | #define ACPI_HIDWORD(integer) (ACPI_CAST_PTR (struct acpi_integer_overlay, &integer)->hi_dword) | ||
| 110 | |||
| 111 | /* | ||
| 112 | * printf() format helpers | ||
| 113 | */ | ||
| 114 | |||
| 115 | /* Split 64-bit integer into two 32-bit values. Use with %8.8_x%8.8_x */ | ||
| 116 | |||
| 117 | #define ACPI_FORMAT_UINT64(i) ACPI_HIDWORD(i),ACPI_LODWORD(i) | ||
| 118 | |||
| 119 | #if ACPI_MACHINE_WIDTH == 64 | ||
| 120 | #define ACPI_FORMAT_NATIVE_UINT(i) ACPI_FORMAT_UINT64(i) | ||
| 121 | #else | ||
| 122 | #define ACPI_FORMAT_NATIVE_UINT(i) 0, (i) | ||
| 123 | #endif | ||
| 124 | |||
| 125 | /* | ||
| 125 | * Macros for moving data around to/from buffers that are possibly unaligned. | 126 | * Macros for moving data around to/from buffers that are possibly unaligned. |
| 126 | * If the hardware supports the transfer of unaligned data, just do the store. | 127 | * If the hardware supports the transfer of unaligned data, just do the store. |
| 127 | * Otherwise, we have to move one byte at a time. | 128 | * Otherwise, we have to move one byte at a time. |
| @@ -137,29 +138,29 @@ | |||
| 137 | 138 | ||
| 138 | /* These macros reverse the bytes during the move, converting little-endian to big endian */ | 139 | /* These macros reverse the bytes during the move, converting little-endian to big endian */ |
| 139 | 140 | ||
| 140 | /* Big Endian <== Little Endian */ | 141 | /* Big Endian <== Little Endian */ |
| 141 | /* Hi...Lo Lo...Hi */ | 142 | /* Hi...Lo Lo...Hi */ |
| 142 | /* 16-bit source, 16/32/64 destination */ | 143 | /* 16-bit source, 16/32/64 destination */ |
| 143 | 144 | ||
| 144 | #define ACPI_MOVE_16_TO_16(d,s) {(( u8 *)(void *)(d))[0] = ((u8 *)(void *)(s))[1];\ | 145 | #define ACPI_MOVE_16_TO_16(d,s) {(( u8 *)(void *)(d))[0] = ((u8 *)(void *)(s))[1];\ |
| 145 | (( u8 *)(void *)(d))[1] = ((u8 *)(void *)(s))[0];} | 146 | (( u8 *)(void *)(d))[1] = ((u8 *)(void *)(s))[0];} |
| 146 | 147 | ||
| 147 | #define ACPI_MOVE_16_TO_32(d,s) {(*(u32 *)(void *)(d))=0;\ | 148 | #define ACPI_MOVE_16_TO_32(d,s) {(*(u32 *)(void *)(d))=0;\ |
| 148 | ((u8 *)(void *)(d))[2] = ((u8 *)(void *)(s))[1];\ | 149 | ((u8 *)(void *)(d))[2] = ((u8 *)(void *)(s))[1];\ |
| 149 | ((u8 *)(void *)(d))[3] = ((u8 *)(void *)(s))[0];} | 150 | ((u8 *)(void *)(d))[3] = ((u8 *)(void *)(s))[0];} |
| 150 | 151 | ||
| 151 | #define ACPI_MOVE_16_TO_64(d,s) {(*(u64 *)(void *)(d))=0;\ | 152 | #define ACPI_MOVE_16_TO_64(d,s) {(*(u64 *)(void *)(d))=0;\ |
| 152 | ((u8 *)(void *)(d))[6] = ((u8 *)(void *)(s))[1];\ | 153 | ((u8 *)(void *)(d))[6] = ((u8 *)(void *)(s))[1];\ |
| 153 | ((u8 *)(void *)(d))[7] = ((u8 *)(void *)(s))[0];} | 154 | ((u8 *)(void *)(d))[7] = ((u8 *)(void *)(s))[0];} |
| 154 | 155 | ||
| 155 | /* 32-bit source, 16/32/64 destination */ | 156 | /* 32-bit source, 16/32/64 destination */ |
| 156 | 157 | ||
| 157 | #define ACPI_MOVE_32_TO_16(d,s) ACPI_MOVE_16_TO_16(d,s) /* Truncate to 16 */ | 158 | #define ACPI_MOVE_32_TO_16(d,s) ACPI_MOVE_16_TO_16(d,s) /* Truncate to 16 */ |
| 158 | 159 | ||
| 159 | #define ACPI_MOVE_32_TO_32(d,s) {(( u8 *)(void *)(d))[0] = ((u8 *)(void *)(s))[3];\ | 160 | #define ACPI_MOVE_32_TO_32(d,s) {(( u8 *)(void *)(d))[0] = ((u8 *)(void *)(s))[3];\ |
| 160 | (( u8 *)(void *)(d))[1] = ((u8 *)(void *)(s))[2];\ | 161 | (( u8 *)(void *)(d))[1] = ((u8 *)(void *)(s))[2];\ |
| 161 | (( u8 *)(void *)(d))[2] = ((u8 *)(void *)(s))[1];\ | 162 | (( u8 *)(void *)(d))[2] = ((u8 *)(void *)(s))[1];\ |
| 162 | (( u8 *)(void *)(d))[3] = ((u8 *)(void *)(s))[0];} | 163 | (( u8 *)(void *)(d))[3] = ((u8 *)(void *)(s))[0];} |
| 163 | 164 | ||
| 164 | #define ACPI_MOVE_32_TO_64(d,s) {(*(u64 *)(void *)(d))=0;\ | 165 | #define ACPI_MOVE_32_TO_64(d,s) {(*(u64 *)(void *)(d))=0;\ |
| 165 | ((u8 *)(void *)(d))[4] = ((u8 *)(void *)(s))[3];\ | 166 | ((u8 *)(void *)(d))[4] = ((u8 *)(void *)(s))[3];\ |
diff --git a/include/acpi/acnames.h b/include/acpi/acnames.h index 34bfae8a05f3..c1343a9265fa 100644 --- a/include/acpi/acnames.h +++ b/include/acpi/acnames.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/acnamesp.h b/include/acpi/acnamesp.h index 5ef38a6c8a61..713b30903fe5 100644 --- a/include/acpi/acnamesp.h +++ b/include/acpi/acnamesp.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -113,7 +113,8 @@ acpi_ns_parse_table(acpi_native_uint table_index, | |||
| 113 | 113 | ||
| 114 | acpi_status | 114 | acpi_status |
| 115 | acpi_ns_one_complete_parse(acpi_native_uint pass_number, | 115 | acpi_ns_one_complete_parse(acpi_native_uint pass_number, |
| 116 | acpi_native_uint table_index); | 116 | acpi_native_uint table_index, |
| 117 | struct acpi_namespace_node *start_node); | ||
| 117 | 118 | ||
| 118 | /* | 119 | /* |
| 119 | * nsaccess - Top-level namespace access | 120 | * nsaccess - Top-level namespace access |
diff --git a/include/acpi/acobject.h b/include/acpi/acobject.h index 7e1211a8b8fa..e9657dac69b7 100644 --- a/include/acpi/acobject.h +++ b/include/acpi/acobject.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | *****************************************************************************/ | 6 | *****************************************************************************/ |
| 7 | 7 | ||
| 8 | /* | 8 | /* |
| 9 | * Copyright (C) 2000 - 2007, R. Byron Moore | 9 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -155,8 +155,9 @@ struct acpi_object_event { | |||
| 155 | struct acpi_object_mutex { | 155 | struct acpi_object_mutex { |
| 156 | ACPI_OBJECT_COMMON_HEADER u8 sync_level; /* 0-15, specified in Mutex() call */ | 156 | ACPI_OBJECT_COMMON_HEADER u8 sync_level; /* 0-15, specified in Mutex() call */ |
| 157 | u16 acquisition_depth; /* Allow multiple Acquires, same thread */ | 157 | u16 acquisition_depth; /* Allow multiple Acquires, same thread */ |
| 158 | struct acpi_thread_state *owner_thread; /* Current owner of the mutex */ | ||
| 159 | acpi_mutex os_mutex; /* Actual OS synchronization object */ | 158 | acpi_mutex os_mutex; /* Actual OS synchronization object */ |
| 159 | acpi_thread_id thread_id; /* Current owner of the mutex */ | ||
| 160 | struct acpi_thread_state *owner_thread; /* Current owner of the mutex */ | ||
| 160 | union acpi_operand_object *prev; /* Link for list of acquired mutexes */ | 161 | union acpi_operand_object *prev; /* Link for list of acquired mutexes */ |
| 161 | union acpi_operand_object *next; /* Link for list of acquired mutexes */ | 162 | union acpi_operand_object *next; /* Link for list of acquired mutexes */ |
| 162 | struct acpi_namespace_node *node; /* Containing namespace node */ | 163 | struct acpi_namespace_node *node; /* Containing namespace node */ |
diff --git a/include/acpi/acopcode.h b/include/acpi/acopcode.h index e6f76a280a94..dfdf63327885 100644 --- a/include/acpi/acopcode.h +++ b/include/acpi/acopcode.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -233,7 +233,7 @@ | |||
| 233 | #define ARGI_CREATE_WORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) | 233 | #define ARGI_CREATE_WORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) |
| 234 | #define ARGI_DATA_REGION_OP ARGI_LIST3 (ARGI_STRING, ARGI_STRING, ARGI_STRING) | 234 | #define ARGI_DATA_REGION_OP ARGI_LIST3 (ARGI_STRING, ARGI_STRING, ARGI_STRING) |
| 235 | #define ARGI_DEBUG_OP ARG_NONE | 235 | #define ARGI_DEBUG_OP ARG_NONE |
| 236 | #define ARGI_DECREMENT_OP ARGI_LIST1 (ARGI_INTEGER_REF) | 236 | #define ARGI_DECREMENT_OP ARGI_LIST1 (ARGI_TARGETREF) |
| 237 | #define ARGI_DEREF_OF_OP ARGI_LIST1 (ARGI_REF_OR_STRING) | 237 | #define ARGI_DEREF_OF_OP ARGI_LIST1 (ARGI_REF_OR_STRING) |
| 238 | #define ARGI_DEVICE_OP ARGI_INVALID_OPCODE | 238 | #define ARGI_DEVICE_OP ARGI_INVALID_OPCODE |
| 239 | #define ARGI_DIVIDE_OP ARGI_LIST4 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF, ARGI_TARGETREF) | 239 | #define ARGI_DIVIDE_OP ARGI_LIST4 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF, ARGI_TARGETREF) |
| @@ -246,7 +246,7 @@ | |||
| 246 | #define ARGI_FIND_SET_RIGHT_BIT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) | 246 | #define ARGI_FIND_SET_RIGHT_BIT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) |
| 247 | #define ARGI_FROM_BCD_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_FIXED_TARGET) | 247 | #define ARGI_FROM_BCD_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_FIXED_TARGET) |
| 248 | #define ARGI_IF_OP ARGI_INVALID_OPCODE | 248 | #define ARGI_IF_OP ARGI_INVALID_OPCODE |
| 249 | #define ARGI_INCREMENT_OP ARGI_LIST1 (ARGI_INTEGER_REF) | 249 | #define ARGI_INCREMENT_OP ARGI_LIST1 (ARGI_TARGETREF) |
| 250 | #define ARGI_INDEX_FIELD_OP ARGI_INVALID_OPCODE | 250 | #define ARGI_INDEX_FIELD_OP ARGI_INVALID_OPCODE |
| 251 | #define ARGI_INDEX_OP ARGI_LIST3 (ARGI_COMPLEXOBJ, ARGI_INTEGER, ARGI_TARGETREF) | 251 | #define ARGI_INDEX_OP ARGI_LIST3 (ARGI_COMPLEXOBJ, ARGI_INTEGER, ARGI_TARGETREF) |
| 252 | #define ARGI_LAND_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) | 252 | #define ARGI_LAND_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) |
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h index c090a8b0bc99..e17873defcec 100644 --- a/include/acpi/acoutput.h +++ b/include/acpi/acoutput.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/acparser.h b/include/acpi/acparser.h index 85c358e21014..23ee0fbf5619 100644 --- a/include/acpi/acparser.h +++ b/include/acpi/acparser.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -109,6 +109,8 @@ const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode); | |||
| 109 | 109 | ||
| 110 | char *acpi_ps_get_opcode_name(u16 opcode); | 110 | char *acpi_ps_get_opcode_name(u16 opcode); |
| 111 | 111 | ||
| 112 | u8 acpi_ps_get_argument_count(u32 op_type); | ||
| 113 | |||
| 112 | /* | 114 | /* |
| 113 | * psparse - top level parsing routines | 115 | * psparse - top level parsing routines |
| 114 | */ | 116 | */ |
diff --git a/include/acpi/acpi.h b/include/acpi/acpi.h index 2e5f00d3ea0d..c515ef6cc89e 100644 --- a/include/acpi/acpi.h +++ b/include/acpi/acpi.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index 4839f2af94c3..d4a560d2deb6 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | *****************************************************************************/ | 8 | *****************************************************************************/ |
| 9 | 9 | ||
| 10 | /* | 10 | /* |
| 11 | * Copyright (C) 2000 - 2007, R. Byron Moore | 11 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 12 | * All rights reserved. | 12 | * All rights reserved. |
| 13 | * | 13 | * |
| 14 | * Redistribution and use in source and binary forms, with or without | 14 | * Redistribution and use in source and binary forms, with or without |
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index d970f7f99549..2c3806e6546f 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | *****************************************************************************/ | 6 | *****************************************************************************/ |
| 7 | 7 | ||
| 8 | /* | 8 | /* |
| 9 | * Copyright (C) 2000 - 2007, R. Byron Moore | 9 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -119,6 +119,11 @@ acpi_status | |||
| 119 | acpi_get_table_by_index(acpi_native_uint table_index, | 119 | acpi_get_table_by_index(acpi_native_uint table_index, |
| 120 | struct acpi_table_header **out_table); | 120 | struct acpi_table_header **out_table); |
| 121 | 121 | ||
| 122 | acpi_status | ||
| 123 | acpi_install_table_handler(acpi_tbl_handler handler, void *context); | ||
| 124 | |||
| 125 | acpi_status acpi_remove_table_handler(acpi_tbl_handler handler); | ||
| 126 | |||
| 122 | /* | 127 | /* |
| 123 | * Namespace and name interfaces | 128 | * Namespace and name interfaces |
| 124 | */ | 129 | */ |
diff --git a/include/acpi/acresrc.h b/include/acpi/acresrc.h index 9486ab266a5e..eef5bd7a59fa 100644 --- a/include/acpi/acresrc.h +++ b/include/acpi/acresrc.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -94,6 +94,7 @@ typedef const struct acpi_rsconvert_info { | |||
| 94 | #define ACPI_RSC_BITMASK16 18 | 94 | #define ACPI_RSC_BITMASK16 18 |
| 95 | #define ACPI_RSC_EXIT_NE 19 | 95 | #define ACPI_RSC_EXIT_NE 19 |
| 96 | #define ACPI_RSC_EXIT_LE 20 | 96 | #define ACPI_RSC_EXIT_LE 20 |
| 97 | #define ACPI_RSC_EXIT_EQ 21 | ||
| 97 | 98 | ||
| 98 | /* Resource Conversion sub-opcodes */ | 99 | /* Resource Conversion sub-opcodes */ |
| 99 | 100 | ||
diff --git a/include/acpi/acstruct.h b/include/acpi/acstruct.h index 88482655407f..a907c67d651e 100644 --- a/include/acpi/acstruct.h +++ b/include/acpi/acstruct.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -80,12 +80,15 @@ struct acpi_walk_state { | |||
| 80 | u16 opcode; /* Current AML opcode */ | 80 | u16 opcode; /* Current AML opcode */ |
| 81 | u8 next_op_info; /* Info about next_op */ | 81 | u8 next_op_info; /* Info about next_op */ |
| 82 | u8 num_operands; /* Stack pointer for Operands[] array */ | 82 | u8 num_operands; /* Stack pointer for Operands[] array */ |
| 83 | u8 operand_index; /* Index into operand stack, to be used by acpi_ds_obj_stack_push */ | ||
| 83 | acpi_owner_id owner_id; /* Owner of objects created during the walk */ | 84 | acpi_owner_id owner_id; /* Owner of objects created during the walk */ |
| 84 | u8 last_predicate; /* Result of last predicate */ | 85 | u8 last_predicate; /* Result of last predicate */ |
| 85 | u8 current_result; | 86 | u8 current_result; |
| 86 | u8 return_used; | 87 | u8 return_used; |
| 87 | u8 scope_depth; | 88 | u8 scope_depth; |
| 88 | u8 pass_number; /* Parse pass during table load */ | 89 | u8 pass_number; /* Parse pass during table load */ |
| 90 | u8 result_size; /* Total elements for the result stack */ | ||
| 91 | u8 result_count; /* Current number of occupied elements of result stack */ | ||
| 89 | u32 aml_offset; | 92 | u32 aml_offset; |
| 90 | u32 arg_types; | 93 | u32 arg_types; |
| 91 | u32 method_breakpoint; /* For single stepping */ | 94 | u32 method_breakpoint; /* For single stepping */ |
diff --git a/include/acpi/actables.h b/include/acpi/actables.h index 2b9f46f9da4d..4b36a55b0b3b 100644 --- a/include/acpi/actables.h +++ b/include/acpi/actables.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/actbl.h b/include/acpi/actbl.h index 955adfb8d64c..1ebbe883f786 100644 --- a/include/acpi/actbl.h +++ b/include/acpi/actbl.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/actbl1.h b/include/acpi/actbl1.h index a1b1b2ee3e51..9af239bd1153 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -58,20 +58,28 @@ | |||
| 58 | * it more difficult to inadvertently type in the wrong signature. | 58 | * it more difficult to inadvertently type in the wrong signature. |
| 59 | */ | 59 | */ |
| 60 | #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */ | 60 | #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */ |
| 61 | #define ACPI_SIG_BERT "BERT" /* Boot Error Record Table */ | ||
| 61 | #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */ | 62 | #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */ |
| 62 | #define ACPI_SIG_CPEP "CPEP" /* Corrected Platform Error Polling table */ | 63 | #define ACPI_SIG_CPEP "CPEP" /* Corrected Platform Error Polling table */ |
| 63 | #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */ | 64 | #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */ |
| 64 | #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */ | 65 | #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */ |
| 65 | #define ACPI_SIG_ECDT "ECDT" /* Embedded Controller Boot Resources Table */ | 66 | #define ACPI_SIG_ECDT "ECDT" /* Embedded Controller Boot Resources Table */ |
| 67 | #define ACPI_SIG_EINJ "EINJ" /* Error Injection table */ | ||
| 68 | #define ACPI_SIG_ERST "ERST" /* Error Record Serialization Table */ | ||
| 69 | #define ACPI_SIG_HEST "HEST" /* Hardware Error Source Table */ | ||
| 66 | #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */ | 70 | #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */ |
| 71 | #define ACPI_SIG_IBFT "IBFT" /* i_sCSI Boot Firmware Table */ | ||
| 67 | #define ACPI_SIG_MADT "APIC" /* Multiple APIC Description Table */ | 72 | #define ACPI_SIG_MADT "APIC" /* Multiple APIC Description Table */ |
| 68 | #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */ | 73 | #define ACPI_SIG_MCFG "MCFG" /* PCI Memory Mapped Configuration table */ |
| 69 | #define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */ | 74 | #define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */ |
| 75 | #define ACPI_SIG_SLIC "SLIC" /* Software Licensing Description Table */ | ||
| 70 | #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */ | 76 | #define ACPI_SIG_SLIT "SLIT" /* System Locality Distance Information Table */ |
| 71 | #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */ | 77 | #define ACPI_SIG_SPCR "SPCR" /* Serial Port Console Redirection table */ |
| 72 | #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */ | 78 | #define ACPI_SIG_SPMI "SPMI" /* Server Platform Management Interface table */ |
| 73 | #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */ | 79 | #define ACPI_SIG_SRAT "SRAT" /* System Resource Affinity Table */ |
| 74 | #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */ | 80 | #define ACPI_SIG_TCPA "TCPA" /* Trusted Computing Platform Alliance table */ |
| 81 | #define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */ | ||
| 82 | #define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */ | ||
| 75 | #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */ | 83 | #define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */ |
| 76 | 84 | ||
| 77 | /* | 85 | /* |
| @@ -86,13 +94,25 @@ | |||
| 86 | * portable, so do not use any other bitfield types. | 94 | * portable, so do not use any other bitfield types. |
| 87 | */ | 95 | */ |
| 88 | 96 | ||
| 89 | /* Common Sub-table header (used in MADT, SRAT, etc.) */ | 97 | /* Common Subtable header (used in MADT, SRAT, etc.) */ |
| 90 | 98 | ||
| 91 | struct acpi_subtable_header { | 99 | struct acpi_subtable_header { |
| 92 | u8 type; | 100 | u8 type; |
| 93 | u8 length; | 101 | u8 length; |
| 94 | }; | 102 | }; |
| 95 | 103 | ||
| 104 | /* Common Subtable header for WHEA tables (EINJ, ERST, WDAT) */ | ||
| 105 | |||
| 106 | struct acpi_whea_header { | ||
| 107 | u8 action; | ||
| 108 | u8 instruction; | ||
| 109 | u8 flags; | ||
| 110 | u8 reserved; | ||
| 111 | struct acpi_generic_address register_region; | ||
| 112 | u64 value; /* Value used with Read/Write register */ | ||
| 113 | u64 mask; /* Bitmask required for this register instruction */ | ||
| 114 | }; | ||
| 115 | |||
| 96 | /******************************************************************************* | 116 | /******************************************************************************* |
| 97 | * | 117 | * |
| 98 | * ASF - Alert Standard Format table (Signature "ASF!") | 118 | * ASF - Alert Standard Format table (Signature "ASF!") |
| @@ -204,6 +224,35 @@ struct acpi_asf_address { | |||
| 204 | 224 | ||
| 205 | /******************************************************************************* | 225 | /******************************************************************************* |
| 206 | * | 226 | * |
| 227 | * BERT - Boot Error Record Table | ||
| 228 | * | ||
| 229 | ******************************************************************************/ | ||
| 230 | |||
| 231 | struct acpi_table_bert { | ||
| 232 | struct acpi_table_header header; /* Common ACPI table header */ | ||
| 233 | u32 region_length; /* Length of the boot error region */ | ||
| 234 | u64 address; /* Physical addresss of the error region */ | ||
| 235 | }; | ||
| 236 | |||
| 237 | /* Boot Error Region */ | ||
| 238 | |||
| 239 | struct acpi_bert_region { | ||
| 240 | u32 block_status; | ||
| 241 | u32 raw_data_offset; | ||
| 242 | u32 raw_data_length; | ||
| 243 | u32 data_length; | ||
| 244 | u32 error_severity; | ||
| 245 | }; | ||
| 246 | |||
| 247 | /* block_status Flags */ | ||
| 248 | |||
| 249 | #define ACPI_BERT_UNCORRECTABLE (1) | ||
| 250 | #define ACPI_BERT_CORRECTABLE (2) | ||
| 251 | #define ACPI_BERT_MULTIPLE_UNCORRECTABLE (4) | ||
| 252 | #define ACPI_BERT_MULTIPLE_CORRECTABLE (8) | ||
| 253 | |||
| 254 | /******************************************************************************* | ||
| 255 | * | ||
| 207 | * BOOT - Simple Boot Flag Table | 256 | * BOOT - Simple Boot Flag Table |
| 208 | * | 257 | * |
| 209 | ******************************************************************************/ | 258 | ******************************************************************************/ |
| @@ -350,6 +399,352 @@ struct acpi_table_ecdt { | |||
| 350 | 399 | ||
| 351 | /******************************************************************************* | 400 | /******************************************************************************* |
| 352 | * | 401 | * |
| 402 | * EINJ - Error Injection Table | ||
| 403 | * | ||
| 404 | ******************************************************************************/ | ||
| 405 | |||
| 406 | struct acpi_table_einj { | ||
| 407 | struct acpi_table_header header; /* Common ACPI table header */ | ||
| 408 | u32 header_length; | ||
| 409 | u32 reserved; | ||
| 410 | u32 entries; | ||
| 411 | }; | ||
| 412 | |||
| 413 | /* EINJ Injection Instruction Entries (actions) */ | ||
| 414 | |||
| 415 | struct acpi_einj_entry { | ||
| 416 | struct acpi_whea_header whea_header; /* Common header for WHEA tables */ | ||
| 417 | }; | ||
| 418 | |||
| 419 | /* Values for Action field above */ | ||
| 420 | |||
| 421 | enum acpi_einj_actions { | ||
| 422 | ACPI_EINJ_BEGIN_OPERATION = 0, | ||
| 423 | ACPI_EINJ_GET_TRIGGER_TABLE = 1, | ||
| 424 | ACPI_EINJ_SET_ERROR_TYPE = 2, | ||
| 425 | ACPI_EINJ_GET_ERROR_TYPE = 3, | ||
| 426 | ACPI_EINJ_END_OPERATION = 4, | ||
| 427 | ACPI_EINJ_EXECUTE_OPERATION = 5, | ||
| 428 | ACPI_EINJ_CHECK_BUSY_STATUS = 6, | ||
| 429 | ACPI_EINJ_GET_COMMAND_STATUS = 7, | ||
| 430 | ACPI_EINJ_ACTION_RESERVED = 8, /* 8 and greater are reserved */ | ||
| 431 | ACPI_EINJ_TRIGGER_ERROR = 0xFF /* Except for this value */ | ||
| 432 | }; | ||
| 433 | |||
| 434 | /* Values for Instruction field above */ | ||
| 435 | |||
| 436 | enum acpi_einj_instructions { | ||
| 437 | ACPI_EINJ_READ_REGISTER = 0, | ||
| 438 | ACPI_EINJ_READ_REGISTER_VALUE = 1, | ||
| 439 | ACPI_EINJ_WRITE_REGISTER = 2, | ||
| 440 | ACPI_EINJ_WRITE_REGISTER_VALUE = 3, | ||
| 441 | ACPI_EINJ_NOOP = 4, | ||
| 442 | ACPI_EINJ_INSTRUCTION_RESERVED = 5 /* 5 and greater are reserved */ | ||
| 443 | }; | ||
| 444 | |||
| 445 | /* EINJ Trigger Error Action Table */ | ||
| 446 | |||
| 447 | struct acpi_einj_trigger { | ||
| 448 | u32 header_size; | ||
| 449 | u32 revision; | ||
| 450 | u32 table_size; | ||
| 451 | u32 entry_count; | ||
| 452 | }; | ||
| 453 | |||
| 454 | /******************************************************************************* | ||
| 455 | * | ||
| 456 | * ERST - Error Record Serialization Table | ||
| 457 | * | ||
| 458 | ******************************************************************************/ | ||
| 459 | |||
| 460 | struct acpi_table_erst { | ||
| 461 | struct acpi_table_header header; /* Common ACPI table header */ | ||
| 462 | u32 header_length; | ||
| 463 | u32 reserved; | ||
| 464 | u32 entries; | ||
| 465 | }; | ||
| 466 | |||
| 467 | /* ERST Serialization Entries (actions) */ | ||
| 468 | |||
| 469 | struct acpi_erst_entry { | ||
| 470 | struct acpi_whea_header whea_header; /* Common header for WHEA tables */ | ||
| 471 | }; | ||
| 472 | |||
| 473 | /* Values for Action field above */ | ||
| 474 | |||
| 475 | enum acpi_erst_actions { | ||
| 476 | ACPI_ERST_BEGIN_WRITE_OPERATION = 0, | ||
| 477 | ACPI_ERST_BEGIN_READ_OPERATION = 1, | ||
| 478 | ACPI_ERST_BETGIN_CLEAR_OPERATION = 2, | ||
| 479 | ACPI_ERST_END_OPERATION = 3, | ||
| 480 | ACPI_ERST_SET_RECORD_OFFSET = 4, | ||
| 481 | ACPI_ERST_EXECUTE_OPERATION = 5, | ||
| 482 | ACPI_ERST_CHECK_BUSY_STATUS = 6, | ||
| 483 | ACPI_ERST_GET_COMMAND_STATUS = 7, | ||
| 484 | ACPI_ERST_GET_RECORD_IDENTIFIER = 8, | ||
| 485 | ACPI_ERST_SET_RECORD_IDENTIFIER = 9, | ||
| 486 | ACPI_ERST_GET_RECORD_COUNT = 10, | ||
| 487 | ACPI_ERST_BEGIN_DUMMY_WRIITE = 11, | ||
| 488 | ACPI_ERST_NOT_USED = 12, | ||
| 489 | ACPI_ERST_GET_ERROR_RANGE = 13, | ||
| 490 | ACPI_ERST_GET_ERROR_LENGTH = 14, | ||
| 491 | ACPI_ERST_GET_ERROR_ATTRIBUTES = 15, | ||
| 492 | ACPI_ERST_ACTION_RESERVED = 16 /* 16 and greater are reserved */ | ||
| 493 | }; | ||
| 494 | |||
| 495 | /* Values for Instruction field above */ | ||
| 496 | |||
| 497 | enum acpi_erst_instructions { | ||
| 498 | ACPI_ERST_READ_REGISTER = 0, | ||
| 499 | ACPI_ERST_READ_REGISTER_VALUE = 1, | ||
| 500 | ACPI_ERST_WRITE_REGISTER = 2, | ||
| 501 | ACPI_ERST_WRITE_REGISTER_VALUE = 3, | ||
| 502 | ACPI_ERST_NOOP = 4, | ||
| 503 | ACPI_ERST_LOAD_VAR1 = 5, | ||
| 504 | ACPI_ERST_LOAD_VAR2 = 6, | ||
| 505 | ACPI_ERST_STORE_VAR1 = 7, | ||
| 506 | ACPI_ERST_ADD = 8, | ||
| 507 | ACPI_ERST_SUBTRACT = 9, | ||
| 508 | ACPI_ERST_ADD_VALUE = 10, | ||
| 509 | ACPI_ERST_SUBTRACT_VALUE = 11, | ||
| 510 | ACPI_ERST_STALL = 12, | ||
| 511 | ACPI_ERST_STALL_WHILE_TRUE = 13, | ||
| 512 | ACPI_ERST_SKIP_NEXT_IF_TRUE = 14, | ||
| 513 | ACPI_ERST_GOTO = 15, | ||
| 514 | ACPI_ERST_SET_SRC_ADDRESS_BASE = 16, | ||
| 515 | ACPI_ERST_SET_DST_ADDRESS_BASE = 17, | ||
| 516 | ACPI_ERST_MOVE_DATA = 18, | ||
| 517 | ACPI_ERST_INSTRUCTION_RESERVED = 19 /* 19 and greater are reserved */ | ||
| 518 | }; | ||
| 519 | |||
| 520 | /******************************************************************************* | ||
| 521 | * | ||
| 522 | * HEST - Hardware Error Source Table | ||
| 523 | * | ||
| 524 | ******************************************************************************/ | ||
| 525 | |||
| 526 | struct acpi_table_hest { | ||
| 527 | struct acpi_table_header header; /* Common ACPI table header */ | ||
| 528 | u32 error_source_count; | ||
| 529 | }; | ||
| 530 | |||
| 531 | /* HEST subtable header */ | ||
| 532 | |||
| 533 | struct acpi_hest_header { | ||
| 534 | u16 type; | ||
| 535 | }; | ||
| 536 | |||
| 537 | /* Values for Type field above for subtables */ | ||
| 538 | |||
| 539 | enum acpi_hest_types { | ||
| 540 | ACPI_HEST_TYPE_XPF_MACHINE_CHECK = 0, | ||
| 541 | ACPI_HEST_TYPE_XPF_CORRECTED_MACHINE_CHECK = 1, | ||
| 542 | ACPI_HEST_TYPE_XPF_UNUSED = 2, | ||
| 543 | ACPI_HEST_TYPE_XPF_NON_MASKABLE_INTERRUPT = 3, | ||
| 544 | ACPI_HEST_TYPE_IPF_CORRECTED_MACHINE_CHECK = 4, | ||
| 545 | ACPI_HEST_TYPE_IPF_CORRECTED_PLATFORM_ERROR = 5, | ||
| 546 | ACPI_HEST_TYPE_AER_ROOT_PORT = 6, | ||
| 547 | ACPI_HEST_TYPE_AER_ENDPOINT = 7, | ||
| 548 | ACPI_HEST_TYPE_AER_BRIDGE = 8, | ||
| 549 | ACPI_HEST_TYPE_GENERIC_HARDWARE_ERROR_SOURCE = 9, | ||
| 550 | ACPI_HEST_TYPE_RESERVED = 10 /* 10 and greater are reserved */ | ||
| 551 | }; | ||
| 552 | |||
| 553 | /* | ||
| 554 | * HEST Sub-subtables | ||
| 555 | */ | ||
| 556 | |||
| 557 | /* XPF Machine Check Error Bank */ | ||
| 558 | |||
| 559 | struct acpi_hest_xpf_error_bank { | ||
| 560 | u8 bank_number; | ||
| 561 | u8 clear_status_on_init; | ||
| 562 | u8 status_format; | ||
| 563 | u8 config_write_enable; | ||
| 564 | u32 control_register; | ||
| 565 | u64 control_init_data; | ||
| 566 | u32 status_register; | ||
| 567 | u32 address_register; | ||
| 568 | u32 misc_register; | ||
| 569 | }; | ||
| 570 | |||
| 571 | /* Generic Error Status */ | ||
| 572 | |||
| 573 | struct acpi_hest_generic_status { | ||
| 574 | u32 block_status; | ||
| 575 | u32 raw_data_offset; | ||
| 576 | u32 raw_data_length; | ||
| 577 | u32 data_length; | ||
| 578 | u32 error_severity; | ||
| 579 | }; | ||
| 580 | |||
| 581 | /* Generic Error Data */ | ||
| 582 | |||
| 583 | struct acpi_hest_generic_data { | ||
| 584 | u8 section_type[16]; | ||
| 585 | u32 error_severity; | ||
| 586 | u16 revision; | ||
| 587 | u8 validation_bits; | ||
| 588 | u8 flags; | ||
| 589 | u32 error_data_length; | ||
| 590 | u8 fru_id[16]; | ||
| 591 | u8 fru_text[20]; | ||
| 592 | }; | ||
| 593 | |||
| 594 | /* Common HEST structure for PCI/AER types below (6,7,8) */ | ||
| 595 | |||
| 596 | struct acpi_hest_aer_common { | ||
| 597 | u16 source_id; | ||
| 598 | u16 config_write_enable; | ||
| 599 | u8 flags; | ||
| 600 | u8 enabled; | ||
| 601 | u32 records_to_pre_allocate; | ||
| 602 | u32 max_sections_per_record; | ||
| 603 | u32 bus; | ||
| 604 | u16 device; | ||
| 605 | u16 function; | ||
| 606 | u16 device_control; | ||
| 607 | u16 reserved; | ||
| 608 | u32 uncorrectable_error_mask; | ||
| 609 | u32 uncorrectable_error_severity; | ||
| 610 | u32 correctable_error_mask; | ||
| 611 | u32 advanced_error_cababilities; | ||
| 612 | }; | ||
| 613 | |||
| 614 | /* Hardware Error Notification */ | ||
| 615 | |||
| 616 | struct acpi_hest_notify { | ||
| 617 | u8 type; | ||
| 618 | u8 length; | ||
| 619 | u16 config_write_enable; | ||
| 620 | u32 poll_interval; | ||
| 621 | u32 vector; | ||
| 622 | u32 polling_threshold_value; | ||
| 623 | u32 polling_threshold_window; | ||
| 624 | u32 error_threshold_value; | ||
| 625 | u32 error_threshold_window; | ||
| 626 | }; | ||
| 627 | |||
| 628 | /* Values for Notify Type field above */ | ||
| 629 | |||
| 630 | enum acpi_hest_notify_types { | ||
| 631 | ACPI_HEST_NOTIFY_POLLED = 0, | ||
| 632 | ACPI_HEST_NOTIFY_EXTERNAL = 1, | ||
| 633 | ACPI_HEST_NOTIFY_LOCAL = 2, | ||
| 634 | ACPI_HEST_NOTIFY_SCI = 3, | ||
| 635 | ACPI_HEST_NOTIFY_NMI = 4, | ||
| 636 | ACPI_HEST_NOTIFY_RESERVED = 5 /* 5 and greater are reserved */ | ||
| 637 | }; | ||
| 638 | |||
| 639 | /* | ||
| 640 | * HEST subtables | ||
| 641 | * | ||
| 642 | * From WHEA Design Document, 16 May 2007. | ||
| 643 | * Note: There is no subtable type 2 in this version of the document, | ||
| 644 | * and there are two different subtable type 3s. | ||
| 645 | */ | ||
| 646 | |||
| 647 | /* 0: XPF Machine Check Exception */ | ||
| 648 | |||
| 649 | struct acpi_hest_xpf_machine_check { | ||
| 650 | struct acpi_hest_header header; | ||
| 651 | u16 source_id; | ||
| 652 | u16 config_write_enable; | ||
| 653 | u8 flags; | ||
| 654 | u8 reserved1; | ||
| 655 | u32 records_to_pre_allocate; | ||
| 656 | u32 max_sections_per_record; | ||
| 657 | u64 global_capability_data; | ||
| 658 | u64 global_control_data; | ||
| 659 | u8 num_hardware_banks; | ||
| 660 | u8 reserved2[7]; | ||
| 661 | }; | ||
| 662 | |||
| 663 | /* 1: XPF Corrected Machine Check */ | ||
| 664 | |||
| 665 | struct acpi_table_hest_xpf_corrected { | ||
| 666 | struct acpi_hest_header header; | ||
| 667 | u16 source_id; | ||
| 668 | u16 config_write_enable; | ||
| 669 | u8 flags; | ||
| 670 | u8 enabled; | ||
| 671 | u32 records_to_pre_allocate; | ||
| 672 | u32 max_sections_per_record; | ||
| 673 | struct acpi_hest_notify notify; | ||
| 674 | u8 num_hardware_banks; | ||
| 675 | u8 reserved[3]; | ||
| 676 | }; | ||
| 677 | |||
| 678 | /* 3: XPF Non-Maskable Interrupt */ | ||
| 679 | |||
| 680 | struct acpi_hest_xpf_nmi { | ||
| 681 | struct acpi_hest_header header; | ||
| 682 | u16 source_id; | ||
| 683 | u32 reserved; | ||
| 684 | u32 records_to_pre_allocate; | ||
| 685 | u32 max_sections_per_record; | ||
| 686 | u32 max_raw_data_length; | ||
| 687 | }; | ||
| 688 | |||
| 689 | /* 4: IPF Corrected Machine Check */ | ||
| 690 | |||
| 691 | struct acpi_hest_ipf_corrected { | ||
| 692 | struct acpi_hest_header header; | ||
| 693 | u8 enabled; | ||
| 694 | u8 reserved; | ||
| 695 | }; | ||
| 696 | |||
| 697 | /* 5: IPF Corrected Platform Error */ | ||
| 698 | |||
| 699 | struct acpi_hest_ipf_corrected_platform { | ||
| 700 | struct acpi_hest_header header; | ||
| 701 | u8 enabled; | ||
| 702 | u8 reserved; | ||
| 703 | }; | ||
| 704 | |||
| 705 | /* 6: PCI Express Root Port AER */ | ||
| 706 | |||
| 707 | struct acpi_hest_aer_root { | ||
| 708 | struct acpi_hest_header header; | ||
| 709 | struct acpi_hest_aer_common aer; | ||
| 710 | u32 root_error_command; | ||
| 711 | }; | ||
| 712 | |||
| 713 | /* 7: PCI Express AER (AER Endpoint) */ | ||
| 714 | |||
| 715 | struct acpi_hest_aer { | ||
| 716 | struct acpi_hest_header header; | ||
| 717 | struct acpi_hest_aer_common aer; | ||
| 718 | }; | ||
| 719 | |||
| 720 | /* 8: PCI Express/PCI-X Bridge AER */ | ||
| 721 | |||
| 722 | struct acpi_hest_aer_bridge { | ||
| 723 | struct acpi_hest_header header; | ||
| 724 | struct acpi_hest_aer_common aer; | ||
| 725 | u32 secondary_uncorrectable_error_mask; | ||
| 726 | u32 secondary_uncorrectable_error_severity; | ||
| 727 | u32 secondary_advanced_capabilities; | ||
| 728 | }; | ||
| 729 | |||
| 730 | /* 9: Generic Hardware Error Source */ | ||
| 731 | |||
| 732 | struct acpi_hest_generic { | ||
| 733 | struct acpi_hest_header header; | ||
| 734 | u16 source_id; | ||
| 735 | u16 related_source_id; | ||
| 736 | u8 config_write_enable; | ||
| 737 | u8 enabled; | ||
| 738 | u32 records_to_pre_allocate; | ||
| 739 | u32 max_sections_per_record; | ||
| 740 | u32 max_raw_data_length; | ||
| 741 | struct acpi_generic_address error_status_address; | ||
| 742 | struct acpi_hest_notify notify; | ||
| 743 | u32 error_status_block_length; | ||
| 744 | }; | ||
| 745 | |||
| 746 | /******************************************************************************* | ||
| 747 | * | ||
| 353 | * HPET - High Precision Event Timer table | 748 | * HPET - High Precision Event Timer table |
| 354 | * | 749 | * |
| 355 | ******************************************************************************/ | 750 | ******************************************************************************/ |
| @@ -373,6 +768,96 @@ struct acpi_table_hpet { | |||
| 373 | 768 | ||
| 374 | /******************************************************************************* | 769 | /******************************************************************************* |
| 375 | * | 770 | * |
| 771 | * IBFT - Boot Firmware Table | ||
| 772 | * | ||
| 773 | ******************************************************************************/ | ||
| 774 | |||
| 775 | struct acpi_table_ibft { | ||
| 776 | struct acpi_table_header header; /* Common ACPI table header */ | ||
| 777 | u8 reserved[12]; | ||
| 778 | }; | ||
| 779 | |||
| 780 | /* IBFT common subtable header */ | ||
| 781 | |||
| 782 | struct acpi_ibft_header { | ||
| 783 | u8 type; | ||
| 784 | u8 version; | ||
| 785 | u16 length; | ||
| 786 | u8 index; | ||
| 787 | u8 flags; | ||
| 788 | }; | ||
| 789 | |||
| 790 | /* Values for Type field above */ | ||
| 791 | |||
| 792 | enum acpi_ibft_type { | ||
| 793 | ACPI_IBFT_TYPE_NOT_USED = 0, | ||
| 794 | ACPI_IBFT_TYPE_CONTROL = 1, | ||
| 795 | ACPI_IBFT_TYPE_INITIATOR = 2, | ||
| 796 | ACPI_IBFT_TYPE_NIC = 3, | ||
| 797 | ACPI_IBFT_TYPE_TARGET = 4, | ||
| 798 | ACPI_IBFT_TYPE_EXTENSIONS = 5, | ||
| 799 | ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */ | ||
| 800 | }; | ||
| 801 | |||
| 802 | /* IBFT subtables */ | ||
| 803 | |||
| 804 | struct acpi_ibft_control { | ||
| 805 | struct acpi_ibft_header header; | ||
| 806 | u16 extensions; | ||
| 807 | u16 initiator_offset; | ||
| 808 | u16 nic0_offset; | ||
| 809 | u16 target0_offset; | ||
| 810 | u16 nic1_offset; | ||
| 811 | u16 target1_offset; | ||
| 812 | }; | ||
| 813 | |||
| 814 | struct acpi_ibft_initiator { | ||
| 815 | struct acpi_ibft_header header; | ||
| 816 | u8 sns_server[16]; | ||
| 817 | u8 slp_server[16]; | ||
| 818 | u8 primary_server[16]; | ||
| 819 | u8 secondary_server[16]; | ||
| 820 | u16 name_length; | ||
| 821 | u16 name_offset; | ||
| 822 | }; | ||
| 823 | |||
| 824 | struct acpi_ibft_nic { | ||
| 825 | struct acpi_ibft_header header; | ||
| 826 | u8 ip_address[16]; | ||
| 827 | u8 subnet_mask_prefix; | ||
| 828 | u8 origin; | ||
| 829 | u8 gateway[16]; | ||
| 830 | u8 primary_dns[16]; | ||
| 831 | u8 secondary_dns[16]; | ||
| 832 | u8 dhcp[16]; | ||
| 833 | u16 vlan; | ||
| 834 | u8 mac_address[6]; | ||
| 835 | u16 pci_address; | ||
| 836 | u16 name_length; | ||
| 837 | u16 name_offset; | ||
| 838 | }; | ||
| 839 | |||
| 840 | struct acpi_ibft_target { | ||
| 841 | struct acpi_ibft_header header; | ||
| 842 | u8 target_ip_address[16]; | ||
| 843 | u16 target_ip_socket; | ||
| 844 | u8 target_boot_lun[8]; | ||
| 845 | u8 chap_type; | ||
| 846 | u8 nic_association; | ||
| 847 | u16 target_name_length; | ||
| 848 | u16 target_name_offset; | ||
| 849 | u16 chap_name_length; | ||
| 850 | u16 chap_name_offset; | ||
| 851 | u16 chap_secret_length; | ||
| 852 | u16 chap_secret_offset; | ||
| 853 | u16 reverse_chap_name_length; | ||
| 854 | u16 reverse_chap_name_offset; | ||
| 855 | u16 reverse_chap_secret_length; | ||
| 856 | u16 reverse_chap_secret_offset; | ||
| 857 | }; | ||
| 858 | |||
| 859 | /******************************************************************************* | ||
| 860 | * | ||
| 376 | * MADT - Multiple APIC Description Table | 861 | * MADT - Multiple APIC Description Table |
| 377 | * | 862 | * |
| 378 | ******************************************************************************/ | 863 | ******************************************************************************/ |
| @@ -697,6 +1182,78 @@ struct acpi_table_tcpa { | |||
| 697 | 1182 | ||
| 698 | /******************************************************************************* | 1183 | /******************************************************************************* |
| 699 | * | 1184 | * |
| 1185 | * UEFI - UEFI Boot optimization Table | ||
| 1186 | * | ||
| 1187 | ******************************************************************************/ | ||
| 1188 | |||
| 1189 | struct acpi_table_uefi { | ||
| 1190 | struct acpi_table_header header; /* Common ACPI table header */ | ||
| 1191 | u8 identifier[16]; /* UUID identifier */ | ||
| 1192 | u16 data_offset; /* Offset of remaining data in table */ | ||
| 1193 | u8 data; | ||
| 1194 | }; | ||
| 1195 | |||
| 1196 | /******************************************************************************* | ||
| 1197 | * | ||
| 1198 | * WDAT - Watchdog Action Table | ||
| 1199 | * | ||
| 1200 | ******************************************************************************/ | ||
| 1201 | |||
| 1202 | struct acpi_table_wdat { | ||
| 1203 | struct acpi_table_header header; /* Common ACPI table header */ | ||
| 1204 | u32 header_length; /* Watchdog Header Length */ | ||
| 1205 | u16 pci_segment; /* PCI Segment number */ | ||
| 1206 | u8 pci_bus; /* PCI Bus number */ | ||
| 1207 | u8 pci_device; /* PCI Device number */ | ||
| 1208 | u8 pci_function; /* PCI Function number */ | ||
| 1209 | u8 reserved[3]; | ||
| 1210 | u32 timer_period; /* Period of one timer count (msec) */ | ||
| 1211 | u32 max_count; /* Maximum counter value supported */ | ||
| 1212 | u32 min_count; /* Minimum counter value */ | ||
| 1213 | u8 flags; | ||
| 1214 | u8 reserved2[3]; | ||
| 1215 | u32 entries; /* Number of watchdog entries that follow */ | ||
| 1216 | }; | ||
| 1217 | |||
| 1218 | /* WDAT Instruction Entries (actions) */ | ||
| 1219 | |||
| 1220 | struct acpi_wdat_entry { | ||
| 1221 | struct acpi_whea_header whea_header; /* Common header for WHEA tables */ | ||
| 1222 | }; | ||
| 1223 | |||
| 1224 | /* Values for Action field above */ | ||
| 1225 | |||
| 1226 | enum acpi_wdat_actions { | ||
| 1227 | ACPI_WDAT_RESET = 1, | ||
| 1228 | ACPI_WDAT_GET_CURRENT_COUNTDOWN = 4, | ||
| 1229 | ACPI_WDAT_GET_COUNTDOWN = 5, | ||
| 1230 | ACPI_WDAT_SET_COUNTDOWN = 6, | ||
| 1231 | ACPI_WDAT_GET_RUNNING_STATE = 8, | ||
| 1232 | ACPI_WDAT_SET_RUNNING_STATE = 9, | ||
| 1233 | ACPI_WDAT_GET_STOPPED_STATE = 10, | ||
| 1234 | ACPI_WDAT_SET_STOPPED_STATE = 11, | ||
| 1235 | ACPI_WDAT_GET_REBOOT = 16, | ||
| 1236 | ACPI_WDAT_SET_REBOOT = 17, | ||
| 1237 | ACPI_WDAT_GET_SHUTDOWN = 18, | ||
| 1238 | ACPI_WDAT_SET_SHUTDOWN = 19, | ||
| 1239 | ACPI_WDAT_GET_STATUS = 32, | ||
| 1240 | ACPI_WDAT_SET_STATUS = 33, | ||
| 1241 | ACPI_WDAT_ACTION_RESERVED = 34 /* 34 and greater are reserved */ | ||
| 1242 | }; | ||
| 1243 | |||
| 1244 | /* Values for Instruction field above */ | ||
| 1245 | |||
| 1246 | enum acpi_wdat_instructions { | ||
| 1247 | ACPI_WDAT_READ_VALUE = 0, | ||
| 1248 | ACPI_WDAT_READ_COUNTDOWN = 1, | ||
| 1249 | ACPI_WDAT_WRITE_VALUE = 2, | ||
| 1250 | ACPI_WDAT_WRITE_COUNTDOWN = 3, | ||
| 1251 | ACPI_WDAT_INSTRUCTION_RESERVED = 4, /* 4 and greater are reserved */ | ||
| 1252 | ACPI_WDAT_PRESERVE_REGISTER = 0x80 /* Except for this value */ | ||
| 1253 | }; | ||
| 1254 | |||
| 1255 | /******************************************************************************* | ||
| 1256 | * | ||
| 700 | * WDRT - Watchdog Resource Table | 1257 | * WDRT - Watchdog Resource Table |
| 701 | * | 1258 | * |
| 702 | ******************************************************************************/ | 1259 | ******************************************************************************/ |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index e73a38939120..dfea2d440488 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -323,27 +323,11 @@ struct uint32_struct { | |||
| 323 | #define acpi_semaphore void * | 323 | #define acpi_semaphore void * |
| 324 | 324 | ||
| 325 | /* | 325 | /* |
| 326 | * Acpi integer width. In ACPI version 1, integers are | 326 | * Acpi integer width. In ACPI version 1, integers are 32 bits. In ACPI |
| 327 | * 32 bits. In ACPI version 2, integers are 64 bits. | 327 | * version 2, integers are 64 bits. Note that this pertains to the ACPI integer |
| 328 | * Note that this pertains to the ACPI integer type only, not | 328 | * type only, not other integers used in the implementation of the ACPI CA |
| 329 | * other integers used in the implementation of the ACPI CA | ||
| 330 | * subsystem. | 329 | * subsystem. |
| 331 | */ | 330 | */ |
| 332 | #ifdef ACPI_NO_INTEGER64_SUPPORT | ||
| 333 | |||
| 334 | /* 32-bit integers only, no 64-bit support */ | ||
| 335 | |||
| 336 | typedef u32 acpi_integer; | ||
| 337 | #define ACPI_INTEGER_MAX ACPI_UINT32_MAX | ||
| 338 | #define ACPI_INTEGER_BIT_SIZE 32 | ||
| 339 | #define ACPI_MAX_DECIMAL_DIGITS 10 /* 2^32 = 4,294,967,296 */ | ||
| 340 | |||
| 341 | #define ACPI_USE_NATIVE_DIVIDE /* Use compiler native 32-bit divide */ | ||
| 342 | |||
| 343 | #else | ||
| 344 | |||
| 345 | /* 64-bit integers */ | ||
| 346 | |||
| 347 | typedef unsigned long long acpi_integer; | 331 | typedef unsigned long long acpi_integer; |
| 348 | #define ACPI_INTEGER_MAX ACPI_UINT64_MAX | 332 | #define ACPI_INTEGER_MAX ACPI_UINT64_MAX |
| 349 | #define ACPI_INTEGER_BIT_SIZE 64 | 333 | #define ACPI_INTEGER_BIT_SIZE 64 |
| @@ -352,7 +336,6 @@ typedef unsigned long long acpi_integer; | |||
| 352 | #if ACPI_MACHINE_WIDTH == 64 | 336 | #if ACPI_MACHINE_WIDTH == 64 |
| 353 | #define ACPI_USE_NATIVE_DIVIDE /* Use compiler native 64-bit divide */ | 337 | #define ACPI_USE_NATIVE_DIVIDE /* Use compiler native 64-bit divide */ |
| 354 | #endif | 338 | #endif |
| 355 | #endif | ||
| 356 | 339 | ||
| 357 | #define ACPI_MAX64_DECIMAL_DIGITS 20 | 340 | #define ACPI_MAX64_DECIMAL_DIGITS 20 |
| 358 | #define ACPI_MAX32_DECIMAL_DIGITS 10 | 341 | #define ACPI_MAX32_DECIMAL_DIGITS 10 |
| @@ -419,14 +402,20 @@ typedef unsigned long long acpi_integer; | |||
| 419 | /* | 402 | /* |
| 420 | * Standard notify values | 403 | * Standard notify values |
| 421 | */ | 404 | */ |
| 422 | #define ACPI_NOTIFY_BUS_CHECK (u8) 0 | 405 | #define ACPI_NOTIFY_BUS_CHECK (u8) 0x00 |
| 423 | #define ACPI_NOTIFY_DEVICE_CHECK (u8) 1 | 406 | #define ACPI_NOTIFY_DEVICE_CHECK (u8) 0x01 |
| 424 | #define ACPI_NOTIFY_DEVICE_WAKE (u8) 2 | 407 | #define ACPI_NOTIFY_DEVICE_WAKE (u8) 0x02 |
| 425 | #define ACPI_NOTIFY_EJECT_REQUEST (u8) 3 | 408 | #define ACPI_NOTIFY_EJECT_REQUEST (u8) 0x03 |
| 426 | #define ACPI_NOTIFY_DEVICE_CHECK_LIGHT (u8) 4 | 409 | #define ACPI_NOTIFY_DEVICE_CHECK_LIGHT (u8) 0x04 |
| 427 | #define ACPI_NOTIFY_FREQUENCY_MISMATCH (u8) 5 | 410 | #define ACPI_NOTIFY_FREQUENCY_MISMATCH (u8) 0x05 |
| 428 | #define ACPI_NOTIFY_BUS_MODE_MISMATCH (u8) 6 | 411 | #define ACPI_NOTIFY_BUS_MODE_MISMATCH (u8) 0x06 |
| 429 | #define ACPI_NOTIFY_POWER_FAULT (u8) 7 | 412 | #define ACPI_NOTIFY_POWER_FAULT (u8) 0x07 |
| 413 | #define ACPI_NOTIFY_CAPABILITIES_CHECK (u8) 0x08 | ||
| 414 | #define ACPI_NOTIFY_DEVICE_PLD_CHECK (u8) 0x09 | ||
| 415 | #define ACPI_NOTIFY_RESERVED (u8) 0x0A | ||
| 416 | #define ACPI_NOTIFY_LOCALITY_UPDATE (u8) 0x0B | ||
| 417 | |||
| 418 | #define ACPI_NOTIFY_MAX 0x0B | ||
| 430 | 419 | ||
| 431 | /* | 420 | /* |
| 432 | * Types associated with ACPI names and objects. The first group of | 421 | * Types associated with ACPI names and objects. The first group of |
| @@ -494,6 +483,8 @@ typedef u32 acpi_object_type; | |||
| 494 | #define ACPI_TYPE_INVALID 0x1E | 483 | #define ACPI_TYPE_INVALID 0x1E |
| 495 | #define ACPI_TYPE_NOT_FOUND 0xFF | 484 | #define ACPI_TYPE_NOT_FOUND 0xFF |
| 496 | 485 | ||
| 486 | #define ACPI_NUM_NS_TYPES (ACPI_TYPE_INVALID + 1) | ||
| 487 | |||
| 497 | /* | 488 | /* |
| 498 | * All I/O | 489 | * All I/O |
| 499 | */ | 490 | */ |
| @@ -599,7 +590,7 @@ typedef u32 acpi_event_status; | |||
| 599 | 590 | ||
| 600 | #define ACPI_SYSTEM_NOTIFY 0x1 | 591 | #define ACPI_SYSTEM_NOTIFY 0x1 |
| 601 | #define ACPI_DEVICE_NOTIFY 0x2 | 592 | #define ACPI_DEVICE_NOTIFY 0x2 |
| 602 | #define ACPI_ALL_NOTIFY 0x3 | 593 | #define ACPI_ALL_NOTIFY (ACPI_SYSTEM_NOTIFY | ACPI_DEVICE_NOTIFY) |
| 603 | #define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3 | 594 | #define ACPI_MAX_NOTIFY_HANDLER_TYPE 0x3 |
| 604 | 595 | ||
| 605 | #define ACPI_MAX_SYS_NOTIFY 0x7f | 596 | #define ACPI_MAX_SYS_NOTIFY 0x7f |
| @@ -654,46 +645,51 @@ typedef u8 acpi_adr_space_type; | |||
| 654 | /* | 645 | /* |
| 655 | * External ACPI object definition | 646 | * External ACPI object definition |
| 656 | */ | 647 | */ |
| 648 | |||
| 649 | /* | ||
| 650 | * Note: Type == ACPI_TYPE_ANY (0) is used to indicate a NULL package element | ||
| 651 | * or an unresolved named reference. | ||
| 652 | */ | ||
| 657 | union acpi_object { | 653 | union acpi_object { |
| 658 | acpi_object_type type; /* See definition of acpi_ns_type for values */ | 654 | acpi_object_type type; /* See definition of acpi_ns_type for values */ |
| 659 | struct { | 655 | struct { |
| 660 | acpi_object_type type; | 656 | acpi_object_type type; /* ACPI_TYPE_INTEGER */ |
| 661 | acpi_integer value; /* The actual number */ | 657 | acpi_integer value; /* The actual number */ |
| 662 | } integer; | 658 | } integer; |
| 663 | 659 | ||
| 664 | struct { | 660 | struct { |
| 665 | acpi_object_type type; | 661 | acpi_object_type type; /* ACPI_TYPE_STRING */ |
| 666 | u32 length; /* # of bytes in string, excluding trailing null */ | 662 | u32 length; /* # of bytes in string, excluding trailing null */ |
| 667 | char *pointer; /* points to the string value */ | 663 | char *pointer; /* points to the string value */ |
| 668 | } string; | 664 | } string; |
| 669 | 665 | ||
| 670 | struct { | 666 | struct { |
| 671 | acpi_object_type type; | 667 | acpi_object_type type; /* ACPI_TYPE_BUFFER */ |
| 672 | u32 length; /* # of bytes in buffer */ | 668 | u32 length; /* # of bytes in buffer */ |
| 673 | u8 *pointer; /* points to the buffer */ | 669 | u8 *pointer; /* points to the buffer */ |
| 674 | } buffer; | 670 | } buffer; |
| 675 | 671 | ||
| 676 | struct { | 672 | struct { |
| 677 | acpi_object_type type; | 673 | acpi_object_type type; /* ACPI_TYPE_PACKAGE */ |
| 678 | u32 fill1; | ||
| 679 | acpi_handle handle; /* object reference */ | ||
| 680 | } reference; | ||
| 681 | |||
| 682 | struct { | ||
| 683 | acpi_object_type type; | ||
| 684 | u32 count; /* # of elements in package */ | 674 | u32 count; /* # of elements in package */ |
| 685 | union acpi_object *elements; /* Pointer to an array of ACPI_OBJECTs */ | 675 | union acpi_object *elements; /* Pointer to an array of ACPI_OBJECTs */ |
| 686 | } package; | 676 | } package; |
| 687 | 677 | ||
| 688 | struct { | 678 | struct { |
| 689 | acpi_object_type type; | 679 | acpi_object_type type; /* ACPI_TYPE_LOCAL_REFERENCE */ |
| 680 | acpi_object_type actual_type; /* Type associated with the Handle */ | ||
| 681 | acpi_handle handle; /* object reference */ | ||
| 682 | } reference; | ||
| 683 | |||
| 684 | struct { | ||
| 685 | acpi_object_type type; /* ACPI_TYPE_PROCESSOR */ | ||
| 690 | u32 proc_id; | 686 | u32 proc_id; |
| 691 | acpi_io_address pblk_address; | 687 | acpi_io_address pblk_address; |
| 692 | u32 pblk_length; | 688 | u32 pblk_length; |
| 693 | } processor; | 689 | } processor; |
| 694 | 690 | ||
| 695 | struct { | 691 | struct { |
| 696 | acpi_object_type type; | 692 | acpi_object_type type; /* ACPI_TYPE_POWER */ |
| 697 | u32 system_level; | 693 | u32 system_level; |
| 698 | u32 resource_order; | 694 | u32 resource_order; |
| 699 | } power_resource; | 695 | } power_resource; |
| @@ -747,6 +743,12 @@ struct acpi_system_info { | |||
| 747 | u32 debug_layer; | 743 | u32 debug_layer; |
| 748 | }; | 744 | }; |
| 749 | 745 | ||
| 746 | /* Table Event Types */ | ||
| 747 | |||
| 748 | #define ACPI_TABLE_EVENT_LOAD 0x0 | ||
| 749 | #define ACPI_TABLE_EVENT_UNLOAD 0x1 | ||
| 750 | #define ACPI_NUM_TABLE_EVENTS 2 | ||
| 751 | |||
| 750 | /* | 752 | /* |
| 751 | * Types specific to the OS service interfaces | 753 | * Types specific to the OS service interfaces |
| 752 | */ | 754 | */ |
| @@ -776,6 +778,11 @@ acpi_status(*acpi_exception_handler) (acpi_status aml_status, | |||
| 776 | u16 opcode, | 778 | u16 opcode, |
| 777 | u32 aml_offset, void *context); | 779 | u32 aml_offset, void *context); |
| 778 | 780 | ||
| 781 | /* Table Event handler (Load, load_table etc) and types */ | ||
| 782 | |||
| 783 | typedef | ||
| 784 | acpi_status(*acpi_tbl_handler) (u32 event, void *table, void *context); | ||
| 785 | |||
| 779 | /* Address Spaces (For Operation Regions) */ | 786 | /* Address Spaces (For Operation Regions) */ |
| 780 | 787 | ||
| 781 | typedef | 788 | typedef |
| @@ -990,6 +997,7 @@ struct acpi_vendor_uuid { | |||
| 990 | * Structures used to describe device resources | 997 | * Structures used to describe device resources |
| 991 | */ | 998 | */ |
| 992 | struct acpi_resource_irq { | 999 | struct acpi_resource_irq { |
| 1000 | u8 descriptor_length; | ||
| 993 | u8 triggering; | 1001 | u8 triggering; |
| 994 | u8 polarity; | 1002 | u8 polarity; |
| 995 | u8 sharable; | 1003 | u8 sharable; |
| @@ -1006,6 +1014,7 @@ struct acpi_resource_dma { | |||
| 1006 | }; | 1014 | }; |
| 1007 | 1015 | ||
| 1008 | struct acpi_resource_start_dependent { | 1016 | struct acpi_resource_start_dependent { |
| 1017 | u8 descriptor_length; | ||
| 1009 | u8 compatibility_priority; | 1018 | u8 compatibility_priority; |
| 1010 | u8 performance_robustness; | 1019 | u8 performance_robustness; |
| 1011 | }; | 1020 | }; |
diff --git a/include/acpi/acutils.h b/include/acpi/acutils.h index a2918547c73f..b42cadf07302 100644 --- a/include/acpi/acutils.h +++ b/include/acpi/acutils.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
| @@ -116,6 +116,8 @@ void acpi_ut_init_globals(void); | |||
| 116 | 116 | ||
| 117 | char *acpi_ut_get_mutex_name(u32 mutex_id); | 117 | char *acpi_ut_get_mutex_name(u32 mutex_id); |
| 118 | 118 | ||
| 119 | const char *acpi_ut_get_notify_name(u32 notify_value); | ||
| 120 | |||
| 119 | #endif | 121 | #endif |
| 120 | 122 | ||
| 121 | char *acpi_ut_get_type_name(acpi_object_type type); | 123 | char *acpi_ut_get_type_name(acpi_object_type type); |
diff --git a/include/acpi/amlcode.h b/include/acpi/amlcode.h index da53a4ef287a..ff851c5df698 100644 --- a/include/acpi/amlcode.h +++ b/include/acpi/amlcode.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | *****************************************************************************/ | 7 | *****************************************************************************/ |
| 8 | 8 | ||
| 9 | /* | 9 | /* |
| 10 | * Copyright (C) 2000 - 2007, R. Byron Moore | 10 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 11 | * All rights reserved. | 11 | * All rights reserved. |
| 12 | * | 12 | * |
| 13 | * Redistribution and use in source and binary forms, with or without | 13 | * Redistribution and use in source and binary forms, with or without |
diff --git a/include/acpi/amlresrc.h b/include/acpi/amlresrc.h index f7d541239da4..7b070e42b7c5 100644 --- a/include/acpi/amlresrc.h +++ b/include/acpi/amlresrc.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | *****************************************************************************/ | 6 | *****************************************************************************/ |
| 7 | 7 | ||
| 8 | /* | 8 | /* |
| 9 | * Copyright (C) 2000 - 2007, R. Byron Moore | 9 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index c785485e62a6..fcd2572e428c 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi/platform/acenv.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/platform/acgcc.h b/include/acpi/platform/acgcc.h index 3bb50494a38a..8996dba90cd9 100644 --- a/include/acpi/platform/acgcc.h +++ b/include/acpi/platform/acgcc.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 6ed15a0978eb..9af464598682 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2007, R. Byron Moore | 8 | * Copyright (C) 2000 - 2008, Intel Corp. |
| 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 |
