diff options
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acexcep.h | 6 | ||||
-rw-r--r-- | include/acpi/acpiosxf.h | 18 | ||||
-rw-r--r-- | include/acpi/acpixf.h | 55 | ||||
-rw-r--r-- | include/acpi/actypes.h | 6 | ||||
-rw-r--r-- | include/acpi/platform/aclinux.h | 2 | ||||
-rw-r--r-- | include/acpi/platform/aclinuxex.h | 10 |
6 files changed, 80 insertions, 17 deletions
diff --git a/include/acpi/acexcep.h b/include/acpi/acexcep.h index 204f5819d464..cd84b12d1e60 100644 --- a/include/acpi/acexcep.h +++ b/include/acpi/acexcep.h | |||
@@ -126,8 +126,9 @@ struct acpi_exception_info { | |||
126 | #define AE_OWNER_ID_LIMIT EXCEP_ENV (0x001B) | 126 | #define AE_OWNER_ID_LIMIT EXCEP_ENV (0x001B) |
127 | #define AE_NOT_CONFIGURED EXCEP_ENV (0x001C) | 127 | #define AE_NOT_CONFIGURED EXCEP_ENV (0x001C) |
128 | #define AE_ACCESS EXCEP_ENV (0x001D) | 128 | #define AE_ACCESS EXCEP_ENV (0x001D) |
129 | #define AE_IO_ERROR EXCEP_ENV (0x001E) | ||
129 | 130 | ||
130 | #define AE_CODE_ENV_MAX 0x001D | 131 | #define AE_CODE_ENV_MAX 0x001E |
131 | 132 | ||
132 | /* | 133 | /* |
133 | * Programmer exceptions | 134 | * Programmer exceptions |
@@ -263,7 +264,8 @@ static const struct acpi_exception_info acpi_gbl_exception_names_env[] = { | |||
263 | "There are no more Owner IDs available for ACPI tables or control methods"), | 264 | "There are no more Owner IDs available for ACPI tables or control methods"), |
264 | EXCEP_TXT("AE_NOT_CONFIGURED", | 265 | EXCEP_TXT("AE_NOT_CONFIGURED", |
265 | "The interface is not part of the current subsystem configuration"), | 266 | "The interface is not part of the current subsystem configuration"), |
266 | EXCEP_TXT("AE_ACCESS", "Permission denied for the requested operation") | 267 | EXCEP_TXT("AE_ACCESS", "Permission denied for the requested operation"), |
268 | EXCEP_TXT("AE_IO_ERROR", "An I/O error occurred") | ||
267 | }; | 269 | }; |
268 | 270 | ||
269 | static const struct acpi_exception_info acpi_gbl_exception_names_pgm[] = { | 271 | static const struct acpi_exception_info acpi_gbl_exception_names_pgm[] = { |
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index fbc2baf2b9dc..0d824a28522d 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h | |||
@@ -349,12 +349,28 @@ void acpi_os_redirect_output(void *destination); | |||
349 | #endif | 349 | #endif |
350 | 350 | ||
351 | /* | 351 | /* |
352 | * Debug input | 352 | * Debug IO |
353 | */ | 353 | */ |
354 | #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_line | 354 | #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_line |
355 | acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read); | 355 | acpi_status acpi_os_get_line(char *buffer, u32 buffer_length, u32 *bytes_read); |
356 | #endif | 356 | #endif |
357 | 357 | ||
358 | #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_initialize_command_signals | ||
359 | acpi_status acpi_os_initialize_command_signals(void); | ||
360 | #endif | ||
361 | |||
362 | #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_terminate_command_signals | ||
363 | void acpi_os_terminate_command_signals(void); | ||
364 | #endif | ||
365 | |||
366 | #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_wait_command_ready | ||
367 | acpi_status acpi_os_wait_command_ready(void); | ||
368 | #endif | ||
369 | |||
370 | #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_notify_command_complete | ||
371 | acpi_status acpi_os_notify_command_complete(void); | ||
372 | #endif | ||
373 | |||
358 | /* | 374 | /* |
359 | * Obtain ACPI table(s) | 375 | * Obtain ACPI table(s) |
360 | */ | 376 | */ |
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 3aaaa8630735..012b2eed7a93 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | /* Current ACPICA subsystem version in YYYYMMDD format */ | 47 | /* Current ACPICA subsystem version in YYYYMMDD format */ |
48 | 48 | ||
49 | #define ACPI_CA_VERSION 0x20150930 | 49 | #define ACPI_CA_VERSION 0x20151218 |
50 | 50 | ||
51 | #include <acpi/acconfig.h> | 51 | #include <acpi/acconfig.h> |
52 | #include <acpi/actypes.h> | 52 | #include <acpi/actypes.h> |
@@ -190,6 +190,11 @@ ACPI_INIT_GLOBAL(u8, acpi_gbl_copy_dsdt_locally, FALSE); | |||
190 | ACPI_INIT_GLOBAL(u8, acpi_gbl_do_not_use_xsdt, FALSE); | 190 | ACPI_INIT_GLOBAL(u8, acpi_gbl_do_not_use_xsdt, FALSE); |
191 | 191 | ||
192 | /* | 192 | /* |
193 | * Optionally support group module level code. | ||
194 | */ | ||
195 | ACPI_INIT_GLOBAL(u8, acpi_gbl_group_module_level_code, TRUE); | ||
196 | |||
197 | /* | ||
193 | * Optionally use 32-bit FADT addresses if and when there is a conflict | 198 | * Optionally use 32-bit FADT addresses if and when there is a conflict |
194 | * (address mismatch) between the 32-bit and 64-bit versions of the | 199 | * (address mismatch) between the 32-bit and 64-bit versions of the |
195 | * address. Although ACPICA adheres to the ACPI specification which | 200 | * address. Although ACPICA adheres to the ACPI specification which |
@@ -263,6 +268,19 @@ ACPI_INIT_GLOBAL(u32, acpi_gbl_trace_dbg_layer, ACPI_TRACE_LAYER_DEFAULT); | |||
263 | ACPI_INIT_GLOBAL(u32, acpi_dbg_level, ACPI_DEBUG_DEFAULT); | 268 | ACPI_INIT_GLOBAL(u32, acpi_dbg_level, ACPI_DEBUG_DEFAULT); |
264 | ACPI_INIT_GLOBAL(u32, acpi_dbg_layer, 0); | 269 | ACPI_INIT_GLOBAL(u32, acpi_dbg_layer, 0); |
265 | 270 | ||
271 | /* Optionally enable timer output with Debug Object output */ | ||
272 | |||
273 | ACPI_INIT_GLOBAL(u8, acpi_gbl_display_debug_timer, FALSE); | ||
274 | |||
275 | /* | ||
276 | * Debugger command handshake globals. Host OSes need to access these | ||
277 | * variables to implement their own command handshake mechanism. | ||
278 | */ | ||
279 | #ifdef ACPI_DEBUGGER | ||
280 | ACPI_INIT_GLOBAL(u8, acpi_gbl_method_executing, FALSE); | ||
281 | ACPI_GLOBAL(char, acpi_gbl_db_line_buf[ACPI_DB_LINE_BUFFER_SIZE]); | ||
282 | #endif | ||
283 | |||
266 | /* | 284 | /* |
267 | * Other miscellaneous globals | 285 | * Other miscellaneous globals |
268 | */ | 286 | */ |
@@ -366,6 +384,29 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running); | |||
366 | 384 | ||
367 | #endif /* ACPI_APPLICATION */ | 385 | #endif /* ACPI_APPLICATION */ |
368 | 386 | ||
387 | /* | ||
388 | * Debugger prototypes | ||
389 | * | ||
390 | * All interfaces used by debugger will be configured | ||
391 | * out of the ACPICA build unless the ACPI_DEBUGGER | ||
392 | * flag is defined. | ||
393 | */ | ||
394 | #ifdef ACPI_DEBUGGER | ||
395 | #define ACPI_DBR_DEPENDENT_RETURN_OK(prototype) \ | ||
396 | ACPI_EXTERNAL_RETURN_OK(prototype) | ||
397 | |||
398 | #define ACPI_DBR_DEPENDENT_RETURN_VOID(prototype) \ | ||
399 | ACPI_EXTERNAL_RETURN_VOID(prototype) | ||
400 | |||
401 | #else | ||
402 | #define ACPI_DBR_DEPENDENT_RETURN_OK(prototype) \ | ||
403 | static ACPI_INLINE prototype {return(AE_OK);} | ||
404 | |||
405 | #define ACPI_DBR_DEPENDENT_RETURN_VOID(prototype) \ | ||
406 | static ACPI_INLINE prototype {return;} | ||
407 | |||
408 | #endif /* ACPI_DEBUGGER */ | ||
409 | |||
369 | /***************************************************************************** | 410 | /***************************************************************************** |
370 | * | 411 | * |
371 | * ACPICA public interface prototypes | 412 | * ACPICA public interface prototypes |
@@ -822,17 +863,9 @@ ACPI_EXTERNAL_RETURN_STATUS(acpi_status | |||
822 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_leave_sleep_state(u8 sleep_state)) | 863 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_leave_sleep_state(u8 sleep_state)) |
823 | 864 | ||
824 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status | 865 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status |
825 | acpi_set_firmware_waking_vectors | 866 | acpi_set_firmware_waking_vector |
826 | (acpi_physical_address physical_address, | 867 | (acpi_physical_address physical_address, |
827 | acpi_physical_address physical_address64)) | 868 | acpi_physical_address physical_address64)) |
828 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status | ||
829 | acpi_set_firmware_waking_vector(u32 | ||
830 | physical_address)) | ||
831 | #if ACPI_MACHINE_WIDTH == 64 | ||
832 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status | ||
833 | acpi_set_firmware_waking_vector64(u64 | ||
834 | physical_address)) | ||
835 | #endif | ||
836 | /* | 869 | /* |
837 | * ACPI Timer interfaces | 870 | * ACPI Timer interfaces |
838 | */ | 871 | */ |
@@ -929,6 +962,8 @@ ACPI_EXTERNAL_RETURN_STATUS(acpi_status | |||
929 | void **data, | 962 | void **data, |
930 | void (*callback)(void *))) | 963 | void (*callback)(void *))) |
931 | 964 | ||
965 | void acpi_run_debugger(char *batch_buffer); | ||
966 | |||
932 | void acpi_set_debugger_thread_id(acpi_thread_id thread_id); | 967 | void acpi_set_debugger_thread_id(acpi_thread_id thread_id); |
933 | 968 | ||
934 | #endif /* __ACXFACE_H__ */ | 969 | #endif /* __ACXFACE_H__ */ |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index f914958c4adb..9633f606d89e 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -1148,7 +1148,7 @@ u32 (*acpi_interface_handler) (acpi_string interface_name, u32 supported); | |||
1148 | 1148 | ||
1149 | #define ACPI_PCICLS_STRING_SIZE 7 /* Includes null terminator */ | 1149 | #define ACPI_PCICLS_STRING_SIZE 7 /* Includes null terminator */ |
1150 | 1150 | ||
1151 | /* Structures used for device/processor HID, UID, CID, and SUB */ | 1151 | /* Structures used for device/processor HID, UID, CID */ |
1152 | 1152 | ||
1153 | struct acpi_pnp_device_id { | 1153 | struct acpi_pnp_device_id { |
1154 | u32 length; /* Length of string + null */ | 1154 | u32 length; /* Length of string + null */ |
@@ -1178,7 +1178,6 @@ struct acpi_device_info { | |||
1178 | u64 address; /* _ADR value */ | 1178 | u64 address; /* _ADR value */ |
1179 | struct acpi_pnp_device_id hardware_id; /* _HID value */ | 1179 | struct acpi_pnp_device_id hardware_id; /* _HID value */ |
1180 | struct acpi_pnp_device_id unique_id; /* _UID value */ | 1180 | struct acpi_pnp_device_id unique_id; /* _UID value */ |
1181 | struct acpi_pnp_device_id subsystem_id; /* _SUB value */ | ||
1182 | struct acpi_pnp_device_id class_code; /* _CLS value */ | 1181 | struct acpi_pnp_device_id class_code; /* _CLS value */ |
1183 | struct acpi_pnp_device_id_list compatible_id_list; /* _CID list <must be last> */ | 1182 | struct acpi_pnp_device_id_list compatible_id_list; /* _CID list <must be last> */ |
1184 | }; | 1183 | }; |
@@ -1193,13 +1192,12 @@ struct acpi_device_info { | |||
1193 | #define ACPI_VALID_ADR 0x0002 | 1192 | #define ACPI_VALID_ADR 0x0002 |
1194 | #define ACPI_VALID_HID 0x0004 | 1193 | #define ACPI_VALID_HID 0x0004 |
1195 | #define ACPI_VALID_UID 0x0008 | 1194 | #define ACPI_VALID_UID 0x0008 |
1196 | #define ACPI_VALID_SUB 0x0010 | ||
1197 | #define ACPI_VALID_CID 0x0020 | 1195 | #define ACPI_VALID_CID 0x0020 |
1198 | #define ACPI_VALID_CLS 0x0040 | 1196 | #define ACPI_VALID_CLS 0x0040 |
1199 | #define ACPI_VALID_SXDS 0x0100 | 1197 | #define ACPI_VALID_SXDS 0x0100 |
1200 | #define ACPI_VALID_SXWS 0x0200 | 1198 | #define ACPI_VALID_SXWS 0x0200 |
1201 | 1199 | ||
1202 | /* Flags for _STA return value (current_status above) */ | 1200 | /* Flags for _STA method */ |
1203 | 1201 | ||
1204 | #define ACPI_STA_DEVICE_PRESENT 0x01 | 1202 | #define ACPI_STA_DEVICE_PRESENT 0x01 |
1205 | #define ACPI_STA_DEVICE_ENABLED 0x02 | 1203 | #define ACPI_STA_DEVICE_ENABLED 0x02 |
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 323e5daece54..e21857d2ec05 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h | |||
@@ -150,6 +150,8 @@ | |||
150 | */ | 150 | */ |
151 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_readable | 151 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_readable |
152 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_writable | 152 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_writable |
153 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_initialize_command_signals | ||
154 | #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_terminate_command_signals | ||
153 | 155 | ||
154 | /* | 156 | /* |
155 | * OSL interfaces used by utilities | 157 | * OSL interfaces used by utilities |
diff --git a/include/acpi/platform/aclinuxex.h b/include/acpi/platform/aclinuxex.h index fd6d70fe1219..f903fe64259a 100644 --- a/include/acpi/platform/aclinuxex.h +++ b/include/acpi/platform/aclinuxex.h | |||
@@ -129,6 +129,16 @@ static inline u8 acpi_os_readable(void *pointer, acpi_size length) | |||
129 | return TRUE; | 129 | return TRUE; |
130 | } | 130 | } |
131 | 131 | ||
132 | static inline acpi_status acpi_os_initialize_command_signals(void) | ||
133 | { | ||
134 | return AE_OK; | ||
135 | } | ||
136 | |||
137 | static inline void acpi_os_terminate_command_signals(void) | ||
138 | { | ||
139 | return; | ||
140 | } | ||
141 | |||
132 | /* | 142 | /* |
133 | * OSL interfaces added by Linux | 143 | * OSL interfaces added by Linux |
134 | */ | 144 | */ |