aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi/acevents.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/acpi/acevents.h')
-rw-r--r--include/acpi/acevents.h240
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 */
51acpi_status 50acpi_status acpi_ev_initialize_events(void);
52acpi_ev_initialize_events (
53 void);
54 51
55acpi_status 52acpi_status acpi_ev_install_xrupt_handlers(void);
56acpi_ev_install_xrupt_handlers (
57 void);
58
59u32
60acpi_ev_fixed_event_detect (
61 void);
62 53
54u32 acpi_ev_fixed_event_detect(void);
63 55
64/* 56/*
65 * evmisc 57 * evmisc
66 */ 58 */
67u8 59u8 acpi_ev_is_notify_object(struct acpi_namespace_node *node);
68acpi_ev_is_notify_object (
69 struct acpi_namespace_node *node);
70 60
71acpi_status 61acpi_status acpi_ev_acquire_global_lock(u16 timeout);
72acpi_ev_acquire_global_lock(
73 u16 timeout);
74 62
75acpi_status 63acpi_status acpi_ev_release_global_lock(void);
76acpi_ev_release_global_lock(
77 void);
78 64
79acpi_status 65acpi_status acpi_ev_init_global_lock_handler(void);
80acpi_ev_init_global_lock_handler (
81 void);
82 66
83u32 67u32 acpi_ev_get_gpe_number_index(u32 gpe_number);
84acpi_ev_get_gpe_number_index (
85 u32 gpe_number);
86 68
87acpi_status 69acpi_status
88acpi_ev_queue_notify_request ( 70acpi_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 */
96acpi_status 76acpi_status
97acpi_ev_update_gpe_enable_masks ( 77acpi_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
101acpi_status 80acpi_status
102acpi_ev_enable_gpe ( 81acpi_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
106acpi_status 84acpi_status acpi_ev_disable_gpe(struct acpi_gpe_event_info *gpe_event_info);
107acpi_ev_disable_gpe (
108 struct acpi_gpe_event_info *gpe_event_info);
109
110struct acpi_gpe_event_info *
111acpi_ev_get_gpe_event_info (
112 acpi_handle gpe_device,
113 u32 gpe_number);
114 85
86struct 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 */
119u8 92u8 acpi_ev_valid_gpe_event(struct acpi_gpe_event_info *gpe_event_info);
120acpi_ev_valid_gpe_event (
121 struct acpi_gpe_event_info *gpe_event_info);
122
123acpi_status
124acpi_ev_walk_gpe_list (
125 ACPI_GPE_CALLBACK gpe_walk_callback);
126 93
127acpi_status 94acpi_status acpi_ev_walk_gpe_list(ACPI_GPE_CALLBACK gpe_walk_callback);
128acpi_ev_delete_gpe_handlers (
129 struct acpi_gpe_xrupt_info *gpe_xrupt_info,
130 struct acpi_gpe_block_info *gpe_block);
131 95
132acpi_status 96acpi_status
133acpi_ev_create_gpe_block ( 97acpi_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
141acpi_status 100acpi_status
142acpi_ev_delete_gpe_block ( 101acpi_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
145u32 108acpi_status acpi_ev_delete_gpe_block(struct acpi_gpe_block_info *gpe_block);
146acpi_ev_gpe_dispatch (
147 struct acpi_gpe_event_info *gpe_event_info,
148 u32 gpe_number);
149 109
150u32 110u32
151acpi_ev_gpe_detect ( 111acpi_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
154acpi_status 114u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info *gpe_xrupt_list);
155acpi_ev_set_gpe_type (
156 struct acpi_gpe_event_info *gpe_event_info,
157 u8 type);
158 115
159acpi_status 116acpi_status
160acpi_ev_check_for_wake_only_gpe ( 117acpi_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
163acpi_status 119acpi_status
164acpi_ev_gpe_initialize ( 120acpi_ev_check_for_wake_only_gpe(struct acpi_gpe_event_info *gpe_event_info);
165 void);
166 121
122acpi_status acpi_ev_gpe_initialize(void);
167 123
168/* 124/*
169 * evregion - Address Space handling 125 * evregion - Address Space handling
170 */ 126 */
171acpi_status 127acpi_status acpi_ev_install_region_handlers(void);
172acpi_ev_install_region_handlers (
173 void);
174 128
175acpi_status 129acpi_status acpi_ev_initialize_op_regions(void);
176acpi_ev_initialize_op_regions (
177 void);
178 130
179acpi_status 131acpi_status
180acpi_ev_address_space_dispatch ( 132acpi_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
187acpi_status 137acpi_status
188acpi_ev_attach_region ( 138acpi_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
193void 142void
194acpi_ev_detach_region ( 143acpi_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
198acpi_status 146acpi_status
199acpi_ev_install_space_handler ( 147acpi_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
206acpi_status 152acpi_status
207acpi_ev_execute_reg_methods ( 153acpi_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
211acpi_status 156acpi_status
212acpi_ev_execute_reg_method ( 157acpi_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 */
220acpi_status 162acpi_status
221acpi_ev_system_memory_region_setup ( 163acpi_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
227acpi_status 168acpi_status
228acpi_ev_io_space_region_setup ( 169acpi_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
234acpi_status 173acpi_status
235acpi_ev_pci_config_region_setup ( 174acpi_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
241acpi_status 178acpi_status
242acpi_ev_cmos_region_setup ( 179acpi_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
248acpi_status 183acpi_status
249acpi_ev_pci_bar_region_setup ( 184acpi_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
255acpi_status 188acpi_status
256acpi_ev_default_region_setup ( 189acpi_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
262acpi_status 193acpi_status
263acpi_ev_initialize_region ( 194acpi_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 */
271u32 ACPI_SYSTEM_XFACE 200u32 ACPI_SYSTEM_XFACE acpi_ev_gpe_xrupt_handler(void *context);
272acpi_ev_gpe_xrupt_handler (
273 void *context);
274
275u32
276acpi_ev_install_sci_handler (
277 void);
278 201
279acpi_status 202u32 acpi_ev_install_sci_handler(void);
280acpi_ev_remove_sci_handler (
281 void);
282 203
283u32 204acpi_status acpi_ev_remove_sci_handler(void);
284acpi_ev_initialize_sCI (
285 u32 program_sCI);
286 205
287void 206u32 acpi_ev_initialize_sCI(u32 program_sCI);
288acpi_ev_terminate (
289 void);
290 207
208void acpi_ev_terminate(void);
291 209
292#endif /* __ACEVENTS_H__ */ 210#endif /* __ACEVENTS_H__ */