diff options
Diffstat (limited to 'drivers/acpi/acpica/acevents.h')
-rw-r--r-- | drivers/acpi/acpica/acevents.h | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/drivers/acpi/acpica/acevents.h b/drivers/acpi/acpica/acevents.h index 36867cd70eac..bea3b4899183 100644 --- a/drivers/acpi/acpica/acevents.h +++ b/drivers/acpi/acpica/acevents.h | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2010, Intel Corp. | 8 | * Copyright (C) 2000 - 2011, Intel Corp. |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -51,8 +51,6 @@ acpi_status acpi_ev_initialize_events(void); | |||
51 | 51 | ||
52 | acpi_status acpi_ev_install_xrupt_handlers(void); | 52 | acpi_status acpi_ev_install_xrupt_handlers(void); |
53 | 53 | ||
54 | acpi_status acpi_ev_install_fadt_gpes(void); | ||
55 | |||
56 | u32 acpi_ev_fixed_event_detect(void); | 54 | u32 acpi_ev_fixed_event_detect(void); |
57 | 55 | ||
58 | /* | 56 | /* |
@@ -60,12 +58,6 @@ u32 acpi_ev_fixed_event_detect(void); | |||
60 | */ | 58 | */ |
61 | u8 acpi_ev_is_notify_object(struct acpi_namespace_node *node); | 59 | u8 acpi_ev_is_notify_object(struct acpi_namespace_node *node); |
62 | 60 | ||
63 | acpi_status acpi_ev_acquire_global_lock(u16 timeout); | ||
64 | |||
65 | acpi_status acpi_ev_release_global_lock(void); | ||
66 | |||
67 | acpi_status acpi_ev_init_global_lock_handler(void); | ||
68 | |||
69 | u32 acpi_ev_get_gpe_number_index(u32 gpe_number); | 61 | u32 acpi_ev_get_gpe_number_index(u32 gpe_number); |
70 | 62 | ||
71 | acpi_status | 63 | acpi_status |
@@ -73,6 +65,17 @@ acpi_ev_queue_notify_request(struct acpi_namespace_node *node, | |||
73 | u32 notify_value); | 65 | u32 notify_value); |
74 | 66 | ||
75 | /* | 67 | /* |
68 | * evglock - Global Lock support | ||
69 | */ | ||
70 | acpi_status acpi_ev_init_global_lock_handler(void); | ||
71 | |||
72 | acpi_status acpi_ev_acquire_global_lock(u16 timeout); | ||
73 | |||
74 | acpi_status acpi_ev_release_global_lock(void); | ||
75 | |||
76 | acpi_status acpi_ev_remove_global_lock_handler(void); | ||
77 | |||
78 | /* | ||
76 | * evgpe - Low-level GPE support | 79 | * evgpe - Low-level GPE support |
77 | */ | 80 | */ |
78 | u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info *gpe_xrupt_list); | 81 | u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info *gpe_xrupt_list); |
@@ -82,9 +85,9 @@ acpi_ev_update_gpe_enable_mask(struct acpi_gpe_event_info *gpe_event_info); | |||
82 | 85 | ||
83 | acpi_status acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info); | 86 | acpi_status acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info); |
84 | 87 | ||
85 | acpi_status acpi_raw_enable_gpe(struct acpi_gpe_event_info *gpe_event_info); | 88 | acpi_status acpi_ev_add_gpe_reference(struct acpi_gpe_event_info *gpe_event_info); |
86 | 89 | ||
87 | acpi_status acpi_raw_disable_gpe(struct acpi_gpe_event_info *gpe_event_info); | 90 | acpi_status acpi_ev_remove_gpe_reference(struct acpi_gpe_event_info *gpe_event_info); |
88 | 91 | ||
89 | struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device, | 92 | struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device, |
90 | u32 gpe_number); | 93 | u32 gpe_number); |
@@ -93,6 +96,8 @@ struct acpi_gpe_event_info *acpi_ev_low_get_gpe_info(u32 gpe_number, | |||
93 | struct acpi_gpe_block_info | 96 | struct acpi_gpe_block_info |
94 | *gpe_block); | 97 | *gpe_block); |
95 | 98 | ||
99 | acpi_status acpi_ev_finish_gpe(struct acpi_gpe_event_info *gpe_event_info); | ||
100 | |||
96 | /* | 101 | /* |
97 | * evgpeblk - Upper-level GPE block support | 102 | * evgpeblk - Upper-level GPE block support |
98 | */ | 103 | */ |
@@ -105,13 +110,15 @@ acpi_ev_create_gpe_block(struct acpi_namespace_node *gpe_device, | |||
105 | struct acpi_gpe_block_info **return_gpe_block); | 110 | struct acpi_gpe_block_info **return_gpe_block); |
106 | 111 | ||
107 | acpi_status | 112 | acpi_status |
108 | acpi_ev_initialize_gpe_block(struct acpi_namespace_node *gpe_device, | 113 | acpi_ev_initialize_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info, |
109 | struct acpi_gpe_block_info *gpe_block); | 114 | struct acpi_gpe_block_info *gpe_block, |
115 | void *context); | ||
110 | 116 | ||
111 | acpi_status acpi_ev_delete_gpe_block(struct acpi_gpe_block_info *gpe_block); | 117 | acpi_status acpi_ev_delete_gpe_block(struct acpi_gpe_block_info *gpe_block); |
112 | 118 | ||
113 | u32 | 119 | u32 |
114 | acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, | 120 | acpi_ev_gpe_dispatch(struct acpi_namespace_node *gpe_device, |
121 | struct acpi_gpe_event_info *gpe_event_info, | ||
115 | u32 gpe_number); | 122 | u32 gpe_number); |
116 | 123 | ||
117 | /* | 124 | /* |
@@ -125,10 +132,6 @@ acpi_status | |||
125 | acpi_ev_match_gpe_method(acpi_handle obj_handle, | 132 | acpi_ev_match_gpe_method(acpi_handle obj_handle, |
126 | u32 level, void *context, void **return_value); | 133 | u32 level, void *context, void **return_value); |
127 | 134 | ||
128 | acpi_status | ||
129 | acpi_ev_match_prw_and_gpe(acpi_handle obj_handle, | ||
130 | u32 level, void *context, void **return_value); | ||
131 | |||
132 | /* | 135 | /* |
133 | * evgpeutil - GPE utilities | 136 | * evgpeutil - GPE utilities |
134 | */ | 137 | */ |
@@ -137,6 +140,10 @@ acpi_ev_walk_gpe_list(acpi_gpe_callback gpe_walk_callback, void *context); | |||
137 | 140 | ||
138 | u8 acpi_ev_valid_gpe_event(struct acpi_gpe_event_info *gpe_event_info); | 141 | u8 acpi_ev_valid_gpe_event(struct acpi_gpe_event_info *gpe_event_info); |
139 | 142 | ||
143 | acpi_status | ||
144 | acpi_ev_get_gpe_device(struct acpi_gpe_xrupt_info *gpe_xrupt_info, | ||
145 | struct acpi_gpe_block_info *gpe_block, void *context); | ||
146 | |||
140 | struct acpi_gpe_xrupt_info *acpi_ev_get_gpe_xrupt_block(u32 interrupt_number); | 147 | struct acpi_gpe_xrupt_info *acpi_ev_get_gpe_xrupt_block(u32 interrupt_number); |
141 | 148 | ||
142 | acpi_status acpi_ev_delete_gpe_xrupt(struct acpi_gpe_xrupt_info *gpe_xrupt); | 149 | acpi_status acpi_ev_delete_gpe_xrupt(struct acpi_gpe_xrupt_info *gpe_xrupt); |