diff options
author | Len Brown <len.brown@intel.com> | 2005-08-04 18:09:09 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-08-04 18:09:09 -0400 |
commit | 5d2a22079c825669d91a3a200332f1053b4b61b0 (patch) | |
tree | 2e6e88bbcc3e17535fdf3103540b246b3658e20b /include/acpi/aclocal.h | |
parent | 1c5ad84516ae7ea4ec868436a910a6bd8d20215a (diff) | |
parent | bd6dbdf3c7b9784fbf5d8500e427a954e27a976a (diff) |
/home/lenb/src/to-akpm branch 'acpi-2.6.12'
Diffstat (limited to 'include/acpi/aclocal.h')
-rw-r--r-- | include/acpi/aclocal.h | 84 |
1 files changed, 37 insertions, 47 deletions
diff --git a/include/acpi/aclocal.h b/include/acpi/aclocal.h index 030e641115cb..4d2635698e10 100644 --- a/include/acpi/aclocal.h +++ b/include/acpi/aclocal.h | |||
@@ -56,6 +56,13 @@ typedef u32 acpi_mutex_handle; | |||
56 | #define AML_NUM_OPCODES 0x7F | 56 | #define AML_NUM_OPCODES 0x7F |
57 | 57 | ||
58 | 58 | ||
59 | /* Forward declarations */ | ||
60 | |||
61 | struct acpi_walk_state ; | ||
62 | struct acpi_obj_mutex; | ||
63 | union acpi_parse_object ; | ||
64 | |||
65 | |||
59 | /***************************************************************************** | 66 | /***************************************************************************** |
60 | * | 67 | * |
61 | * Mutex typedefs and structs | 68 | * Mutex typedefs and structs |
@@ -116,19 +123,24 @@ static char *acpi_gbl_mutex_names[] = | |||
116 | #endif | 123 | #endif |
117 | 124 | ||
118 | 125 | ||
126 | /* Owner IDs are used to track namespace nodes for selective deletion */ | ||
127 | |||
128 | typedef u8 acpi_owner_id; | ||
129 | #define ACPI_OWNER_ID_MAX 0xFF | ||
130 | |||
131 | /* This Thread ID means that the mutex is not in use (unlocked) */ | ||
132 | |||
133 | #define ACPI_MUTEX_NOT_ACQUIRED (u32) -1 | ||
134 | |||
119 | /* Table for the global mutexes */ | 135 | /* Table for the global mutexes */ |
120 | 136 | ||
121 | struct acpi_mutex_info | 137 | struct acpi_mutex_info |
122 | { | 138 | { |
123 | acpi_mutex mutex; | 139 | acpi_mutex mutex; |
124 | u32 use_count; | 140 | u32 use_count; |
125 | u32 owner_id; | 141 | u32 thread_id; |
126 | }; | 142 | }; |
127 | 143 | ||
128 | /* This owner ID means that the mutex is not in use (unlocked) */ | ||
129 | |||
130 | #define ACPI_MUTEX_NOT_ACQUIRED (u32) (-1) | ||
131 | |||
132 | 144 | ||
133 | /* Lock flag parameter for various interfaces */ | 145 | /* Lock flag parameter for various interfaces */ |
134 | 146 | ||
@@ -136,13 +148,6 @@ struct acpi_mutex_info | |||
136 | #define ACPI_MTX_LOCK 1 | 148 | #define ACPI_MTX_LOCK 1 |
137 | 149 | ||
138 | 150 | ||
139 | typedef u16 acpi_owner_id; | ||
140 | #define ACPI_OWNER_TYPE_TABLE 0x0 | ||
141 | #define ACPI_OWNER_TYPE_METHOD 0x1 | ||
142 | #define ACPI_FIRST_METHOD_ID 0x0001 | ||
143 | #define ACPI_FIRST_TABLE_ID 0xF000 | ||
144 | |||
145 | |||
146 | /* Field access granularities */ | 151 | /* Field access granularities */ |
147 | 152 | ||
148 | #define ACPI_FIELD_BYTE_GRANULARITY 1 | 153 | #define ACPI_FIELD_BYTE_GRANULARITY 1 |
@@ -185,13 +190,20 @@ struct acpi_namespace_node | |||
185 | { | 190 | { |
186 | u8 descriptor; /* Used to differentiate object descriptor types */ | 191 | u8 descriptor; /* Used to differentiate object descriptor types */ |
187 | u8 type; /* Type associated with this name */ | 192 | u8 type; /* Type associated with this name */ |
188 | u16 owner_id; | 193 | u16 reference_count; /* Current count of references and children */ |
189 | union acpi_name_union name; /* ACPI Name, always 4 chars per ACPI spec */ | 194 | union acpi_name_union name; /* ACPI Name, always 4 chars per ACPI spec */ |
190 | union acpi_operand_object *object; /* Pointer to attached ACPI object (optional) */ | 195 | union acpi_operand_object *object; /* Pointer to attached ACPI object (optional) */ |
191 | struct acpi_namespace_node *child; /* First child */ | 196 | struct acpi_namespace_node *child; /* First child */ |
192 | struct acpi_namespace_node *peer; /* Next peer*/ | 197 | struct acpi_namespace_node *peer; /* Next peer*/ |
193 | u16 reference_count; /* Current count of references and children */ | 198 | u8 owner_id; /* Who created this node */ |
194 | u8 flags; | 199 | u8 flags; |
200 | |||
201 | /* Fields used by the ASL compiler only */ | ||
202 | |||
203 | #ifdef ACPI_ASL_COMPILER | ||
204 | u32 value; | ||
205 | union acpi_parse_object *op; | ||
206 | #endif | ||
195 | }; | 207 | }; |
196 | 208 | ||
197 | 209 | ||
@@ -222,7 +234,7 @@ struct acpi_table_desc | |||
222 | u64 physical_address; | 234 | u64 physical_address; |
223 | u32 aml_length; | 235 | u32 aml_length; |
224 | acpi_size length; | 236 | acpi_size length; |
225 | acpi_owner_id table_id; | 237 | acpi_owner_id owner_id; |
226 | u8 type; | 238 | u8 type; |
227 | u8 allocation; | 239 | u8 allocation; |
228 | u8 loaded_into_namespace; | 240 | u8 loaded_into_namespace; |
@@ -365,7 +377,7 @@ struct acpi_gpe_xrupt_info | |||
365 | struct acpi_gpe_xrupt_info *previous; | 377 | struct acpi_gpe_xrupt_info *previous; |
366 | struct acpi_gpe_xrupt_info *next; | 378 | struct acpi_gpe_xrupt_info *next; |
367 | struct acpi_gpe_block_info *gpe_block_list_head; /* List of GPE blocks for this xrupt */ | 379 | struct acpi_gpe_block_info *gpe_block_list_head; /* List of GPE blocks for this xrupt */ |
368 | u32 interrupt_level; /* System interrupt level */ | 380 | u32 interrupt_number; /* System interrupt number */ |
369 | }; | 381 | }; |
370 | 382 | ||
371 | 383 | ||
@@ -420,13 +432,6 @@ struct acpi_field_info | |||
420 | #define ACPI_CONTROL_PREDICATE_TRUE 0xC4 | 432 | #define ACPI_CONTROL_PREDICATE_TRUE 0xC4 |
421 | 433 | ||
422 | 434 | ||
423 | /* Forward declarations */ | ||
424 | |||
425 | struct acpi_walk_state ; | ||
426 | struct acpi_obj_mutex; | ||
427 | union acpi_parse_object ; | ||
428 | |||
429 | |||
430 | #define ACPI_STATE_COMMON /* Two 32-bit fields and a pointer */\ | 435 | #define ACPI_STATE_COMMON /* Two 32-bit fields and a pointer */\ |
431 | u8 data_type; /* To differentiate various internal objs */\ | 436 | u8 data_type; /* To differentiate various internal objs */\ |
432 | u8 flags; \ | 437 | u8 flags; \ |
@@ -737,6 +742,7 @@ struct acpi_parse_state | |||
737 | ****************************************************************************/ | 742 | ****************************************************************************/ |
738 | 743 | ||
739 | #define PCI_ROOT_HID_STRING "PNP0A03" | 744 | #define PCI_ROOT_HID_STRING "PNP0A03" |
745 | #define PCI_EXPRESS_ROOT_HID_STRING "PNP0A08" | ||
740 | 746 | ||
741 | struct acpi_bit_register_info | 747 | struct acpi_bit_register_info |
742 | { | 748 | { |
@@ -915,14 +921,6 @@ struct acpi_integrity_info | |||
915 | * | 921 | * |
916 | ****************************************************************************/ | 922 | ****************************************************************************/ |
917 | 923 | ||
918 | struct acpi_debug_print_info | ||
919 | { | ||
920 | u32 component_id; | ||
921 | char *proc_name; | ||
922 | char *module_name; | ||
923 | }; | ||
924 | |||
925 | |||
926 | /* Entry for a memory allocation (debug only) */ | 924 | /* Entry for a memory allocation (debug only) */ |
927 | 925 | ||
928 | #define ACPI_MEM_MALLOC 0 | 926 | #define ACPI_MEM_MALLOC 0 |
@@ -952,24 +950,18 @@ struct acpi_debug_mem_block | |||
952 | 950 | ||
953 | #define ACPI_MEM_LIST_GLOBAL 0 | 951 | #define ACPI_MEM_LIST_GLOBAL 0 |
954 | #define ACPI_MEM_LIST_NSNODE 1 | 952 | #define ACPI_MEM_LIST_NSNODE 1 |
955 | 953 | #define ACPI_MEM_LIST_MAX 1 | |
956 | #define ACPI_MEM_LIST_FIRST_CACHE_LIST 2 | 954 | #define ACPI_NUM_MEM_LISTS 2 |
957 | #define ACPI_MEM_LIST_STATE 2 | ||
958 | #define ACPI_MEM_LIST_PSNODE 3 | ||
959 | #define ACPI_MEM_LIST_PSNODE_EXT 4 | ||
960 | #define ACPI_MEM_LIST_OPERAND 5 | ||
961 | #define ACPI_MEM_LIST_WALK 6 | ||
962 | #define ACPI_MEM_LIST_MAX 6 | ||
963 | #define ACPI_NUM_MEM_LISTS 7 | ||
964 | 955 | ||
965 | 956 | ||
966 | struct acpi_memory_list | 957 | struct acpi_memory_list |
967 | { | 958 | { |
959 | char *list_name; | ||
968 | void *list_head; | 960 | void *list_head; |
969 | u16 link_offset; | ||
970 | u16 max_cache_depth; | ||
971 | u16 cache_depth; | ||
972 | u16 object_size; | 961 | u16 object_size; |
962 | u16 max_depth; | ||
963 | u16 current_depth; | ||
964 | u16 link_offset; | ||
973 | 965 | ||
974 | #ifdef ACPI_DBG_TRACK_ALLOCATIONS | 966 | #ifdef ACPI_DBG_TRACK_ALLOCATIONS |
975 | 967 | ||
@@ -978,11 +970,9 @@ struct acpi_memory_list | |||
978 | u32 total_allocated; | 970 | u32 total_allocated; |
979 | u32 total_freed; | 971 | u32 total_freed; |
980 | u32 current_total_size; | 972 | u32 current_total_size; |
981 | u32 cache_requests; | 973 | u32 requests; |
982 | u32 cache_hits; | 974 | u32 hits; |
983 | char *list_name; | ||
984 | #endif | 975 | #endif |
985 | }; | 976 | }; |
986 | 977 | ||
987 | |||
988 | #endif /* __ACLOCAL_H__ */ | 978 | #endif /* __ACLOCAL_H__ */ |