diff options
Diffstat (limited to 'include/acpi/acevents.h')
-rw-r--r-- | include/acpi/acevents.h | 241 |
1 files changed, 79 insertions, 162 deletions
diff --git a/include/acpi/acevents.h b/include/acpi/acevents.h index 61a27c8c507..bfa54600ecd 100644 --- a/include/acpi/acevents.h +++ b/include/acpi/acevents.h | |||
@@ -44,250 +44,167 @@ | |||
44 | #ifndef __ACEVENTS_H__ | 44 | #ifndef __ACEVENTS_H__ |
45 | #define __ACEVENTS_H__ | 45 | #define __ACEVENTS_H__ |
46 | 46 | ||
47 | |||
48 | /* | 47 | /* |
49 | * evevent | 48 | * evevent |
50 | */ | 49 | */ |
51 | acpi_status | 50 | acpi_status acpi_ev_initialize_events(void); |
52 | acpi_ev_initialize_events ( | ||
53 | void); | ||
54 | 51 | ||
55 | acpi_status | 52 | acpi_status acpi_ev_install_xrupt_handlers(void); |
56 | acpi_ev_install_xrupt_handlers ( | ||
57 | void); | ||
58 | |||
59 | u32 | ||
60 | acpi_ev_fixed_event_detect ( | ||
61 | void); | ||
62 | 53 | ||
54 | u32 acpi_ev_fixed_event_detect(void); | ||
63 | 55 | ||
64 | /* | 56 | /* |
65 | * evmisc | 57 | * evmisc |
66 | */ | 58 | */ |
67 | u8 | 59 | u8 acpi_ev_is_notify_object(struct acpi_namespace_node *node); |
68 | acpi_ev_is_notify_object ( | ||
69 | struct acpi_namespace_node *node); | ||
70 | 60 | ||
71 | acpi_status | 61 | acpi_status acpi_ev_acquire_global_lock(u16 timeout); |
72 | acpi_ev_acquire_global_lock( | ||
73 | u16 timeout); | ||
74 | 62 | ||
75 | acpi_status | 63 | acpi_status acpi_ev_release_global_lock(void); |
76 | acpi_ev_release_global_lock( | ||
77 | void); | ||
78 | 64 | ||
79 | acpi_status | 65 | acpi_status acpi_ev_init_global_lock_handler(void); |
80 | acpi_ev_init_global_lock_handler ( | ||
81 | void); | ||
82 | 66 | ||
83 | u32 | 67 | u32 acpi_ev_get_gpe_number_index(u32 gpe_number); |
84 | acpi_ev_get_gpe_number_index ( | ||
85 | u32 gpe_number); | ||
86 | 68 | ||
87 | acpi_status | 69 | acpi_status |
88 | acpi_ev_queue_notify_request ( | 70 | acpi_ev_queue_notify_request(struct acpi_namespace_node *node, |
89 | struct acpi_namespace_node *node, | 71 | u32 notify_value); |
90 | u32 notify_value); | ||
91 | |||
92 | 72 | ||
93 | /* | 73 | /* |
94 | * evgpe - GPE handling and dispatch | 74 | * evgpe - GPE handling and dispatch |
95 | */ | 75 | */ |
96 | acpi_status | 76 | acpi_status |
97 | acpi_ev_update_gpe_enable_masks ( | 77 | acpi_ev_update_gpe_enable_masks(struct acpi_gpe_event_info *gpe_event_info, |
98 | struct acpi_gpe_event_info *gpe_event_info, | 78 | u8 type); |
99 | u8 type); | ||
100 | 79 | ||
101 | acpi_status | 80 | acpi_status |
102 | acpi_ev_enable_gpe ( | 81 | acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info, |
103 | struct acpi_gpe_event_info *gpe_event_info, | 82 | u8 write_to_hardware); |
104 | u8 write_to_hardware); | ||
105 | 83 | ||
106 | acpi_status | 84 | acpi_status acpi_ev_disable_gpe(struct acpi_gpe_event_info *gpe_event_info); |
107 | acpi_ev_disable_gpe ( | ||
108 | struct acpi_gpe_event_info *gpe_event_info); | ||
109 | |||
110 | struct acpi_gpe_event_info * | ||
111 | acpi_ev_get_gpe_event_info ( | ||
112 | acpi_handle gpe_device, | ||
113 | u32 gpe_number); | ||
114 | 85 | ||
86 | struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device, | ||
87 | u32 gpe_number); | ||
115 | 88 | ||
116 | /* | 89 | /* |
117 | * evgpeblk | 90 | * evgpeblk |
118 | */ | 91 | */ |
119 | u8 | 92 | u8 acpi_ev_valid_gpe_event(struct acpi_gpe_event_info *gpe_event_info); |
120 | acpi_ev_valid_gpe_event ( | ||
121 | struct acpi_gpe_event_info *gpe_event_info); | ||
122 | |||
123 | acpi_status | ||
124 | acpi_ev_walk_gpe_list ( | ||
125 | ACPI_GPE_CALLBACK gpe_walk_callback, | ||
126 | u32 flags); | ||
127 | 93 | ||
128 | acpi_status | 94 | acpi_status acpi_ev_walk_gpe_list(ACPI_GPE_CALLBACK gpe_walk_callback); |
129 | acpi_ev_delete_gpe_handlers ( | ||
130 | struct acpi_gpe_xrupt_info *gpe_xrupt_info, | ||
131 | struct acpi_gpe_block_info *gpe_block); | ||
132 | 95 | ||
133 | acpi_status | 96 | acpi_status |
134 | acpi_ev_create_gpe_block ( | 97 | acpi_ev_delete_gpe_handlers(struct acpi_gpe_xrupt_info *gpe_xrupt_info, |
135 | struct acpi_namespace_node *gpe_device, | 98 | struct acpi_gpe_block_info *gpe_block); |
136 | struct acpi_generic_address *gpe_block_address, | ||
137 | u32 register_count, | ||
138 | u8 gpe_block_base_number, | ||
139 | u32 interrupt_level, | ||
140 | struct acpi_gpe_block_info **return_gpe_block); | ||
141 | 99 | ||
142 | acpi_status | 100 | acpi_status |
143 | acpi_ev_delete_gpe_block ( | 101 | acpi_ev_create_gpe_block(struct acpi_namespace_node *gpe_device, |
144 | struct acpi_gpe_block_info *gpe_block); | 102 | struct acpi_generic_address *gpe_block_address, |
103 | u32 register_count, | ||
104 | u8 gpe_block_base_number, | ||
105 | u32 interrupt_number, | ||
106 | struct acpi_gpe_block_info **return_gpe_block); | ||
145 | 107 | ||
146 | u32 | 108 | acpi_status acpi_ev_delete_gpe_block(struct acpi_gpe_block_info *gpe_block); |
147 | acpi_ev_gpe_dispatch ( | ||
148 | struct acpi_gpe_event_info *gpe_event_info, | ||
149 | u32 gpe_number); | ||
150 | 109 | ||
151 | u32 | 110 | u32 |
152 | acpi_ev_gpe_detect ( | 111 | acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, |
153 | struct acpi_gpe_xrupt_info *gpe_xrupt_list); | 112 | u32 gpe_number); |
154 | 113 | ||
155 | acpi_status | 114 | u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info *gpe_xrupt_list); |
156 | acpi_ev_set_gpe_type ( | ||
157 | struct acpi_gpe_event_info *gpe_event_info, | ||
158 | u8 type); | ||
159 | 115 | ||
160 | acpi_status | 116 | acpi_status |
161 | acpi_ev_check_for_wake_only_gpe ( | 117 | acpi_ev_set_gpe_type(struct acpi_gpe_event_info *gpe_event_info, u8 type); |
162 | struct acpi_gpe_event_info *gpe_event_info); | ||
163 | 118 | ||
164 | acpi_status | 119 | acpi_status |
165 | acpi_ev_gpe_initialize ( | 120 | acpi_ev_check_for_wake_only_gpe(struct acpi_gpe_event_info *gpe_event_info); |
166 | void); | ||
167 | 121 | ||
122 | acpi_status acpi_ev_gpe_initialize(void); | ||
168 | 123 | ||
169 | /* | 124 | /* |
170 | * evregion - Address Space handling | 125 | * evregion - Address Space handling |
171 | */ | 126 | */ |
172 | acpi_status | 127 | acpi_status acpi_ev_install_region_handlers(void); |
173 | acpi_ev_install_region_handlers ( | ||
174 | void); | ||
175 | 128 | ||
176 | acpi_status | 129 | acpi_status acpi_ev_initialize_op_regions(void); |
177 | acpi_ev_initialize_op_regions ( | ||
178 | void); | ||
179 | 130 | ||
180 | acpi_status | 131 | acpi_status |
181 | acpi_ev_address_space_dispatch ( | 132 | acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj, |
182 | union acpi_operand_object *region_obj, | 133 | u32 function, |
183 | u32 function, | 134 | acpi_physical_address address, |
184 | acpi_physical_address address, | 135 | u32 bit_width, void *value); |
185 | u32 bit_width, | ||
186 | void *value); | ||
187 | 136 | ||
188 | acpi_status | 137 | acpi_status |
189 | acpi_ev_attach_region ( | 138 | acpi_ev_attach_region(union acpi_operand_object *handler_obj, |
190 | union acpi_operand_object *handler_obj, | 139 | union acpi_operand_object *region_obj, |
191 | union acpi_operand_object *region_obj, | 140 | u8 acpi_ns_is_locked); |
192 | u8 acpi_ns_is_locked); | ||
193 | 141 | ||
194 | void | 142 | void |
195 | acpi_ev_detach_region ( | 143 | acpi_ev_detach_region(union acpi_operand_object *region_obj, |
196 | union acpi_operand_object *region_obj, | 144 | u8 acpi_ns_is_locked); |
197 | u8 acpi_ns_is_locked); | ||
198 | 145 | ||
199 | acpi_status | 146 | acpi_status |
200 | acpi_ev_install_space_handler ( | 147 | acpi_ev_install_space_handler(struct acpi_namespace_node *node, |
201 | struct acpi_namespace_node *node, | 148 | acpi_adr_space_type space_id, |
202 | acpi_adr_space_type space_id, | 149 | acpi_adr_space_handler handler, |
203 | acpi_adr_space_handler handler, | 150 | acpi_adr_space_setup setup, void *context); |
204 | acpi_adr_space_setup setup, | ||
205 | void *context); | ||
206 | 151 | ||
207 | acpi_status | 152 | acpi_status |
208 | acpi_ev_execute_reg_methods ( | 153 | acpi_ev_execute_reg_methods(struct acpi_namespace_node *node, |
209 | struct acpi_namespace_node *node, | 154 | acpi_adr_space_type space_id); |
210 | acpi_adr_space_type space_id); | ||
211 | 155 | ||
212 | acpi_status | 156 | acpi_status |
213 | acpi_ev_execute_reg_method ( | 157 | acpi_ev_execute_reg_method(union acpi_operand_object *region_obj, u32 function); |
214 | union acpi_operand_object *region_obj, | ||
215 | u32 function); | ||
216 | |||
217 | 158 | ||
218 | /* | 159 | /* |
219 | * evregini - Region initialization and setup | 160 | * evregini - Region initialization and setup |
220 | */ | 161 | */ |
221 | acpi_status | 162 | acpi_status |
222 | acpi_ev_system_memory_region_setup ( | 163 | acpi_ev_system_memory_region_setup(acpi_handle handle, |
223 | acpi_handle handle, | 164 | u32 function, |
224 | u32 function, | 165 | void *handler_context, |
225 | void *handler_context, | 166 | void **region_context); |
226 | void **region_context); | ||
227 | 167 | ||
228 | acpi_status | 168 | acpi_status |
229 | acpi_ev_io_space_region_setup ( | 169 | acpi_ev_io_space_region_setup(acpi_handle handle, |
230 | acpi_handle handle, | 170 | u32 function, |
231 | u32 function, | 171 | void *handler_context, void **region_context); |
232 | void *handler_context, | ||
233 | void **region_context); | ||
234 | 172 | ||
235 | acpi_status | 173 | acpi_status |
236 | acpi_ev_pci_config_region_setup ( | 174 | acpi_ev_pci_config_region_setup(acpi_handle handle, |
237 | acpi_handle handle, | 175 | u32 function, |
238 | u32 function, | 176 | void *handler_context, void **region_context); |
239 | void *handler_context, | ||
240 | void **region_context); | ||
241 | 177 | ||
242 | acpi_status | 178 | acpi_status |
243 | acpi_ev_cmos_region_setup ( | 179 | acpi_ev_cmos_region_setup(acpi_handle handle, |
244 | acpi_handle handle, | 180 | u32 function, |
245 | u32 function, | 181 | void *handler_context, void **region_context); |
246 | void *handler_context, | ||
247 | void **region_context); | ||
248 | 182 | ||
249 | acpi_status | 183 | acpi_status |
250 | acpi_ev_pci_bar_region_setup ( | 184 | acpi_ev_pci_bar_region_setup(acpi_handle handle, |
251 | acpi_handle handle, | 185 | u32 function, |
252 | u32 function, | 186 | void *handler_context, void **region_context); |
253 | void *handler_context, | ||
254 | void **region_context); | ||
255 | 187 | ||
256 | acpi_status | 188 | acpi_status |
257 | acpi_ev_default_region_setup ( | 189 | acpi_ev_default_region_setup(acpi_handle handle, |
258 | acpi_handle handle, | 190 | u32 function, |
259 | u32 function, | 191 | void *handler_context, void **region_context); |
260 | void *handler_context, | ||
261 | void **region_context); | ||
262 | 192 | ||
263 | acpi_status | 193 | acpi_status |
264 | acpi_ev_initialize_region ( | 194 | acpi_ev_initialize_region(union acpi_operand_object *region_obj, |
265 | union acpi_operand_object *region_obj, | 195 | u8 acpi_ns_locked); |
266 | u8 acpi_ns_locked); | ||
267 | |||
268 | 196 | ||
269 | /* | 197 | /* |
270 | * evsci - SCI (System Control Interrupt) handling/dispatch | 198 | * evsci - SCI (System Control Interrupt) handling/dispatch |
271 | */ | 199 | */ |
272 | u32 ACPI_SYSTEM_XFACE | 200 | u32 ACPI_SYSTEM_XFACE acpi_ev_gpe_xrupt_handler(void *context); |
273 | acpi_ev_gpe_xrupt_handler ( | ||
274 | void *context); | ||
275 | |||
276 | u32 | ||
277 | acpi_ev_install_sci_handler ( | ||
278 | void); | ||
279 | 201 | ||
280 | acpi_status | 202 | u32 acpi_ev_install_sci_handler(void); |
281 | acpi_ev_remove_sci_handler ( | ||
282 | void); | ||
283 | 203 | ||
284 | u32 | 204 | acpi_status acpi_ev_remove_sci_handler(void); |
285 | acpi_ev_initialize_sCI ( | ||
286 | u32 program_sCI); | ||
287 | 205 | ||
288 | void | 206 | u32 acpi_ev_initialize_sCI(u32 program_sCI); |
289 | acpi_ev_terminate ( | ||
290 | void); | ||
291 | 207 | ||
208 | void acpi_ev_terminate(void); | ||
292 | 209 | ||
293 | #endif /* __ACEVENTS_H__ */ | 210 | #endif /* __ACEVENTS_H__ */ |