diff options
author | Bob Moore <robert.moore@intel.com> | 2008-12-30 14:01:23 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-12-31 01:15:40 -0500 |
commit | 50df4d8b0f6e1971b930f3158c9ee0e4263e636d (patch) | |
tree | bb2dbcf70009cab8af7011ec6f3cdfc1b9b7d14d /include/acpi/aclocal.h | |
parent | ea7e96e0f2277107d9ea14c3f16c86ba82b2e560 (diff) |
ACPICA: Restructure includes into public/private
acpi.h now includes only the "public" acpica headers. All other
acpica headers are "private" and should not be included by acpica
users. One new file, accommon.h is used to include the commonly
used private headers for acpica code generation. Future plans
are to move all private headers to a new subdirectory.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/aclocal.h')
-rw-r--r-- | include/acpi/aclocal.h | 72 |
1 files changed, 6 insertions, 66 deletions
diff --git a/include/acpi/aclocal.h b/include/acpi/aclocal.h index b43496080fdf..492d02761bb7 100644 --- a/include/acpi/aclocal.h +++ b/include/acpi/aclocal.h | |||
@@ -46,8 +46,6 @@ | |||
46 | 46 | ||
47 | /* acpisrc:struct_defs -- for acpisrc conversion */ | 47 | /* acpisrc:struct_defs -- for acpisrc conversion */ |
48 | 48 | ||
49 | #define ACPI_WAIT_FOREVER 0xFFFF /* u16, as per ACPI spec */ | ||
50 | #define ACPI_DO_NOT_WAIT 0 | ||
51 | #define ACPI_SERIALIZED 0xFF | 49 | #define ACPI_SERIALIZED 0xFF |
52 | 50 | ||
53 | typedef u32 acpi_mutex_handle; | 51 | typedef u32 acpi_mutex_handle; |
@@ -120,11 +118,6 @@ static char *acpi_gbl_mutex_names[ACPI_NUM_MUTEX] = { | |||
120 | #define ACPI_MAX_LOCK 1 | 118 | #define ACPI_MAX_LOCK 1 |
121 | #define ACPI_NUM_LOCK ACPI_MAX_LOCK+1 | 119 | #define ACPI_NUM_LOCK ACPI_MAX_LOCK+1 |
122 | 120 | ||
123 | /* Owner IDs are used to track namespace nodes for selective deletion */ | ||
124 | |||
125 | typedef u8 acpi_owner_id; | ||
126 | #define ACPI_OWNER_ID_MAX 0xFF | ||
127 | |||
128 | /* This Thread ID means that the mutex is not in use (unlocked) */ | 121 | /* This Thread ID means that the mutex is not in use (unlocked) */ |
129 | 122 | ||
130 | #define ACPI_MUTEX_NOT_ACQUIRED (acpi_thread_id) 0 | 123 | #define ACPI_MUTEX_NOT_ACQUIRED (acpi_thread_id) 0 |
@@ -165,11 +158,6 @@ typedef enum { | |||
165 | ACPI_IMODE_EXECUTE = 0x03 | 158 | ACPI_IMODE_EXECUTE = 0x03 |
166 | } acpi_interpreter_mode; | 159 | } acpi_interpreter_mode; |
167 | 160 | ||
168 | union acpi_name_union { | ||
169 | u32 integer; | ||
170 | char ascii[4]; | ||
171 | }; | ||
172 | |||
173 | /* | 161 | /* |
174 | * The Namespace Node describes a named object that appears in the AML. | 162 | * The Namespace Node describes a named object that appears in the AML. |
175 | * descriptor_type is used to differentiate between internal descriptors. | 163 | * descriptor_type is used to differentiate between internal descriptors. |
@@ -216,26 +204,6 @@ struct acpi_namespace_node { | |||
216 | #define ANOBJ_IS_BIT_OFFSET 0x40 /* i_aSL only: Reference is a bit offset */ | 204 | #define ANOBJ_IS_BIT_OFFSET 0x40 /* i_aSL only: Reference is a bit offset */ |
217 | #define ANOBJ_IS_REFERENCED 0x80 /* i_aSL only: Object was referenced */ | 205 | #define ANOBJ_IS_REFERENCED 0x80 /* i_aSL only: Object was referenced */ |
218 | 206 | ||
219 | /* | ||
220 | * ACPI Table Descriptor. One per ACPI table | ||
221 | */ | ||
222 | struct acpi_table_desc { | ||
223 | acpi_physical_address address; | ||
224 | struct acpi_table_header *pointer; | ||
225 | u32 length; /* Length fixed at 32 bits */ | ||
226 | union acpi_name_union signature; | ||
227 | acpi_owner_id owner_id; | ||
228 | u8 flags; | ||
229 | }; | ||
230 | |||
231 | /* Flags for above */ | ||
232 | |||
233 | #define ACPI_TABLE_ORIGIN_UNKNOWN (0) | ||
234 | #define ACPI_TABLE_ORIGIN_MAPPED (1) | ||
235 | #define ACPI_TABLE_ORIGIN_ALLOCATED (2) | ||
236 | #define ACPI_TABLE_ORIGIN_MASK (3) | ||
237 | #define ACPI_TABLE_IS_LOADED (4) | ||
238 | |||
239 | /* One internal RSDT for table management */ | 207 | /* One internal RSDT for table management */ |
240 | 208 | ||
241 | struct acpi_internal_rsdt { | 209 | struct acpi_internal_rsdt { |
@@ -266,15 +234,6 @@ struct acpi_ns_search_data { | |||
266 | struct acpi_namespace_node *node; | 234 | struct acpi_namespace_node *node; |
267 | }; | 235 | }; |
268 | 236 | ||
269 | /* | ||
270 | * Predefined Namespace items | ||
271 | */ | ||
272 | struct acpi_predefined_names { | ||
273 | char *name; | ||
274 | u8 type; | ||
275 | char *val; | ||
276 | }; | ||
277 | |||
278 | /* Object types used during package copies */ | 237 | /* Object types used during package copies */ |
279 | 238 | ||
280 | #define ACPI_COPY_TYPE_SIMPLE 0 | 239 | #define ACPI_COPY_TYPE_SIMPLE 0 |
@@ -677,6 +636,12 @@ union acpi_parse_value { | |||
677 | union acpi_parse_object *arg; /* arguments and contained ops */ | 636 | union acpi_parse_object *arg; /* arguments and contained ops */ |
678 | }; | 637 | }; |
679 | 638 | ||
639 | #ifdef ACPI_DISASSEMBLER | ||
640 | #define ACPI_DISASM_ONLY_MEMBERS(a) a; | ||
641 | #else | ||
642 | #define ACPI_DISASM_ONLY_MEMBERS(a) | ||
643 | #endif | ||
644 | |||
680 | #define ACPI_PARSE_COMMON \ | 645 | #define ACPI_PARSE_COMMON \ |
681 | union acpi_parse_object *parent; /* Parent op */\ | 646 | union acpi_parse_object *parent; /* Parent op */\ |
682 | u8 descriptor_type; /* To differentiate various internal objs */\ | 647 | u8 descriptor_type; /* To differentiate various internal objs */\ |
@@ -796,9 +761,6 @@ struct acpi_parse_state { | |||
796 | * | 761 | * |
797 | ****************************************************************************/ | 762 | ****************************************************************************/ |
798 | 763 | ||
799 | #define PCI_ROOT_HID_STRING "PNP0A03" | ||
800 | #define PCI_EXPRESS_ROOT_HID_STRING "PNP0A08" | ||
801 | |||
802 | struct acpi_bit_register_info { | 764 | struct acpi_bit_register_info { |
803 | u8 parent_register; | 765 | u8 parent_register; |
804 | u8 bit_position; | 766 | u8 bit_position; |
@@ -1025,26 +987,4 @@ struct acpi_debug_mem_block { | |||
1025 | #define ACPI_MEM_LIST_MAX 1 | 987 | #define ACPI_MEM_LIST_MAX 1 |
1026 | #define ACPI_NUM_MEM_LISTS 2 | 988 | #define ACPI_NUM_MEM_LISTS 2 |
1027 | 989 | ||
1028 | struct acpi_memory_list { | ||
1029 | char *list_name; | ||
1030 | void *list_head; | ||
1031 | u16 object_size; | ||
1032 | u16 max_depth; | ||
1033 | u16 current_depth; | ||
1034 | u16 link_offset; | ||
1035 | |||
1036 | #ifdef ACPI_DBG_TRACK_ALLOCATIONS | ||
1037 | |||
1038 | /* Statistics for debug memory tracking only */ | ||
1039 | |||
1040 | u32 total_allocated; | ||
1041 | u32 total_freed; | ||
1042 | u32 max_occupied; | ||
1043 | u32 total_size; | ||
1044 | u32 current_total_size; | ||
1045 | u32 requests; | ||
1046 | u32 hits; | ||
1047 | #endif | ||
1048 | }; | ||
1049 | |||
1050 | #endif /* __ACLOCAL_H__ */ | 990 | #endif /* __ACLOCAL_H__ */ |