~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/acpi/acpixf.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
/* Current ACPICA subsystem version in YYYYMMDD format */
48
48
 
49
 
#define ACPI_CA_VERSION                 0x20130725
 
49
#define ACPI_CA_VERSION                 0x20131115
50
50
 
51
51
#include <acpi/acconfig.h>
52
52
#include <acpi/actypes.h>
54
54
#include <acpi/acbuffer.h>
55
55
 
56
56
extern u8 acpi_gbl_permanent_mmap;
 
57
extern u32 acpi_rsdt_forced;
57
58
 
58
59
/*
59
60
 * Globals that are publically available
106
107
        static ACPI_INLINE prototype {return(AE_OK);}
107
108
 
108
109
#define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \
109
 
        static ACPI_INLINE prototype {}
 
110
        static ACPI_INLINE prototype {return;}
110
111
 
111
112
#endif                          /* !ACPI_REDUCED_HARDWARE */
112
113
 
113
 
extern u32 acpi_rsdt_forced;
114
114
/*
115
115
 * Initialization
116
116
 */
117
 
acpi_status
 
117
acpi_status __init
118
118
acpi_initialize_tables(struct acpi_table_desc *initial_storage,
119
119
                       u32 initial_table_count, u8 allow_resize);
120
120
 
121
121
acpi_status __init acpi_initialize_subsystem(void);
122
122
 
123
 
acpi_status acpi_enable_subsystem(u32 flags);
124
 
 
125
 
acpi_status acpi_initialize_objects(u32 flags);
126
 
 
127
 
acpi_status acpi_terminate(void);
 
123
acpi_status __init acpi_enable_subsystem(u32 flags);
 
124
 
 
125
acpi_status __init acpi_initialize_objects(u32 flags);
 
126
 
 
127
acpi_status __init acpi_terminate(void);
128
128
 
129
129
/*
130
130
 * Miscellaneous global interfaces
131
131
 */
132
132
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable(void))
 
133
 
133
134
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void))
134
135
#ifdef ACPI_FUTURE_USAGE
135
 
acpi_status acpi_subsystem_status(void);
 
136
 acpi_status acpi_subsystem_status(void);
136
137
#endif
137
138
 
138
139
#ifdef ACPI_FUTURE_USAGE
139
140
acpi_status acpi_get_system_info(struct acpi_buffer *ret_buffer);
140
141
#endif
141
142
 
 
143
acpi_status acpi_get_statistics(struct acpi_statistics *stats);
 
144
 
142
145
const char *acpi_format_exception(acpi_status exception);
143
146
 
144
147
acpi_status acpi_purge_cached_objects(void);
159
162
                       acpi_size length, struct acpi_pld_info **return_buffer);
160
163
 
161
164
/*
162
 
 * ACPI Memory management
163
 
 */
164
 
void *acpi_allocate(u32 size);
165
 
 
166
 
void *acpi_callocate(u32 size);
167
 
 
168
 
void acpi_free(void *address);
169
 
 
170
 
/*
171
165
 * ACPI table load/unload interfaces
172
166
 */
173
167
acpi_status acpi_load_table(struct acpi_table_header *table);
174
168
 
175
169
acpi_status acpi_unload_parent_table(acpi_handle object);
176
170
 
177
 
acpi_status acpi_load_tables(void);
 
171
acpi_status __init acpi_load_tables(void);
178
172
 
179
173
/*
180
174
 * ACPI table manipulation interfaces
181
175
 */
182
 
acpi_status acpi_reallocate_root_table(void);
 
176
acpi_status __init acpi_reallocate_root_table(void);
183
177
 
184
 
acpi_status acpi_find_root_pointer(acpi_size *rsdp_address);
 
178
acpi_status __init acpi_find_root_pointer(acpi_size *rsdp_address);
185
179
 
186
180
acpi_status acpi_unload_table_id(acpi_owner_id id);
187
181
 
193
187
acpi_get_table_with_size(acpi_string signature,
194
188
               u32 instance, struct acpi_table_header **out_table,
195
189
               acpi_size *tbl_size);
 
190
 
196
191
acpi_status
197
192
acpi_get_table(acpi_string signature,
198
193
               u32 instance, struct acpi_table_header **out_table);
280
275
acpi_install_initialization_handler(acpi_init_handler handler, u32 function);
281
276
 
282
277
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
283
 
                                acpi_install_global_event_handler
284
 
                                (acpi_gbl_event_handler handler, void *context))
 
278
                                acpi_install_sci_handler(acpi_sci_handler
 
279
                                                         address,
 
280
                                                         void *context))
 
281
 
 
282
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
 
283
                                 acpi_remove_sci_handler(acpi_sci_handler
 
284
                                                         address))
 
285
 
 
286
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
 
287
                                 acpi_install_global_event_handler
 
288
                                 (acpi_gbl_event_handler handler,
 
289
                                  void *context))
285
290
 
286
291
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
287
292
                                 acpi_install_fixed_event_handler(u32
290
295
                                                                  handler,
291
296
                                                                  void
292
297
                                                                  *context))
 
298
 
293
299
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
294
300
                                 acpi_remove_fixed_event_handler(u32 acpi_event,
295
301
                                                                 acpi_event_handler
296
302
                                                                 handler))
 
303
 
297
304
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
298
305
                                 acpi_install_gpe_handler(acpi_handle
299
306
                                                          gpe_device,
302
309
                                                          acpi_gpe_handler
303
310
                                                          address,
304
311
                                                          void *context))
 
312
 
