diff options
Diffstat (limited to 'include/acpi/acevents.h')
-rw-r--r-- | include/acpi/acevents.h | 240 |
1 files changed, 79 insertions, 161 deletions
diff --git a/include/acpi/acevents.h b/include/acpi/acevents.h index 33ae2ca997b7..bfa54600ecd9 100644 --- a/include/acpi/acevents.h +++ b/include/acpi/acevents.h | |||
@@ -44,249 +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 | 93 | ||
127 | acpi_status | 94 | acpi_status acpi_ev_walk_gpe_list(ACPI_GPE_CALLBACK gpe_walk_callback); |
128 | acpi_ev_delete_gpe_handlers ( | ||
129 | struct acpi_gpe_xrupt_info *gpe_xrupt_info, | ||
130 | struct acpi_gpe_block_info *gpe_block); | ||
131 | 95 | ||
132 | acpi_status | 96 | acpi_status |
133 | acpi_ev_create_gpe_block ( | 97 | acpi_ev_delete_gpe_handlers(struct acpi_gpe_xrupt_info *gpe_xrupt_info, |
134 | struct acpi_namespace_node *gpe_device, | 98 | struct acpi_gpe_block_info *gpe_block); |
135 | struct acpi_generic_address *gpe_block_address, | ||
136 | u32 register_count, | ||
137 | u8 gpe_block_base_number, | ||
138 | u32 interrupt_number, | ||
139 | struct acpi_gpe_block_info **return_gpe_block); | ||
140 | 99 | ||
141 | acpi_status | 100 | acpi_status |
142 | acpi_ev_delete_gpe_block ( | 101 | acpi_ev_create_gpe_block(struct acpi_namespace_node *gpe_device, |
143 | 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); | ||
144 | 107 | ||
145 | u32 | 108 | acpi_status acpi_ev_delete_gpe_block(struct acpi_gpe_block_info *gpe_block); |
146 | acpi_ev_gpe_dispatch ( | ||
147 | struct acpi_gpe_event_info *gpe_event_info, | ||
148 | u32 gpe_number); | ||
149 | 109 | ||
150 | u32 | 110 | u32 |
151 | acpi_ev_gpe_detect ( | 111 | acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, |
152 | struct acpi_gpe_xrupt_info *gpe_xrupt_list); | 112 | u32 gpe_number); |
153 | 113 | ||
154 | acpi_status | 114 | u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info *gpe_xrupt_list); |
155 | acpi_ev_set_gpe_type ( | ||
156 | struct acpi_gpe_event_info *gpe_event_info, | ||
157 | u8 type); | ||
158 | 115 | ||
159 | acpi_status | 116 | acpi_status |
160 | acpi_ev_check_for_wake_only_gpe ( | 117 | acpi_ev_set_gpe_type(struct acpi_gpe_event_info *gpe_event_info, u8 type); |
161 | struct acpi_gpe_event_info *gpe_event_info); | ||
162 | 118 | ||
163 | acpi_status | 119 | acpi_status |
164 | acpi_ev_gpe_initialize ( | 120 | acpi_ev_check_for_wake_only_gpe(struct acpi_gpe_event_info *gpe_event_info); |
165 | void); | ||
166 | 121 | ||
122 | acpi_status acpi_ev_gpe_initialize(void); | ||
167 | 123 | ||
168 | /* | 124 | /* |
169 | * evregion - Address Space handling | 125 | * evregion - Address Space handling |
170 | */ | 126 | */ |
171 | acpi_status | 127 | acpi_status acpi_ev_install_region_handlers(void); |
172 | acpi_ev_install_region_handlers ( | ||
173 | void); | ||
174 | 128 | ||
175 | acpi_status | 129 | acpi_status acpi_ev_initialize_op_regions(void); |
176 | acpi_ev_initialize_op_regions ( | ||
177 | void); | ||
178 | 130 | ||
179 | acpi_status | 131 | acpi_status |
180 | acpi_ev_address_space_dispatch ( | 132 | acpi_ev_address_space_dispatch(union acpi_operand_object *region_obj, |
181 | union acpi_operand_object *region_obj, | 133 | u32 function, |
182 | u32 function, | 134 | acpi_physical_address address, |
183 | acpi_physical_address address, | 135 | u32 bit_width, void *value); |
184 | u32 bit_width, | ||
185 | void *value); | ||
186 | 136 | ||
187 | acpi_status | 137 | acpi_status |
188 | acpi_ev_attach_region ( | 138 | acpi_ev_attach_region(union acpi_operand_object *handler_obj, |
189 | union acpi_operand_object *handler_obj, | 139 | union acpi_operand_object *region_obj, |
190 | union acpi_operand_object *region_obj, | 140 | u8 acpi_ns_is_locked); |
191 | u8 acpi_ns_is_locked); | ||
192 | 141 | ||
193 | void | 142 | void |
194 | acpi_ev_detach_region ( | 143 | acpi_ev_detach_region(union acpi_operand_object *region_obj, |
195 | union acpi_operand_object *region_obj, | 144 | u8 acpi_ns_is_locked); |
196 | u8 acpi_ns_is_locked); | ||
197 | 145 | ||
198 | acpi_status | 146 | acpi_status |
199 | acpi_ev_install_space_handler ( | 147 | acpi_ev_install_space_handler(struct acpi_namespace_node *node, |
200 | struct acpi_namespace_node *node, | 148 | acpi_adr_space_type space_id, |
201 | acpi_adr_space_type space_id, | 149 | acpi_adr_space_handler handler, |
202 | acpi_adr_space_handler handler, | 150 | acpi_adr_space_setup setup, void *context); |
203 | acpi_adr_space_setup setup, | ||
204 | void *context); | ||
205 | 151 | ||
206 | acpi_status | 152 | acpi_status |
207 | acpi_ev_execute_reg_methods ( | 153 | acpi_ev_execute_reg_methods(struct acpi_namespace_node *node, |
208 | struct acpi_namespace_node *node, | 154 | acpi_adr_space_type space_id); |
209 | acpi_adr_space_type space_id); | ||
210 | 155 | ||
211 | acpi_status | 156 | acpi_status |
212 | acpi_ev_execute_reg_method ( | 157 | acpi_ev_execute_reg_method(union acpi_operand_object *region_obj, u32 function); |
213 | union acpi_operand_object *region_obj, | ||
214 | u32 function); | ||
215 | |||
216 | 158 | ||
217 | /* | 159 | /* |
218 | * evregini - Region initialization and setup | 160 | * evregini - Region initialization and setup |
219 | */ | 161 | */ |
220 | acpi_status | 162 | acpi_status |
221 | acpi_ev_system_memory_region_setup ( | 163 | acpi_ev_system_memory_region_setup(acpi_handle handle, |
222 | acpi_handle handle, | 164 | u32 function, |
223 | u32 function, | 165 | void *handler_context, |
224 | void *handler_context, | 166 | void **region_context); |
225 | void **region_context); | ||
226 | 167 | ||
227 | acpi_status | 168 | acpi_status |
228 | acpi_ev_io_space_region_setup ( | 169 | acpi_ev_io_space_region_setup(acpi_handle handle, |
229 | acpi_handle handle, | 170 | u32 function, |
230 | u32 function, | 171 | void *handler_context, void **region_context); |
231 | void *handler_context, | ||
232 | void **region_context); | ||
233 | 172 | ||
234 | acpi_status | 173 | acpi_status |
235 | acpi_ev_pci_config_region_setup ( | 174 | acpi_ev_pci_config_region_setup(acpi_handle handle, |
236 | acpi_handle handle, | 175 | u32 function, |
237 | u32 function, | 176 | void *handler_context, void **region_context); |
238 | void *handler_context, | ||
239 | void **region_context); | ||
240 | 177 | ||
241 | acpi_status | 178 | acpi_status |
242 | acpi_ev_cmos_region_setup ( | 179 | acpi_ev_cmos_region_setup(acpi_handle handle, |
243 | acpi_handle handle, | 180 | u32 function, |
244 | u32 function, | 181 | void *handler_context, void **region_context); |
245 | void *handler_context, | ||
246 | void **region_context); | ||
247 | 182 | ||
248 | acpi_status | 183 | acpi_status |
249 | acpi_ev_pci_bar_region_setup ( | 184 | acpi_ev_pci_bar_region_setup(acpi_handle handle, |
250 | acpi_handle handle, | 185 | u32 function, |
251 | u32 function, | 186 | void *handler_context, void **region_context); |
252 | void *handler_context, | ||
253 | void **region_context); | ||
254 | 187 | ||
255 | acpi_status | 188 | acpi_status |
256 | acpi_ev_default_region_setup ( | 189 | acpi_ev_default_region_setup(acpi_handle handle, |
257 | acpi_handle handle, | 190 | u32 function, |
258 | u32 function, | 191 | void *handler_context, void **region_context); |
259 | void *handler_context, | ||
260 | void **region_context); | ||
261 | 192 | ||
262 | acpi_status | 193 | acpi_status |
263 | acpi_ev_initialize_region ( | 194 | acpi_ev_initialize_region(union acpi_operand_object *region_obj, |
264 | union acpi_operand_object *region_obj, | 195 | u8 acpi_ns_locked); |
265 | u8 acpi_ns_locked); | ||
266 | |||
267 | 196 | ||
268 | /* | 197 | /* |
269 | * evsci - SCI (System Control Interrupt) handling/dispatch | 198 | * evsci - SCI (System Control Interrupt) handling/dispatch |
270 | */ | 199 | */ |
271 | u32 ACPI_SYSTEM_XFACE | 200 | u32 ACPI_SYSTEM_XFACE acpi_ev_gpe_xrupt_handler(void *context); |
272 | acpi_ev_gpe_xrupt_handler ( | ||
273 | void *context); | ||
274 | |||
275 | u32 | ||
276 | acpi_ev_install_sci_handler ( | ||
277 | void); | ||
278 | 201 | ||
279 | acpi_status | 202 | u32 acpi_ev_install_sci_handler(void); |
280 | acpi_ev_remove_sci_handler ( | ||
281 | void); | ||
282 | 203 | ||
283 | u32 | 204 | acpi_status acpi_ev_remove_sci_handler(void); |
284 | acpi_ev_initialize_sCI ( | ||
285 | u32 program_sCI); | ||
286 | 205 | ||
287 | void | 206 | u32 acpi_ev_initialize_sCI(u32 program_sCI); |
288 | acpi_ev_terminate ( | ||
289 | void); | ||
290 | 207 | ||
208 | void acpi_ev_terminate(void); | ||
291 | 209 | ||
292 | #endif /* __ACEVENTS_H__ */ | 210 | #endif /* __ACEVENTS_H__ */ |