1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44#define EXPORT_ACPI_INTERFACES
45#define DEFINE_ACPI_GLOBALS
46
47#include <acpi/acpi.h>
48#include "accommon.h"
49
50#define _COMPONENT ACPI_UTILITIES
51ACPI_MODULE_NAME("utglobal")
52
53
54
55
56
57
58
59const char *acpi_gbl_sleep_state_names[ACPI_S_STATE_COUNT] = {
60 "\\_S0_",
61 "\\_S1_",
62 "\\_S2_",
63 "\\_S3_",
64 "\\_S4_",
65 "\\_S5_"
66};
67
68const char *acpi_gbl_lowest_dstate_names[ACPI_NUM_sx_w_METHODS] = {
69 "_S0W",
70 "_S1W",
71 "_S2W",
72 "_S3W",
73 "_S4W"
74};
75
76const char *acpi_gbl_highest_dstate_names[ACPI_NUM_sx_d_METHODS] = {
77 "_S1D",
78 "_S2D",
79 "_S3D",
80 "_S4D"
81};
82
83
84
85const char acpi_gbl_lower_hex_digits[] = "0123456789abcdef";
86const char acpi_gbl_upper_hex_digits[] = "0123456789ABCDEF";
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104const struct acpi_predefined_names acpi_gbl_pre_defined_names[] = {
105 {"_GPE", ACPI_TYPE_LOCAL_SCOPE, NULL},
106 {"_PR_", ACPI_TYPE_LOCAL_SCOPE, NULL},
107 {"_SB_", ACPI_TYPE_DEVICE, NULL},
108 {"_SI_", ACPI_TYPE_LOCAL_SCOPE, NULL},
109 {"_TZ_", ACPI_TYPE_DEVICE, NULL},
110
111
112
113
114
115
116
117 {"_REV", ACPI_TYPE_INTEGER, ACPI_CAST_PTR(char, 2)},
118 {"_OS_", ACPI_TYPE_STRING, ACPI_OS_NAME},
119 {"_GL_", ACPI_TYPE_MUTEX, ACPI_CAST_PTR(char, 1)},
120
121#if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
122 {"_OSI", ACPI_TYPE_METHOD, ACPI_CAST_PTR(char, 1)},
123#endif
124
125
126
127 {NULL, ACPI_TYPE_ANY, NULL}
128};
129
130#if (!ACPI_REDUCED_HARDWARE)
131
132
133
134
135
136
137struct acpi_bit_register_info acpi_gbl_bit_register_info[ACPI_NUM_BITREG] = {
138
139
140 {ACPI_REGISTER_PM1_STATUS,
141 ACPI_BITPOSITION_TIMER_STATUS,
142 ACPI_BITMASK_TIMER_STATUS},
143 {ACPI_REGISTER_PM1_STATUS,
144 ACPI_BITPOSITION_BUS_MASTER_STATUS,
145 ACPI_BITMASK_BUS_MASTER_STATUS},
146 {ACPI_REGISTER_PM1_STATUS,
147 ACPI_BITPOSITION_GLOBAL_LOCK_STATUS,
148 ACPI_BITMASK_GLOBAL_LOCK_STATUS},
149 {ACPI_REGISTER_PM1_STATUS,
150 ACPI_BITPOSITION_POWER_BUTTON_STATUS,
151 ACPI_BITMASK_POWER_BUTTON_STATUS},
152 {ACPI_REGISTER_PM1_STATUS,
153 ACPI_BITPOSITION_SLEEP_BUTTON_STATUS,
154 ACPI_BITMASK_SLEEP_BUTTON_STATUS},
155 {ACPI_REGISTER_PM1_STATUS,
156 ACPI_BITPOSITION_RT_CLOCK_STATUS,
157 ACPI_BITMASK_RT_CLOCK_STATUS},
158 {ACPI_REGISTER_PM1_STATUS,
159 ACPI_BITPOSITION_WAKE_STATUS,
160 ACPI_BITMASK_WAKE_STATUS},
161 {ACPI_REGISTER_PM1_STATUS,
162 ACPI_BITPOSITION_PCIEXP_WAKE_STATUS,
163 ACPI_BITMASK_PCIEXP_WAKE_STATUS},
164
165 {ACPI_REGISTER_PM1_ENABLE,
166 ACPI_BITPOSITION_TIMER_ENABLE,
167 ACPI_BITMASK_TIMER_ENABLE},
168 {ACPI_REGISTER_PM1_ENABLE,
169 ACPI_BITPOSITION_GLOBAL_LOCK_ENABLE,
170 ACPI_BITMASK_GLOBAL_LOCK_ENABLE},
171 {ACPI_REGISTER_PM1_ENABLE,
172 ACPI_BITPOSITION_POWER_BUTTON_ENABLE,
173 ACPI_BITMASK_POWER_BUTTON_ENABLE},
174 {ACPI_REGISTER_PM1_ENABLE,
175 ACPI_BITPOSITION_SLEEP_BUTTON_ENABLE,
176 ACPI_BITMASK_SLEEP_BUTTON_ENABLE},
177 {ACPI_REGISTER_PM1_ENABLE,
178 ACPI_BITPOSITION_RT_CLOCK_ENABLE,
179 ACPI_BITMASK_RT_CLOCK_ENABLE},
180 {ACPI_REGISTER_PM1_ENABLE,
181 ACPI_BITPOSITION_PCIEXP_WAKE_DISABLE,
182 ACPI_BITMASK_PCIEXP_WAKE_DISABLE},
183
184 {ACPI_REGISTER_PM1_CONTROL,
185 ACPI_BITPOSITION_SCI_ENABLE,
186 ACPI_BITMASK_SCI_ENABLE},
187 {ACPI_REGISTER_PM1_CONTROL,
188 ACPI_BITPOSITION_BUS_MASTER_RLD,
189 ACPI_BITMASK_BUS_MASTER_RLD},
190 {ACPI_REGISTER_PM1_CONTROL,
191 ACPI_BITPOSITION_GLOBAL_LOCK_RELEASE,
192 ACPI_BITMASK_GLOBAL_LOCK_RELEASE},
193 {ACPI_REGISTER_PM1_CONTROL,
194 ACPI_BITPOSITION_SLEEP_TYPE,
195 ACPI_BITMASK_SLEEP_TYPE},
196 {ACPI_REGISTER_PM1_CONTROL,
197 ACPI_BITPOSITION_SLEEP_ENABLE,
198 ACPI_BITMASK_SLEEP_ENABLE},
199
200 {ACPI_REGISTER_PM2_CONTROL,
201 ACPI_BITPOSITION_ARB_DISABLE,
202 ACPI_BITMASK_ARB_DISABLE}
203};
204
205struct acpi_fixed_event_info acpi_gbl_fixed_event_info[ACPI_NUM_FIXED_EVENTS] = {
206 {ACPI_BITREG_TIMER_STATUS,
207 ACPI_BITREG_TIMER_ENABLE,
208 ACPI_BITMASK_TIMER_STATUS,
209 ACPI_BITMASK_TIMER_ENABLE},
210 {ACPI_BITREG_GLOBAL_LOCK_STATUS,
211 ACPI_BITREG_GLOBAL_LOCK_ENABLE,
212 ACPI_BITMASK_GLOBAL_LOCK_STATUS,
213 ACPI_BITMASK_GLOBAL_LOCK_ENABLE},
214 {ACPI_BITREG_POWER_BUTTON_STATUS,
215 ACPI_BITREG_POWER_BUTTON_ENABLE,
216 ACPI_BITMASK_POWER_BUTTON_STATUS,
217 ACPI_BITMASK_POWER_BUTTON_ENABLE},
218 {ACPI_BITREG_SLEEP_BUTTON_STATUS,
219 ACPI_BITREG_SLEEP_BUTTON_ENABLE,
220 ACPI_BITMASK_SLEEP_BUTTON_STATUS,
221 ACPI_BITMASK_SLEEP_BUTTON_ENABLE},
222 {ACPI_BITREG_RT_CLOCK_STATUS,
223 ACPI_BITREG_RT_CLOCK_ENABLE,
224 ACPI_BITMASK_RT_CLOCK_STATUS,
225 ACPI_BITMASK_RT_CLOCK_ENABLE},
226};
227#endif
228
229#if defined (ACPI_DISASSEMBLER) || defined (ACPI_ASL_COMPILER)
230
231
232
233const char *acpi_gbl_pld_panel_list[] = {
234 "TOP",
235 "BOTTOM",
236 "LEFT",
237 "RIGHT",
238 "FRONT",
239 "BACK",
240 "UNKNOWN",
241 NULL
242};
243
244const char *acpi_gbl_pld_vertical_position_list[] = {
245 "UPPER",
246 "CENTER",
247 "LOWER",
248 NULL
249};
250
251const char *acpi_gbl_pld_horizontal_position_list[] = {
252 "LEFT",
253 "CENTER",
254 "RIGHT",
255 NULL
256};
257
258const char *acpi_gbl_pld_shape_list[] = {
259 "ROUND",
260 "OVAL",
261 "SQUARE",
262 "VERTICALRECTANGLE",
263 "HORIZONTALRECTANGLE",
264 "VERTICALTRAPEZOID",
265 "HORIZONTALTRAPEZOID",
266 "UNKNOWN",
267 "CHAMFERED",
268 NULL
269};
270#endif
271
272
273
274ACPI_EXPORT_SYMBOL(acpi_gbl_FADT)
275ACPI_EXPORT_SYMBOL(acpi_dbg_level)
276ACPI_EXPORT_SYMBOL(acpi_dbg_layer)
277ACPI_EXPORT_SYMBOL(acpi_gpe_count)
278ACPI_EXPORT_SYMBOL(acpi_current_gpe_count)
279