305
313
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
306
314
                                 acpi_remove_gpe_handler(acpi_handle gpe_device,
307
315
                                                         u32 gpe_number,
338
346
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
339
347
                                acpi_acquire_global_lock(u16 timeout,
340
348
                                                         u32 *handle))
 
349
 
341
350
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
342
351
                                acpi_release_global_lock(u32 handle))
343
352
 
364
373
                                acpi_get_event_status(u32 event,
365
374
                                                      acpi_event_status
366
375
                                                      *event_status))
 
376
 
367
377
/*
368
378
 * General Purpose Event (GPE) Interfaces
369
379
 */
394
404
                                                        parent_device,
395
405
                                                        acpi_handle gpe_device,
396
406
                                                        u32 gpe_number))
 
407
 
397
408
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
398
409
                                 acpi_set_gpe_wake_mask(acpi_handle gpe_device,
399
410
                                                        u32 gpe_number,
400
411
                                                        u8 action))
 
412
 
401
413
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
402
414
                                 acpi_get_gpe_status(acpi_handle gpe_device,
403
415
                                                     u32 gpe_number,
419
431
                                                       *gpe_block_address,
420
432
                                                       u32 register_count,
421
433
                                                       u32 interrupt_number))
 
434
 
422
435
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
423
436
                                 acpi_remove_gpe_block(acpi_handle gpe_device))
424
437
 
493
506
 * Sleep/Wake interfaces
494
507
 */
495
508
acpi_status
496
 
acpi_get_sleep_type_data(u8 sleep_state, u8 * slp_typ_a, u8 * slp_typ_b);
 
509
acpi_get_sleep_type_data(u8 sleep_state, u8 *slp_typ_a, u8 *slp_typ_b);
497
510
 
498
511
acpi_status acpi_enter_sleep_state_prep(u8 sleep_state);
499
512
 
500
 
acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state);
 
513
acpi_status acpi_enter_sleep_state(u8 sleep_state);
501
514
 
502
 
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status asmlinkage acpi_enter_sleep_state_s4bios(void))
 
515
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enter_sleep_state_s4bios(void))
503
516
 
504
517
acpi_status acpi_leave_sleep_state_prep(u8 sleep_state);
505
518
 
508
521
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
509
522
                                acpi_set_firmware_waking_vector(u32
510
523
                                                                physical_address))
511
 
 
512
524
#if ACPI_MACHINE_WIDTH == 64
513
525
ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
514
526
                                acpi_set_firmware_waking_vector64(u64
532
544
/*
533
545
 * Error/Warning output
534
546
 */
 
547
ACPI_PRINTF_LIKE(3)
535
548
void ACPI_INTERNAL_VAR_XFACE
536
 
acpi_error(const char *module_name,
537
 
           u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
 
549
acpi_error(const char *module_name, u32 line_number, const char *format, ...);
538
550
 
 
551
ACPI_PRINTF_LIKE(4)
539
552
void ACPI_INTERNAL_VAR_XFACE
540
553
acpi_exception(const char *module_name,
541
 
               u32 line_number,
542
 
               acpi_status status, const char *format, ...) ACPI_PRINTF_LIKE(4);
543
 
 
544
 
void ACPI_INTERNAL_VAR_XFACE
545
 
acpi_warning(const char *module_name,
546
 
             u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
547
 
 
548
 
void ACPI_INTERNAL_VAR_XFACE
549
 
acpi_info(const char *module_name,
550
 
          u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
551
 
 
 
554
               u32 line_number, acpi_status status, const char *format, ...);
 
555
 
 
556
ACPI_PRINTF_LIKE(3)
 
557
void ACPI_INTERNAL_VAR_XFACE
 
558
acpi_warning(const char *module_name, u32 line_number, const char *format, ...);
 
559
 
 
560
ACPI_PRINTF_LIKE(3)
 
561
void ACPI_INTERNAL_VAR_XFACE
 
562
acpi_info(const char *module_name, u32 line_number, const char *format, ...);
 
563
 
 
564
ACPI_PRINTF_LIKE(3)
552
565
void ACPI_INTERNAL_VAR_XFACE
553
566
acpi_bios_error(const char *module_name,
554
 
                u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
 
567
                u32 line_number, const char *format, ...);
555
568
 
 
569
ACPI_PRINTF_LIKE(3)
556
570
void ACPI_INTERNAL_VAR_XFACE
557
571
acpi_bios_warning(const char *module_name,
558
 
                  u32 line_number, const char *format, ...) ACPI_PRINTF_LIKE(3);
 
572
                  u32 line_number, const char *format, ...);
559
573
 
560
574
/*
561
575
 * Debug output
562
576
 */
563
577
#ifdef ACPI_DEBUG_OUTPUT
564
578
 
 
579
ACPI_PRINTF_LIKE(6)
565
580
void ACPI_INTERNAL_VAR_XFACE
566
581
acpi_debug_print(u32 requested_debug_level,
567
582
                 u32 line_number,
568
583
                 const char *function_name,
569
584
                 const char *module_name,
570
 
                 u32 component_id, const char *format, ...) ACPI_PRINTF_LIKE(6);
 
585
                 u32 component_id, const char *format, ...);
571
586
 
 
587
ACPI_PRINTF_LIKE(6)
572
588
void ACPI_INTERNAL_VAR_XFACE
573
589
acpi_debug_print_raw(u32 requested_debug_level,
574
590
                     u32 line_number,
575
591
                     const char *function_name,
576
592
                     const char *module_name,
577
 
                     u32 component_id,
578
 
                     const char *format, ...) ACPI_PRINTF_LIKE(6);
 
593
                     u32 component_id, const char *format, ...);
579
594
#endif
580
595
 
581
596
#endif                          /* __ACXFACE_H__ */