diff options
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acbuffer.h | 1 | ||||
-rw-r--r-- | include/acpi/acconfig.h | 4 | ||||
-rw-r--r-- | include/acpi/acexcep.h | 7 | ||||
-rw-r--r-- | include/acpi/acoutput.h | 21 | ||||
-rw-r--r-- | include/acpi/acpi_bus.h | 4 | ||||
-rw-r--r-- | include/acpi/acpi_drivers.h | 4 | ||||
-rw-r--r-- | include/acpi/acpiosxf.h | 6 | ||||
-rw-r--r-- | include/acpi/acpixf.h | 16 | ||||
-rw-r--r-- | include/acpi/actbl2.h | 17 | ||||
-rw-r--r-- | include/acpi/actypes.h | 13 | ||||
-rw-r--r-- | include/acpi/platform/acenv.h | 19 | ||||
-rw-r--r-- | include/acpi/platform/acenvex.h | 3 | ||||
-rw-r--r-- | include/acpi/platform/acmsvcex.h | 54 | ||||
-rw-r--r-- | include/acpi/platform/acwinex.h | 49 |
14 files changed, 186 insertions, 32 deletions
diff --git a/include/acpi/acbuffer.h b/include/acpi/acbuffer.h index 6b040f4ddfab..fcf9080eae85 100644 --- a/include/acpi/acbuffer.h +++ b/include/acpi/acbuffer.h | |||
@@ -147,6 +147,7 @@ struct acpi_pld_info { | |||
147 | * (Intended for BIOS use only) | 147 | * (Intended for BIOS use only) |
148 | */ | 148 | */ |
149 | #define ACPI_PLD_REV1_BUFFER_SIZE 16 /* For Revision 1 of the buffer (From ACPI spec) */ | 149 | #define ACPI_PLD_REV1_BUFFER_SIZE 16 /* For Revision 1 of the buffer (From ACPI spec) */ |
150 | #define ACPI_PLD_REV2_BUFFER_SIZE 20 /* For Revision 2 of the buffer (From ACPI spec) */ | ||
150 | #define ACPI_PLD_BUFFER_SIZE 20 /* For Revision 2 of the buffer (From ACPI spec) */ | 151 | #define ACPI_PLD_BUFFER_SIZE 20 /* For Revision 2 of the buffer (From ACPI spec) */ |
151 | 152 | ||
152 | /* First 32-bit dword, bits 0:32 */ | 153 | /* First 32-bit dword, bits 0:32 */ |
diff --git a/include/acpi/acconfig.h b/include/acpi/acconfig.h index 03aacfb3e98b..e11611ca72a4 100644 --- a/include/acpi/acconfig.h +++ b/include/acpi/acconfig.h | |||
@@ -136,10 +136,6 @@ | |||
136 | 136 | ||
137 | #define ACPI_ROOT_TABLE_SIZE_INCREMENT 4 | 137 | #define ACPI_ROOT_TABLE_SIZE_INCREMENT 4 |
138 | 138 | ||
139 | /* Maximum number of While() loop iterations before forced abort */ | ||
140 | |||
141 | #define ACPI_MAX_LOOP_ITERATIONS 0xFFFF | ||
142 | |||
143 | /* Maximum sleep allowed via Sleep() operator */ | 139 | /* Maximum sleep allowed via Sleep() operator */ |
144 | 140 | ||
145 | #define ACPI_MAX_SLEEP 2000 /* 2000 millisec == two seconds */ | 141 | #define ACPI_MAX_SLEEP 2000 /* 2000 millisec == two seconds */ |
diff --git a/include/acpi/acexcep.h b/include/acpi/acexcep.h index 11c3a011dcbf..9f20eb4acaa6 100644 --- a/include/acpi/acexcep.h +++ b/include/acpi/acexcep.h | |||
@@ -192,8 +192,9 @@ struct acpi_exception_info { | |||
192 | #define AE_AML_BAD_RESOURCE_LENGTH EXCEP_AML (0x001F) | 192 | #define AE_AML_BAD_RESOURCE_LENGTH EXCEP_AML (0x001F) |
193 | #define AE_AML_ILLEGAL_ADDRESS EXCEP_AML (0x0020) | 193 | #define AE_AML_ILLEGAL_ADDRESS EXCEP_AML (0x0020) |
194 | #define AE_AML_INFINITE_LOOP EXCEP_AML (0x0021) | 194 | #define AE_AML_INFINITE_LOOP EXCEP_AML (0x0021) |
195 | #define AE_AML_UNINITIALIZED_NODE EXCEP_AML (0x0022) | ||
195 | 196 | ||
196 | #define AE_CODE_AML_MAX 0x0021 | 197 | #define AE_CODE_AML_MAX 0x0022 |
197 | 198 | ||
198 | /* | 199 | /* |
199 | * Internal exceptions used for control | 200 | * Internal exceptions used for control |
@@ -355,7 +356,9 @@ static const struct acpi_exception_info acpi_gbl_exception_names_aml[] = { | |||
355 | EXCEP_TXT("AE_AML_ILLEGAL_ADDRESS", | 356 | EXCEP_TXT("AE_AML_ILLEGAL_ADDRESS", |
356 | "A memory, I/O, or PCI configuration address is invalid"), | 357 | "A memory, I/O, or PCI configuration address is invalid"), |
357 | EXCEP_TXT("AE_AML_INFINITE_LOOP", | 358 | EXCEP_TXT("AE_AML_INFINITE_LOOP", |
358 | "An apparent infinite AML While loop, method was aborted") | 359 | "An apparent infinite AML While loop, method was aborted"), |
360 | EXCEP_TXT("AE_AML_UNINITIALIZED_NODE", | ||
361 | "A namespace node is uninitialized or unresolved") | ||
359 | }; | 362 | }; |
360 | 363 | ||
361 | static const struct acpi_exception_info acpi_gbl_exception_names_ctrl[] = { | 364 | static const struct acpi_exception_info acpi_gbl_exception_names_ctrl[] = { |
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h index f56de8c5d844..908d4f9c348c 100644 --- a/include/acpi/acoutput.h +++ b/include/acpi/acoutput.h | |||
@@ -88,7 +88,8 @@ | |||
88 | #define ACPI_LV_DEBUG_OBJECT 0x00000002 | 88 | #define ACPI_LV_DEBUG_OBJECT 0x00000002 |
89 | #define ACPI_LV_INFO 0x00000004 | 89 | #define ACPI_LV_INFO 0x00000004 |
90 | #define ACPI_LV_REPAIR 0x00000008 | 90 | #define ACPI_LV_REPAIR 0x00000008 |
91 | #define ACPI_LV_ALL_EXCEPTIONS 0x0000000F | 91 | #define ACPI_LV_TRACE_POINT 0x00000010 |
92 | #define ACPI_LV_ALL_EXCEPTIONS 0x0000001F | ||
92 | 93 | ||
93 | /* Trace verbosity level 1 [Standard Trace Level] */ | 94 | /* Trace verbosity level 1 [Standard Trace Level] */ |
94 | 95 | ||
@@ -147,6 +148,7 @@ | |||
147 | #define ACPI_DB_DEBUG_OBJECT ACPI_DEBUG_LEVEL (ACPI_LV_DEBUG_OBJECT) | 148 | #define ACPI_DB_DEBUG_OBJECT ACPI_DEBUG_LEVEL (ACPI_LV_DEBUG_OBJECT) |
148 | #define ACPI_DB_INFO ACPI_DEBUG_LEVEL (ACPI_LV_INFO) | 149 | #define ACPI_DB_INFO ACPI_DEBUG_LEVEL (ACPI_LV_INFO) |
149 | #define ACPI_DB_REPAIR ACPI_DEBUG_LEVEL (ACPI_LV_REPAIR) | 150 | #define ACPI_DB_REPAIR ACPI_DEBUG_LEVEL (ACPI_LV_REPAIR) |
151 | #define ACPI_DB_TRACE_POINT ACPI_DEBUG_LEVEL (ACPI_LV_TRACE_POINT) | ||
150 | #define ACPI_DB_ALL_EXCEPTIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALL_EXCEPTIONS) | 152 | #define ACPI_DB_ALL_EXCEPTIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALL_EXCEPTIONS) |
151 | 153 | ||
152 | /* Trace level -- also used in the global "DebugLevel" */ | 154 | /* Trace level -- also used in the global "DebugLevel" */ |
@@ -182,6 +184,20 @@ | |||
182 | #define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR) | 184 | #define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR) |
183 | #define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL) | 185 | #define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL) |
184 | 186 | ||
187 | /* | ||
188 | * Global trace flags | ||
189 | */ | ||
190 | #define ACPI_TRACE_ENABLED ((u32) 4) | ||
191 | #define ACPI_TRACE_ONESHOT ((u32) 2) | ||
192 | #define ACPI_TRACE_OPCODE ((u32) 1) | ||
193 | |||
194 | /* Defaults for trace debugging level/layer */ | ||
195 | |||
196 | #define ACPI_TRACE_LEVEL_ALL ACPI_LV_ALL | ||
197 | #define ACPI_TRACE_LAYER_ALL 0x000001FF | ||
198 | #define ACPI_TRACE_LEVEL_DEFAULT ACPI_LV_TRACE_POINT | ||
199 | #define ACPI_TRACE_LAYER_DEFAULT ACPI_EXECUTER | ||
200 | |||
185 | #if defined (ACPI_DEBUG_OUTPUT) || !defined (ACPI_NO_ERROR_MESSAGES) | 201 | #if defined (ACPI_DEBUG_OUTPUT) || !defined (ACPI_NO_ERROR_MESSAGES) |
186 | /* | 202 | /* |
187 | * The module name is used primarily for error and debug messages. | 203 | * The module name is used primarily for error and debug messages. |
@@ -432,6 +448,8 @@ | |||
432 | #define ACPI_DUMP_PATHNAME(a, b, c, d) acpi_ns_dump_pathname(a, b, c, d) | 448 | #define ACPI_DUMP_PATHNAME(a, b, c, d) acpi_ns_dump_pathname(a, b, c, d) |
433 | #define ACPI_DUMP_BUFFER(a, b) acpi_ut_debug_dump_buffer((u8 *) a, b, DB_BYTE_DISPLAY, _COMPONENT) | 449 | #define ACPI_DUMP_BUFFER(a, b) acpi_ut_debug_dump_buffer((u8 *) a, b, DB_BYTE_DISPLAY, _COMPONENT) |
434 | 450 | ||
451 | #define ACPI_TRACE_POINT(a, b, c, d) acpi_trace_point (a, b, c, d) | ||
452 | |||
435 | #else /* ACPI_DEBUG_OUTPUT */ | 453 | #else /* ACPI_DEBUG_OUTPUT */ |
436 | /* | 454 | /* |
437 | * This is the non-debug case -- make everything go away, | 455 | * This is the non-debug case -- make everything go away, |
@@ -453,6 +471,7 @@ | |||
453 | #define ACPI_DUMP_PATHNAME(a, b, c, d) | 471 | #define ACPI_DUMP_PATHNAME(a, b, c, d) |
454 | #define ACPI_DUMP_BUFFER(a, b) | 472 | #define ACPI_DUMP_BUFFER(a, b) |
455 | #define ACPI_IS_DEBUG_ENABLED(level, component) 0 | 473 | #define ACPI_IS_DEBUG_ENABLED(level, component) 0 |
474 | #define ACPI_TRACE_POINT(a, b, c, d) | ||
456 | 475 | ||
457 | /* Return macros must have a return statement at the minimum */ | 476 | /* Return macros must have a return statement at the minimum */ |
458 | 477 | ||
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 83061cac719b..5ba8fb64f664 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -16,10 +16,6 @@ | |||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 | * General Public License for more details. | 17 | * General Public License for more details. |
18 | * | 18 | * |
19 | * You should have received a copy of the GNU General Public License along | ||
20 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
21 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | ||
22 | * | ||
23 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 19 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
24 | */ | 20 | */ |
25 | 21 | ||
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index ea6428b7dacb..29c691265b49 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -16,10 +16,6 @@ | |||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 | * General Public License for more details. | 17 | * General Public License for more details. |
18 | * | 18 | * |
19 | * You should have received a copy of the GNU General Public License along | ||
20 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
21 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | ||
22 | * | ||
23 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 19 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
24 | */ | 20 | */ |
25 | 21 | ||
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index d02df0a49d98..a54ad1cc990c 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h | |||
@@ -430,4 +430,10 @@ long acpi_os_get_file_offset(ACPI_FILE file); | |||
430 | acpi_status acpi_os_set_file_offset(ACPI_FILE file, long offset, u8 from); | 430 | acpi_status acpi_os_set_file_offset(ACPI_FILE file, long offset, u8 from); |
431 | #endif | 431 | #endif |
432 | 432 | ||
433 | #ifndef ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_trace_point | ||
434 | void | ||
435 | acpi_os_trace_point(acpi_trace_event_type type, | ||
436 | u8 begin, u8 *aml, char *pathname); | ||
437 | #endif | ||
438 | |||
433 | #endif /* __ACPIOSXF_H__ */ | 439 | #endif /* __ACPIOSXF_H__ */ |
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index e8ec18a4a634..c33eeabde160 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 0x20150619 | 49 | #define ACPI_CA_VERSION 0x20150818 |
50 | 50 | ||
51 | #include <acpi/acconfig.h> | 51 | #include <acpi/acconfig.h> |
52 | #include <acpi/actypes.h> | 52 | #include <acpi/actypes.h> |
@@ -251,7 +251,9 @@ ACPI_INIT_GLOBAL(u8, acpi_gbl_reduced_hardware, FALSE); | |||
251 | * traced each time it is executed. | 251 | * traced each time it is executed. |
252 | */ | 252 | */ |
253 | ACPI_INIT_GLOBAL(u32, acpi_gbl_trace_flags, 0); | 253 | ACPI_INIT_GLOBAL(u32, acpi_gbl_trace_flags, 0); |
254 | ACPI_INIT_GLOBAL(acpi_name, acpi_gbl_trace_method_name, 0); | 254 | ACPI_INIT_GLOBAL(const char *, acpi_gbl_trace_method_name, NULL); |
255 | ACPI_INIT_GLOBAL(u32, acpi_gbl_trace_dbg_level, ACPI_TRACE_LEVEL_DEFAULT); | ||
256 | ACPI_INIT_GLOBAL(u32, acpi_gbl_trace_dbg_layer, ACPI_TRACE_LAYER_DEFAULT); | ||
255 | 257 | ||
256 | /* | 258 | /* |
257 | * Runtime configuration of debug output control masks. We want the debug | 259 | * Runtime configuration of debug output control masks. We want the debug |
@@ -504,7 +506,7 @@ ACPI_EXTERNAL_RETURN_STATUS(acpi_status | |||
504 | acpi_object_handler handler, | 506 | acpi_object_handler handler, |
505 | void **data)) | 507 | void **data)) |
506 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status | 508 | ACPI_EXTERNAL_RETURN_STATUS(acpi_status |
507 | acpi_debug_trace(char *name, u32 debug_level, | 509 | acpi_debug_trace(const char *name, u32 debug_level, |
508 | u32 debug_layer, u32 flags)) | 510 | u32 debug_layer, u32 flags)) |
509 | 511 | ||
510 | /* | 512 | /* |
@@ -907,9 +909,17 @@ ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6) | |||
907 | const char *module_name, | 909 | const char *module_name, |
908 | u32 component_id, | 910 | u32 component_id, |
909 | const char *format, ...)) | 911 | const char *format, ...)) |
912 | |||
913 | ACPI_DBG_DEPENDENT_RETURN_VOID(void | ||
914 | acpi_trace_point(acpi_trace_event_type type, | ||
915 | u8 begin, | ||
916 | u8 *aml, char *pathname)) | ||
910 | ACPI_APP_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(1) | 917 | ACPI_APP_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(1) |
911 | void ACPI_INTERNAL_VAR_XFACE | 918 | void ACPI_INTERNAL_VAR_XFACE |
912 | acpi_log_error(const char *format, ...)) | 919 | acpi_log_error(const char *format, ...)) |
920 | acpi_status acpi_initialize_debugger(void); | ||
921 | |||
922 | void acpi_terminate_debugger(void); | ||
913 | 923 | ||
914 | /* | 924 | /* |
915 | * Divergences | 925 | * Divergences |
diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index a948fc586b9b..6e28f544b7b2 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h | |||
@@ -1186,20 +1186,29 @@ enum acpi_spmi_interface_types { | |||
1186 | * December 19, 2014 | 1186 | * December 19, 2014 |
1187 | * | 1187 | * |
1188 | * NOTE: There are two versions of the table with the same signature -- | 1188 | * NOTE: There are two versions of the table with the same signature -- |
1189 | * the client version and the server version. | 1189 | * the client version and the server version. The common platform_class |
1190 | * field is used to differentiate the two types of tables. | ||
1190 | * | 1191 | * |
1191 | ******************************************************************************/ | 1192 | ******************************************************************************/ |
1192 | 1193 | ||
1193 | struct acpi_table_tcpa_client { | 1194 | struct acpi_table_tcpa_hdr { |
1194 | struct acpi_table_header header; /* Common ACPI table header */ | 1195 | struct acpi_table_header header; /* Common ACPI table header */ |
1195 | u16 platform_class; | 1196 | u16 platform_class; |
1197 | }; | ||
1198 | |||
1199 | /* | ||
1200 | * Values for platform_class above. | ||
1201 | * This is how the client and server subtables are differentiated | ||
1202 | */ | ||
1203 | #define ACPI_TCPA_CLIENT_TABLE 0 | ||
1204 | #define ACPI_TCPA_SERVER_TABLE 1 | ||
1205 | |||
1206 | struct acpi_table_tcpa_client { | ||
1196 | u32 minimum_log_length; /* Minimum length for the event log area */ | 1207 | u32 minimum_log_length; /* Minimum length for the event log area */ |
1197 | u64 log_address; /* Address of the event log area */ | 1208 | u64 log_address; /* Address of the event log area */ |
1198 | }; | 1209 | }; |
1199 | 1210 | ||
1200 | struct acpi_table_tcpa_server { | 1211 | struct acpi_table_tcpa_server { |
1201 | struct acpi_table_header header; /* Common ACPI table header */ | ||
1202 | u16 platform_class; | ||
1203 | u16 reserved; | 1212 | u16 reserved; |
1204 | u64 minimum_log_length; /* Minimum length for the event log area */ | 1213 | u64 minimum_log_length; /* Minimum length for the event log area */ |
1205 | u64 log_address; /* Address of the event log area */ | 1214 | u64 log_address; /* Address of the event log area */ |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index c2a41d223162..f914958c4adb 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -662,6 +662,7 @@ typedef u32 acpi_object_type; | |||
662 | #define ACPI_TYPE_DEBUG_OBJECT 0x10 | 662 | #define ACPI_TYPE_DEBUG_OBJECT 0x10 |
663 | 663 | ||
664 | #define ACPI_TYPE_EXTERNAL_MAX 0x10 | 664 | #define ACPI_TYPE_EXTERNAL_MAX 0x10 |
665 | #define ACPI_NUM_TYPES (ACPI_TYPE_EXTERNAL_MAX + 1) | ||
665 | 666 | ||
666 | /* | 667 | /* |
667 | * These are object types that do not map directly to the ACPI | 668 | * These are object types that do not map directly to the ACPI |
@@ -683,6 +684,7 @@ typedef u32 acpi_object_type; | |||
683 | #define ACPI_TYPE_LOCAL_SCOPE 0x1B /* 1 Name, multiple object_list Nodes */ | 684 | #define ACPI_TYPE_LOCAL_SCOPE 0x1B /* 1 Name, multiple object_list Nodes */ |
684 | 685 | ||
685 | #define ACPI_TYPE_NS_NODE_MAX 0x1B /* Last typecode used within a NS Node */ | 686 | #define ACPI_TYPE_NS_NODE_MAX 0x1B /* Last typecode used within a NS Node */ |
687 | #define ACPI_TOTAL_TYPES (ACPI_TYPE_NS_NODE_MAX + 1) | ||
686 | 688 | ||
687 | /* | 689 | /* |
688 | * These are special object types that never appear in | 690 | * These are special object types that never appear in |
@@ -985,7 +987,8 @@ struct acpi_buffer { | |||
985 | */ | 987 | */ |
986 | #define ACPI_FULL_PATHNAME 0 | 988 | #define ACPI_FULL_PATHNAME 0 |
987 | #define ACPI_SINGLE_NAME 1 | 989 | #define ACPI_SINGLE_NAME 1 |
988 | #define ACPI_NAME_TYPE_MAX 1 | 990 | #define ACPI_FULL_PATHNAME_NO_TRAILING 2 |
991 | #define ACPI_NAME_TYPE_MAX 2 | ||
989 | 992 | ||
990 | /* | 993 | /* |
991 | * Predefined Namespace items | 994 | * Predefined Namespace items |
@@ -1246,6 +1249,14 @@ struct acpi_memory_list { | |||
1246 | #endif | 1249 | #endif |
1247 | }; | 1250 | }; |
1248 | 1251 | ||
1252 | /* Definitions of trace event types */ | ||
1253 | |||
1254 | typedef enum { | ||
1255 | ACPI_TRACE_AML_METHOD, | ||
1256 | ACPI_TRACE_AML_OPCODE, | ||
1257 | ACPI_TRACE_AML_REGION | ||
1258 | } acpi_trace_event_type; | ||
1259 | |||
1249 | /* Definitions of _OSI support */ | 1260 | /* Definitions of _OSI support */ |
1250 | 1261 | ||
1251 | #define ACPI_VENDOR_STRINGS 0x01 | 1262 | #define ACPI_VENDOR_STRINGS 0x01 |
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index 3cedd43943f4..ec00e2bb029e 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi/platform/acenv.h | |||
@@ -70,13 +70,14 @@ | |||
70 | 70 | ||
71 | #ifdef ACPI_ASL_COMPILER | 71 | #ifdef ACPI_ASL_COMPILER |
72 | #define ACPI_APPLICATION | 72 | #define ACPI_APPLICATION |
73 | #define ACPI_DISASSEMBLER | ||
74 | #define ACPI_DEBUG_OUTPUT | 73 | #define ACPI_DEBUG_OUTPUT |
75 | #define ACPI_CONSTANT_EVAL_ONLY | 74 | #define ACPI_CONSTANT_EVAL_ONLY |
76 | #define ACPI_LARGE_NAMESPACE_NODE | 75 | #define ACPI_LARGE_NAMESPACE_NODE |
77 | #define ACPI_DATA_TABLE_DISASSEMBLY | 76 | #define ACPI_DATA_TABLE_DISASSEMBLY |
78 | #define ACPI_SINGLE_THREADED | 77 | #define ACPI_SINGLE_THREADED |
79 | #define ACPI_32BIT_PHYSICAL_ADDRESS | 78 | #define ACPI_32BIT_PHYSICAL_ADDRESS |
79 | |||
80 | #define ACPI_DISASSEMBLER 1 | ||
80 | #endif | 81 | #endif |
81 | 82 | ||
82 | /* acpi_exec configuration. Multithreaded with full AML debugger */ | 83 | /* acpi_exec configuration. Multithreaded with full AML debugger */ |
@@ -89,8 +90,8 @@ | |||
89 | #endif | 90 | #endif |
90 | 91 | ||
91 | /* | 92 | /* |
92 | * acpi_bin/acpi_dump/acpi_help/acpi_names/acpi_src/acpi_xtract/Example configuration. | 93 | * acpi_bin/acpi_dump/acpi_help/acpi_names/acpi_src/acpi_xtract/Example |
93 | * All single threaded. | 94 | * configuration. All single threaded. |
94 | */ | 95 | */ |
95 | #if (defined ACPI_BIN_APP) || \ | 96 | #if (defined ACPI_BIN_APP) || \ |
96 | (defined ACPI_DUMP_APP) || \ | 97 | (defined ACPI_DUMP_APP) || \ |
@@ -123,7 +124,7 @@ | |||
123 | #define ACPI_USE_NATIVE_RSDP_POINTER | 124 | #define ACPI_USE_NATIVE_RSDP_POINTER |
124 | #endif | 125 | #endif |
125 | 126 | ||
126 | /* acpi_dump configuration. Native mapping used if provied by OSPMs */ | 127 | /* acpi_dump configuration. Native mapping used if provided by the host */ |
127 | 128 | ||
128 | #ifdef ACPI_DUMP_APP | 129 | #ifdef ACPI_DUMP_APP |
129 | #define ACPI_USE_NATIVE_MEMORY_MAPPING | 130 | #define ACPI_USE_NATIVE_MEMORY_MAPPING |
@@ -151,12 +152,12 @@ | |||
151 | #define ACPI_USE_LOCAL_CACHE | 152 | #define ACPI_USE_LOCAL_CACHE |
152 | #endif | 153 | #endif |
153 | 154 | ||
154 | /* Common debug support */ | 155 | /* Common debug/disassembler support */ |
155 | 156 | ||
156 | #ifdef ACPI_FULL_DEBUG | 157 | #ifdef ACPI_FULL_DEBUG |
157 | #define ACPI_DEBUGGER | ||
158 | #define ACPI_DEBUG_OUTPUT | 158 | #define ACPI_DEBUG_OUTPUT |
159 | #define ACPI_DISASSEMBLER | 159 | #define ACPI_DEBUGGER 1 |
160 | #define ACPI_DISASSEMBLER 1 | ||
160 | #endif | 161 | #endif |
161 | 162 | ||
162 | 163 | ||
@@ -323,8 +324,8 @@ | |||
323 | * ACPI_USE_STANDARD_HEADERS - Define this if linking to a C library and | 324 | * ACPI_USE_STANDARD_HEADERS - Define this if linking to a C library and |
324 | * the standard header files may be used. | 325 | * the standard header files may be used. |
325 | * | 326 | * |
326 | * The ACPICA subsystem only uses low level C library functions that do not call | 327 | * The ACPICA subsystem only uses low level C library functions that do not |
327 | * operating system services and may therefore be inlined in the code. | 328 | * call operating system services and may therefore be inlined in the code. |
328 | * | 329 | * |
329 | * It may be necessary to tailor these include files to the target | 330 | * It may be necessary to tailor these include files to the target |
330 | * generation environment. | 331 | * generation environment. |
diff --git a/include/acpi/platform/acenvex.h b/include/acpi/platform/acenvex.h index 0a7dc8e583b1..2f296cb5f7e2 100644 --- a/include/acpi/platform/acenvex.h +++ b/include/acpi/platform/acenvex.h | |||
@@ -56,6 +56,9 @@ | |||
56 | #if defined(_LINUX) || defined(__linux__) | 56 | #if defined(_LINUX) || defined(__linux__) |
57 | #include <acpi/platform/aclinuxex.h> | 57 | #include <acpi/platform/aclinuxex.h> |
58 | 58 | ||
59 | #elif defined(WIN32) | ||
60 | #include "acwinex.h" | ||
61 | |||
59 | #elif defined(_AED_EFI) | 62 | #elif defined(_AED_EFI) |
60 | #include "acefiex.h" | 63 | #include "acefiex.h" |
61 | 64 | ||
diff --git a/include/acpi/platform/acmsvcex.h b/include/acpi/platform/acmsvcex.h new file mode 100644 index 000000000000..b64797488775 --- /dev/null +++ b/include/acpi/platform/acmsvcex.h | |||
@@ -0,0 +1,54 @@ | |||
1 | /****************************************************************************** | ||
2 | * | ||
3 | * Name: acmsvcex.h - Extra VC specific defines, etc. | ||
4 | * | ||
5 | *****************************************************************************/ | ||
6 | |||
7 | /* | ||
8 | * Copyright (C) 2000 - 2015, Intel Corp. | ||
9 | * All rights reserved. | ||
10 | * | ||
11 | * Redistribution and use in source and binary forms, with or without | ||
12 | * modification, are permitted provided that the following conditions | ||
13 | * are met: | ||
14 | * 1. Redistributions of source code must retain the above copyright | ||
15 | * notice, this list of conditions, and the following disclaimer, | ||
16 | * without modification. | ||
17 | * 2. Redistributions in binary form must reproduce at minimum a disclaimer | ||
18 | * substantially similar to the "NO WARRANTY" disclaimer below | ||
19 | * ("Disclaimer") and any redistribution must be conditioned upon | ||
20 | * including a substantially similar Disclaimer requirement for further | ||
21 | * binary redistribution. | ||
22 | * 3. Neither the names of the above-listed copyright holders nor the names | ||
23 | * of any contributors may be used to endorse or promote products derived | ||
24 | * from this software without specific prior written permission. | ||
25 | * | ||
26 | * Alternatively, this software may be distributed under the terms of the | ||
27 | * GNU General Public License ("GPL") version 2 as published by the Free | ||
28 | * Software Foundation. | ||
29 | * | ||
30 | * NO WARRANTY | ||
31 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
32 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
33 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR | ||
34 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
35 | * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
37 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
38 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
39 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | ||
40 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
41 | * POSSIBILITY OF SUCH DAMAGES. | ||
42 | */ | ||
43 | |||
44 | #ifndef __ACMSVCEX_H__ | ||
45 | #define __ACMSVCEX_H__ | ||
46 | |||
47 | /* Debug support. */ | ||
48 | |||
49 | #ifdef _DEBUG | ||
50 | #define _CRTDBG_MAP_ALLOC /* Enables specific file/lineno for leaks */ | ||
51 | #include <crtdbg.h> | ||
52 | #endif | ||
53 | |||
54 | #endif /* __ACMSVCEX_H__ */ | ||
diff --git a/include/acpi/platform/acwinex.h b/include/acpi/platform/acwinex.h new file mode 100644 index 000000000000..6ed1d713509b --- /dev/null +++ b/include/acpi/platform/acwinex.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /****************************************************************************** | ||
2 | * | ||
3 | * Name: acwinex.h - Extra OS specific defines, etc. | ||
4 | * | ||
5 | *****************************************************************************/ | ||
6 | |||
7 | /* | ||
8 | * Copyright (C) 2000 - 2015, Intel Corp. | ||
9 | * All rights reserved. | ||
10 | * | ||
11 | * Redistribution and use in source and binary forms, with or without | ||
12 | * modification, are permitted provided that the following conditions | ||
13 | * are met: | ||
14 | * 1. Redistributions of source code must retain the above copyright | ||
15 | * notice, this list of conditions, and the following disclaimer, | ||
16 | * without modification. | ||
17 | * 2. Redistributions in binary form must reproduce at minimum a disclaimer | ||
18 | * substantially similar to the "NO WARRANTY" disclaimer below | ||
19 | * ("Disclaimer") and any redistribution must be conditioned upon | ||
20 | * including a substantially similar Disclaimer requirement for further | ||
21 | * binary redistribution. | ||
22 | * 3. Neither the names of the above-listed copyright holders nor the names | ||
23 | * of any contributors may be used to endorse or promote products derived | ||
24 | * from this software without specific prior written permission. | ||
25 | * | ||
26 | * Alternatively, this software may be distributed under the terms of the | ||
27 | * GNU General Public License ("GPL") version 2 as published by the Free | ||
28 | * Software Foundation. | ||
29 | * | ||
30 | * NO WARRANTY | ||
31 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
32 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
33 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR | ||
34 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
35 | * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
37 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
38 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
39 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | ||
40 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
41 | * POSSIBILITY OF SUCH DAMAGES. | ||
42 | */ | ||
43 | |||
44 | #ifndef __ACWINEX_H__ | ||
45 | #define __ACWINEX_H__ | ||
46 | |||
47 | /* Windows uses VC */ | ||
48 | |||
49 | #endif /* __ACWINEX_H__ */ | ||