Print this page
update to acpica-unix2-20131218
acpica-unix2-20130823
PANKOVs restructure
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/sys/acpi/acevents.h
+++ new/usr/src/common/acpica/include/acevents.h
1 1 /******************************************************************************
2 2 *
3 3 * Name: acevents.h - Event subcomponent prototypes and defines
4 4 *
5 5 *****************************************************************************/
6 6
7 7 /*
8 - * Copyright (C) 2000 - 2011, Intel Corp.
8 + * Copyright (C) 2000 - 2013, Intel Corp.
9 9 * All rights reserved.
10 10 *
11 11 * Redistribution and use in source and binary forms, with or without
12 12 * modification, are permitted provided that the following conditions
13 13 * are met:
14 14 * 1. Redistributions of source code must retain the above copyright
15 15 * notice, this list of conditions, and the following disclaimer,
16 16 * without modification.
17 17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 18 * substantially similar to the "NO WARRANTY" disclaimer below
19 19 * ("Disclaimer") and any redistribution must be conditioned upon
20 20 * including a substantially similar Disclaimer requirement for further
21 21 * binary redistribution.
22 22 * 3. Neither the names of the above-listed copyright holders nor the names
23 23 * of any contributors may be used to endorse or promote products derived
24 24 * from this software without specific prior written permission.
25 25 *
26 26 * Alternatively, this software may be distributed under the terms of the
27 27 * GNU General Public License ("GPL") version 2 as published by the Free
28 28 * Software Foundation.
29 29 *
30 30 * NO WARRANTY
31 31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 41 * POSSIBILITY OF SUCH DAMAGES.
42 42 */
43 43
44 44 #ifndef __ACEVENTS_H__
45 45 #define __ACEVENTS_H__
46 46
47 47
48 48 /*
49 49 * evevent
50 50 */
51 51 ACPI_STATUS
52 52 AcpiEvInitializeEvents (
53 53 void);
54 54
55 55 ACPI_STATUS
56 56 AcpiEvInstallXruptHandlers (
57 57 void);
58 58
59 59 UINT32
60 60 AcpiEvFixedEventDetect (
61 61 void);
62 62
63 63
64 64 /*
65 65 * evmisc
66 66 */
67 67 BOOLEAN
68 68 AcpiEvIsNotifyObject (
69 69 ACPI_NAMESPACE_NODE *Node);
70 70
71 71 UINT32
72 72 AcpiEvGetGpeNumberIndex (
73 73 UINT32 GpeNumber);
74 74
75 75 ACPI_STATUS
76 76 AcpiEvQueueNotifyRequest (
77 77 ACPI_NAMESPACE_NODE *Node,
↓ open down ↓ |
59 lines elided |
↑ open up ↑ |
78 78 UINT32 NotifyValue);
79 79
80 80
81 81 /*
82 82 * evglock - Global Lock support
83 83 */
84 84 ACPI_STATUS
85 85 AcpiEvInitGlobalLockHandler (
86 86 void);
87 87
88 +ACPI_HW_DEPENDENT_RETURN_OK (
88 89 ACPI_STATUS
89 90 AcpiEvAcquireGlobalLock(
90 - UINT16 Timeout);
91 + UINT16 Timeout))
91 92
93 +ACPI_HW_DEPENDENT_RETURN_OK (
92 94 ACPI_STATUS
93 95 AcpiEvReleaseGlobalLock(
94 - void);
96 + void))
95 97
96 98 ACPI_STATUS
97 99 AcpiEvRemoveGlobalLockHandler (
98 100 void);
99 101
100 102
101 103 /*
102 104 * evgpe - Low-level GPE support
103 105 */
104 106 UINT32
105 107 AcpiEvGpeDetect (
106 108 ACPI_GPE_XRUPT_INFO *GpeXruptList);
107 109
108 110 ACPI_STATUS
109 111 AcpiEvUpdateGpeEnableMask (
110 112 ACPI_GPE_EVENT_INFO *GpeEventInfo);
111 113
112 114 ACPI_STATUS
113 115 AcpiEvEnableGpe (
114 116 ACPI_GPE_EVENT_INFO *GpeEventInfo);
115 117
116 118 ACPI_STATUS
117 119 AcpiEvAddGpeReference (
118 120 ACPI_GPE_EVENT_INFO *GpeEventInfo);
119 121
120 122 ACPI_STATUS
121 123 AcpiEvRemoveGpeReference (
122 124 ACPI_GPE_EVENT_INFO *GpeEventInfo);
123 125
124 126 ACPI_GPE_EVENT_INFO *
125 127 AcpiEvGetGpeEventInfo (
126 128 ACPI_HANDLE GpeDevice,
127 129 UINT32 GpeNumber);
128 130
129 131 ACPI_GPE_EVENT_INFO *
130 132 AcpiEvLowGetGpeInfo (
131 133 UINT32 GpeNumber,
132 134 ACPI_GPE_BLOCK_INFO *GpeBlock);
133 135
134 136 ACPI_STATUS
135 137 AcpiEvFinishGpe (
136 138 ACPI_GPE_EVENT_INFO *GpeEventInfo);
137 139
138 140
139 141 /*
140 142 * evgpeblk - Upper-level GPE block support
141 143 */
142 144 ACPI_STATUS
143 145 AcpiEvCreateGpeBlock (
144 146 ACPI_NAMESPACE_NODE *GpeDevice,
145 147 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
146 148 UINT32 RegisterCount,
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
147 149 UINT8 GpeBlockBaseNumber,
148 150 UINT32 InterruptNumber,
149 151 ACPI_GPE_BLOCK_INFO **ReturnGpeBlock);
150 152
151 153 ACPI_STATUS
152 154 AcpiEvInitializeGpeBlock (
153 155 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
154 156 ACPI_GPE_BLOCK_INFO *GpeBlock,
155 157 void *Context);
156 158
159 +ACPI_HW_DEPENDENT_RETURN_OK (
157 160 ACPI_STATUS
158 161 AcpiEvDeleteGpeBlock (
159 - ACPI_GPE_BLOCK_INFO *GpeBlock);
162 + ACPI_GPE_BLOCK_INFO *GpeBlock))
160 163
161 164 UINT32
162 165 AcpiEvGpeDispatch (
163 166 ACPI_NAMESPACE_NODE *GpeDevice,
164 167 ACPI_GPE_EVENT_INFO *GpeEventInfo,
165 168 UINT32 GpeNumber);
166 169
170 +
167 171 /*
168 172 * evgpeinit - GPE initialization and update
169 173 */
170 174 ACPI_STATUS
171 175 AcpiEvGpeInitialize (
172 176 void);
173 177
178 +ACPI_HW_DEPENDENT_RETURN_VOID (
174 179 void
175 180 AcpiEvUpdateGpes (
176 - ACPI_OWNER_ID TableOwnerId);
181 + ACPI_OWNER_ID TableOwnerId))
177 182
178 183 ACPI_STATUS
179 184 AcpiEvMatchGpeMethod (
180 185 ACPI_HANDLE ObjHandle,
181 186 UINT32 Level,
182 187 void *Context,
183 188 void **ReturnValue);
184 189
190 +
185 191 /*
186 192 * evgpeutil - GPE utilities
187 193 */
188 194 ACPI_STATUS
189 195 AcpiEvWalkGpeList (
190 196 ACPI_GPE_CALLBACK GpeWalkCallback,
191 197 void *Context);
192 198
193 199 BOOLEAN
194 200 AcpiEvValidGpeEvent (
195 201 ACPI_GPE_EVENT_INFO *GpeEventInfo);
196 202
197 203 ACPI_STATUS
198 204 AcpiEvGetGpeDevice (
199 205 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
200 206 ACPI_GPE_BLOCK_INFO *GpeBlock,
201 207 void *Context);
202 208
203 -ACPI_GPE_XRUPT_INFO *
209 +ACPI_STATUS
204 210 AcpiEvGetGpeXruptBlock (
205 - UINT32 InterruptNumber);
211 + UINT32 InterruptNumber,
212 + ACPI_GPE_XRUPT_INFO **GpeXruptBlock);
206 213
207 214 ACPI_STATUS
208 215 AcpiEvDeleteGpeXrupt (
209 216 ACPI_GPE_XRUPT_INFO *GpeXrupt);
210 217
211 218 ACPI_STATUS
212 219 AcpiEvDeleteGpeHandlers (
213 220 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
214 221 ACPI_GPE_BLOCK_INFO *GpeBlock,
215 222 void *Context);
216 223
217 224
218 225 /*
219 - * evregion - Address Space handling
226 + * evhandler - Address space handling
220 227 */
228 +BOOLEAN
229 +AcpiEvHasDefaultHandler (
230 + ACPI_NAMESPACE_NODE *Node,
231 + ACPI_ADR_SPACE_TYPE SpaceId);
232 +
221 233 ACPI_STATUS
222 234 AcpiEvInstallRegionHandlers (
223 235 void);
224 236
225 237 ACPI_STATUS
238 +AcpiEvInstallSpaceHandler (
239 + ACPI_NAMESPACE_NODE *Node,
240 + ACPI_ADR_SPACE_TYPE SpaceId,
241 + ACPI_ADR_SPACE_HANDLER Handler,
242 + ACPI_ADR_SPACE_SETUP Setup,
243 + void *Context);
244 +
245 +
246 +/*
247 + * evregion - Operation region support
248 + */
249 +ACPI_STATUS
226 250 AcpiEvInitializeOpRegions (
227 251 void);
228 252
229 253 ACPI_STATUS
230 254 AcpiEvAddressSpaceDispatch (
231 - ACPI_OPERAND_OBJECT *RegionObj,
255 + ACPI_OPERAND_OBJECT *RegionObj,
256 + ACPI_OPERAND_OBJECT *FieldObj,
232 257 UINT32 Function,
233 258 UINT32 RegionOffset,
234 259 UINT32 BitWidth,
235 260 UINT64 *Value);
236 261
237 262 ACPI_STATUS
238 263 AcpiEvAttachRegion (
239 264 ACPI_OPERAND_OBJECT *HandlerObj,
240 265 ACPI_OPERAND_OBJECT *RegionObj,
241 266 BOOLEAN AcpiNsIsLocked);
242 267
243 268 void
244 269 AcpiEvDetachRegion (
245 270 ACPI_OPERAND_OBJECT *RegionObj,
246 271 BOOLEAN AcpiNsIsLocked);
247 272
248 273 ACPI_STATUS
249 -AcpiEvInstallSpaceHandler (
250 - ACPI_NAMESPACE_NODE *Node,
251 - ACPI_ADR_SPACE_TYPE SpaceId,
252 - ACPI_ADR_SPACE_HANDLER Handler,
253 - ACPI_ADR_SPACE_SETUP Setup,
254 - void *Context);
255 -
256 -ACPI_STATUS
257 274 AcpiEvExecuteRegMethods (
258 275 ACPI_NAMESPACE_NODE *Node,
259 276 ACPI_ADR_SPACE_TYPE SpaceId);
260 277
261 278 ACPI_STATUS
262 279 AcpiEvExecuteRegMethod (
263 280 ACPI_OPERAND_OBJECT *RegionObj,
264 281 UINT32 Function);
265 282
266 283
267 284 /*
268 285 * evregini - Region initialization and setup
269 286 */
270 287 ACPI_STATUS
271 288 AcpiEvSystemMemoryRegionSetup (
272 289 ACPI_HANDLE Handle,
273 290 UINT32 Function,
274 291 void *HandlerContext,
275 292 void **RegionContext);
276 293
277 294 ACPI_STATUS
278 295 AcpiEvIoSpaceRegionSetup (
279 296 ACPI_HANDLE Handle,
280 297 UINT32 Function,
281 298 void *HandlerContext,
282 299 void **RegionContext);
283 300
284 301 ACPI_STATUS
285 302 AcpiEvPciConfigRegionSetup (
286 303 ACPI_HANDLE Handle,
287 304 UINT32 Function,
288 305 void *HandlerContext,
289 306 void **RegionContext);
290 307
291 308 ACPI_STATUS
292 309 AcpiEvCmosRegionSetup (
293 310 ACPI_HANDLE Handle,
294 311 UINT32 Function,
295 312 void *HandlerContext,
296 313 void **RegionContext);
297 314
298 315 ACPI_STATUS
299 316 AcpiEvPciBarRegionSetup (
300 317 ACPI_HANDLE Handle,
301 318 UINT32 Function,
302 319 void *HandlerContext,
303 320 void **RegionContext);
304 321
305 322 ACPI_STATUS
306 323 AcpiEvDefaultRegionSetup (
307 324 ACPI_HANDLE Handle,
308 325 UINT32 Function,
309 326 void *HandlerContext,
310 327 void **RegionContext);
311 328
312 329 ACPI_STATUS
313 330 AcpiEvInitializeRegion (
314 331 ACPI_OPERAND_OBJECT *RegionObj,
315 332 BOOLEAN AcpiNsLocked);
↓ open down ↓ |
49 lines elided |
↑ open up ↑ |
316 333
317 334
318 335 /*
319 336 * evsci - SCI (System Control Interrupt) handling/dispatch
320 337 */
321 338 UINT32 ACPI_SYSTEM_XFACE
322 339 AcpiEvGpeXruptHandler (
323 340 void *Context);
324 341
325 342 UINT32
343 +AcpiEvSciDispatch (
344 + void);
345 +
346 +UINT32
326 347 AcpiEvInstallSciHandler (
327 348 void);
328 349
329 350 ACPI_STATUS
330 -AcpiEvRemoveSciHandler (
351 +AcpiEvRemoveAllSciHandlers (
331 352 void);
332 353
333 -UINT32
334 -AcpiEvInitializeSCI (
335 - UINT32 ProgramSCI);
336 -
354 +ACPI_HW_DEPENDENT_RETURN_VOID (
337 355 void
338 356 AcpiEvTerminate (
339 - void);
357 + void))
340 358
341 -
342 359 #endif /* __ACEVENTS_H__ */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX