aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/aclocal.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/aclocal.h')
-rw-r--r--drivers/acpi/acpica/aclocal.h66
1 files changed, 51 insertions, 15 deletions
diff --git a/drivers/acpi/acpica/aclocal.h b/drivers/acpi/acpica/aclocal.h
index e3922ca20e7f..c816ee675094 100644
--- a/drivers/acpi/acpica/aclocal.h
+++ b/drivers/acpi/acpica/aclocal.h
@@ -299,7 +299,7 @@ acpi_status(*ACPI_INTERNAL_METHOD) (struct acpi_walk_state * walk_state);
299 * Information structure for ACPI predefined names. 299 * Information structure for ACPI predefined names.
300 * Each entry in the table contains the following items: 300 * Each entry in the table contains the following items:
301 * 301 *
302 * Name - The ACPI reserved name 302 * name - The ACPI reserved name
303 * param_count - Number of arguments to the method 303 * param_count - Number of arguments to the method
304 * expected_return_btypes - Allowed type(s) for the return value 304 * expected_return_btypes - Allowed type(s) for the return value
305 */ 305 */
@@ -404,6 +404,13 @@ struct acpi_gpe_handler_info {
404 u8 originally_enabled; /* True if GPE was originally enabled */ 404 u8 originally_enabled; /* True if GPE was originally enabled */
405}; 405};
406 406
407/* Notify info for implicit notify, multiple device objects */
408
409struct acpi_gpe_notify_info {
410 struct acpi_namespace_node *device_node; /* Device to be notified */
411 struct acpi_gpe_notify_info *next;
412};
413
407struct acpi_gpe_notify_object { 414struct acpi_gpe_notify_object {
408 struct acpi_namespace_node *node; 415 struct acpi_namespace_node *node;
409 struct acpi_gpe_notify_object *next; 416 struct acpi_gpe_notify_object *next;
@@ -412,7 +419,7 @@ struct acpi_gpe_notify_object {
412union acpi_gpe_dispatch_info { 419union acpi_gpe_dispatch_info {
413 struct acpi_namespace_node *method_node; /* Method node for this GPE level */ 420 struct acpi_namespace_node *method_node; /* Method node for this GPE level */
414 struct acpi_gpe_handler_info *handler; /* Installed GPE handler */ 421 struct acpi_gpe_handler_info *handler; /* Installed GPE handler */
415 struct acpi_gpe_notify_object device; /* List of _PRW devices for implicit notify */ 422 struct acpi_gpe_notify_info *notify_list; /* List of _PRW devices for implicit notifies */
416}; 423};
417 424
418/* 425/*
@@ -420,7 +427,7 @@ union acpi_gpe_dispatch_info {
420 * NOTE: Important to keep this struct as small as possible. 427 * NOTE: Important to keep this struct as small as possible.
421 */ 428 */
422struct acpi_gpe_event_info { 429struct acpi_gpe_event_info {
423 union acpi_gpe_dispatch_info dispatch; /* Either Method or Handler */ 430 union acpi_gpe_dispatch_info dispatch; /* Either Method, Handler, or notify_list */
424 struct acpi_gpe_register_info *register_info; /* Backpointer to register info */ 431 struct acpi_gpe_register_info *register_info; /* Backpointer to register info */
425 u8 flags; /* Misc info about this GPE */ 432 u8 flags; /* Misc info about this GPE */
426 u8 gpe_number; /* This GPE */ 433 u8 gpe_number; /* This GPE */
@@ -600,13 +607,22 @@ acpi_status(*acpi_parse_downwards) (struct acpi_walk_state * walk_state,
600 607
601typedef acpi_status(*acpi_parse_upwards) (struct acpi_walk_state * walk_state); 608typedef acpi_status(*acpi_parse_upwards) (struct acpi_walk_state * walk_state);
602 609
610/* Global handlers for AML Notifies */
611
612struct acpi_global_notify_handler {
613 acpi_notify_handler handler;
614 void *context;
615};
616
603/* 617/*
604 * Notify info - used to pass info to the deferred notify 618 * Notify info - used to pass info to the deferred notify
605 * handler/dispatcher. 619 * handler/dispatcher.
606 */ 620 */
607struct acpi_notify_info { 621struct acpi_notify_info {
608 ACPI_STATE_COMMON struct acpi_namespace_node *node; 622 ACPI_STATE_COMMON u8 handler_list_id;
609 union acpi_operand_object *handler_obj; 623 struct acpi_namespace_node *node;
624 union acpi_operand_object *handler_list_head;
625 struct acpi_global_notify_handler *global;
610}; 626};
611 627
612/* Generic state is union of structs above */ 628/* Generic state is union of structs above */
@@ -691,15 +707,18 @@ union acpi_parse_value {
691 u8 disasm_opcode; /* Subtype used for disassembly */\ 707 u8 disasm_opcode; /* Subtype used for disassembly */\
692 char aml_op_name[16]) /* Op name (debug only) */ 708 char aml_op_name[16]) /* Op name (debug only) */
693 709
694#define ACPI_DASM_BUFFER 0x00 710/* Flags for disasm_flags field above */
695#define ACPI_DASM_RESOURCE 0x01 711
696#define ACPI_DASM_STRING 0x02 712#define ACPI_DASM_BUFFER 0x00 /* Buffer is a simple data buffer */
697#define ACPI_DASM_UNICODE 0x03 713#define ACPI_DASM_RESOURCE 0x01 /* Buffer is a Resource Descriptor */
698#define ACPI_DASM_EISAID 0x04 714#define ACPI_DASM_STRING 0x02 /* Buffer is a ASCII string */
699#define ACPI_DASM_MATCHOP 0x05 715#define ACPI_DASM_UNICODE 0x03 /* Buffer is a Unicode string */
700#define ACPI_DASM_LNOT_PREFIX 0x06 716#define ACPI_DASM_PLD_METHOD 0x04 /* Buffer is a _PLD method bit-packed buffer */
701#define ACPI_DASM_LNOT_SUFFIX 0x07 717#define ACPI_DASM_EISAID 0x05 /* Integer is an EISAID */
702#define ACPI_DASM_IGNORE 0x08 718#define ACPI_DASM_MATCHOP 0x06 /* Parent opcode is a Match() operator */
719#define ACPI_DASM_LNOT_PREFIX 0x07 /* Start of a Lnot_equal (etc.) pair of opcodes */
720#define ACPI_DASM_LNOT_SUFFIX 0x08 /* End of a Lnot_equal (etc.) pair of opcodes */
721#define ACPI_DASM_IGNORE 0x09 /* Not used at this time */
703 722
704/* 723/*
705 * Generic operation (for example: If, While, Store) 724 * Generic operation (for example: If, While, Store)
@@ -718,7 +737,7 @@ struct acpi_parse_obj_named {
718 u32 name; /* 4-byte name or zero if no name */ 737 u32 name; /* 4-byte name or zero if no name */
719}; 738};
720 739
721/* This version is used by the i_aSL compiler only */ 740/* This version is used by the iASL compiler only */
722 741
723#define ACPI_MAX_PARSEOP_NAME 20 742#define ACPI_MAX_PARSEOP_NAME 20
724 743
@@ -787,6 +806,7 @@ struct acpi_parse_state {
787#define ACPI_PARSEOP_IGNORE 0x01 806#define ACPI_PARSEOP_IGNORE 0x01
788#define ACPI_PARSEOP_PARAMLIST 0x02 807#define ACPI_PARSEOP_PARAMLIST 0x02
789#define ACPI_PARSEOP_EMPTY_TERMLIST 0x04 808#define ACPI_PARSEOP_EMPTY_TERMLIST 0x04
809#define ACPI_PARSEOP_PREDEF_CHECKED 0x08
790#define ACPI_PARSEOP_SPECIAL 0x10 810#define ACPI_PARSEOP_SPECIAL 0x10
791 811
792/***************************************************************************** 812/*****************************************************************************
@@ -915,6 +935,7 @@ struct acpi_bit_register_info {
915#define ACPI_OSI_WIN_VISTA_SP1 0x09 935#define ACPI_OSI_WIN_VISTA_SP1 0x09
916#define ACPI_OSI_WIN_VISTA_SP2 0x0A 936#define ACPI_OSI_WIN_VISTA_SP2 0x0A
917#define ACPI_OSI_WIN_7 0x0B 937#define ACPI_OSI_WIN_7 0x0B
938#define ACPI_OSI_WIN_8 0x0C
918 939
919#define ACPI_ALWAYS_ILLEGAL 0x00 940#define ACPI_ALWAYS_ILLEGAL 0x00
920 941
@@ -1007,6 +1028,7 @@ struct acpi_port_info {
1007 ****************************************************************************/ 1028 ****************************************************************************/
1008 1029
1009struct acpi_db_method_info { 1030struct acpi_db_method_info {
1031 acpi_handle method;
1010 acpi_handle main_thread_gate; 1032 acpi_handle main_thread_gate;
1011 acpi_handle thread_complete_gate; 1033 acpi_handle thread_complete_gate;
1012 acpi_thread_id *threads; 1034 acpi_thread_id *threads;
@@ -1075,4 +1097,18 @@ struct acpi_debug_mem_block {
1075#define ACPI_MEM_LIST_MAX 1 1097#define ACPI_MEM_LIST_MAX 1
1076#define ACPI_NUM_MEM_LISTS 2 1098#define ACPI_NUM_MEM_LISTS 2
1077 1099
1100/*****************************************************************************
1101 *
1102 * Info/help support
1103 *
1104 ****************************************************************************/
1105
1106struct ah_predefined_name {
1107 char *name;
1108 char *description;
1109#ifndef ACPI_ASL_COMPILER
1110 char *action;
1111#endif
1112};
1113
1078#endif /* __ACLOCAL_H__ */ 1114#endif /* __ACLOCAL_H__ */