Rev 6588 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6588 | Rev 7143 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | * Name: acpixf.h - External interfaces to the ACPI subsystem |
3 | * Name: acpixf.h - External interfaces to the ACPI subsystem |
4 | * |
4 | * |
5 | *****************************************************************************/ |
5 | *****************************************************************************/ |
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /* |
7 | /* |
8 | * Copyright (C) 2000 - 2015, Intel Corp. |
8 | * Copyright (C) 2000 - 2016, 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 |
12 | * modification, are permitted provided that the following conditions |
12 | * modification, are permitted provided that the following conditions |
Line 44... | Line 44... | ||
44 | #ifndef __ACXFACE_H__ |
44 | #ifndef __ACXFACE_H__ |
45 | #define __ACXFACE_H__ |
45 | #define __ACXFACE_H__ |
Line 46... | Line 46... | ||
46 | 46 | ||
Line 47... | Line 47... | ||
47 | /* Current ACPICA subsystem version in YYYYMMDD format */ |
47 | /* Current ACPICA subsystem version in YYYYMMDD format */ |
Line 48... | Line 48... | ||
48 | 48 | ||
49 | #define ACPI_CA_VERSION 0x20150930 |
49 | #define ACPI_CA_VERSION 0x20160108 |
50 | 50 | ||
51 | #include |
51 | #include |
Line 188... | Line 188... | ||
188 | * some machines. Default behavior is to use the XSDT if present. |
188 | * some machines. Default behavior is to use the XSDT if present. |
189 | */ |
189 | */ |
190 | ACPI_INIT_GLOBAL(u8, acpi_gbl_do_not_use_xsdt, FALSE); |
190 | ACPI_INIT_GLOBAL(u8, acpi_gbl_do_not_use_xsdt, FALSE); |
Line 191... | Line 191... | ||
191 | 191 | ||
- | 192 | /* |
|
- | 193 | * Optionally support group module level code. |
|
- | 194 | */ |
|
- | 195 | ACPI_INIT_GLOBAL(u8, acpi_gbl_group_module_level_code, TRUE); |
|
- | 196 | ||
192 | /* |
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 |
196 | * requires the use of the corresponding 64-bit address if it is non-zero, |
201 | * requires the use of the corresponding 64-bit address if it is non-zero, |
Line 261... | Line 266... | ||
261 | * is entered. |
266 | * is entered. |
262 | */ |
267 | */ |
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); |
Line -... | Line 270... | ||
- | 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 |
|
265 | 283 | ||
266 | /* |
284 | /* |
267 | * Other miscellaneous globals |
285 | * Other miscellaneous globals |
268 | */ |
286 | */ |
269 | ACPI_GLOBAL(struct acpi_table_fadt, acpi_gbl_FADT); |
287 | ACPI_GLOBAL(struct acpi_table_fadt, acpi_gbl_FADT); |
Line 364... | Line 382... | ||
364 | #define ACPI_APP_DEPENDENT_RETURN_VOID(prototype) \ |
382 | #define ACPI_APP_DEPENDENT_RETURN_VOID(prototype) \ |
365 | static ACPI_INLINE prototype {return;} |
383 | static ACPI_INLINE prototype {return;} |
Line 366... | Line 384... | ||
366 | 384 | ||
Line -... | Line 385... | ||
- | 385 | #endif /* ACPI_APPLICATION */ |
|
- | 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 | ||
367 | #endif /* ACPI_APPLICATION */ |
408 | #endif /* ACPI_DEBUGGER */ |
368 | 409 | ||
369 | /***************************************************************************** |
410 | /***************************************************************************** |
370 | * |
411 | * |
371 | * ACPICA public interface prototypes |
412 | * ACPICA public interface prototypes |
Line 820... | Line 861... | ||
820 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
861 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
821 | acpi_leave_sleep_state_prep(u8 sleep_state)) |
862 | acpi_leave_sleep_state_prep(u8 sleep_state)) |
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)) |
Line 823... | Line 864... | ||
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)) |
- | |
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 |
868 | acpi_physical_address physical_address64)) |
836 | /* |
869 | /* |
837 | * ACPI Timer interfaces |
870 | * ACPI Timer interfaces |
838 | */ |
871 | */ |
839 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status |
872 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status |
Line 862... | Line 895... | ||
862 | ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) |
895 | ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) |
863 | void ACPI_INTERNAL_VAR_XFACE |
896 | void ACPI_INTERNAL_VAR_XFACE |
864 | acpi_warning(const char *module_name, |
897 | acpi_warning(const char *module_name, |
865 | u32 line_number, |
898 | u32 line_number, |
866 | const char *format, ...)) |
899 | const char *format, ...)) |
867 | ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) |
900 | ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(1) |
868 | void ACPI_INTERNAL_VAR_XFACE |
901 | void ACPI_INTERNAL_VAR_XFACE |
869 | acpi_info(const char *module_name, |
- | |
870 | u32 line_number, |
- | |
871 | const char *format, ...)) |
902 | acpi_info(const char *format, ...)) |
872 | ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) |
903 | ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) |
873 | void ACPI_INTERNAL_VAR_XFACE |
904 | void ACPI_INTERNAL_VAR_XFACE |
874 | acpi_bios_error(const char *module_name, |
905 | acpi_bios_error(const char *module_name, |
875 | u32 line_number, |
906 | u32 line_number, |
876 | const char *format, ...)) |
907 | const char *format, ...)) |
Line 927... | Line 958... | ||
927 | acpi_get_data_full(acpi_handle object, |
958 | acpi_get_data_full(acpi_handle object, |
928 | acpi_object_handler handler, |
959 | acpi_object_handler handler, |
929 | void **data, |
960 | void **data, |
930 | void (*callback)(void *))) |
961 | void (*callback)(void *))) |
Line -... | Line 962... | ||
- | 962 | ||
- | 963 | void acpi_run_debugger(char *batch_buffer); |
|
931 | 964 | ||
Line 932... | Line 965... | ||
932 | void acpi_set_debugger_thread_id(acpi_thread_id thread_id); |
965 | void acpi_set_debugger_thread_id(acpi_thread_id thread_id); |