Debian Codegraph @

tests/aslts/src/runtime/collections/complex/namespace/ns0_root.asl

raw
1 /*
2 * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without modification,
6 * are permitted provided that the following conditions are met:
7 *
8 * Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the above copyright notice,
11 * this list of conditions and the following disclaimer in the documentation
12 * and/or other materials provided with the distribution.
13 * Neither the name of Intel Corporation nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28 /*
29 * ns0 originated but has names from root
30 */
31 /*
32 * Internal Integer of Device instead of i000 (in m001)
33 */
34 Method (M006, 1, Serialized)
35 {
36 Device (D000)
37 {
38 Name (I000, 0x01)
39 }
40
41 Name (I001, 0x00)
42 Name (P000, Package (0x04)
43 {
44 0x01,
45 0x02,
46 0x03,
47 0x04
48 })
49 I001 = Arg0
50 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00)
51 Method (M001, 0, NotSerialized)
52 {
53 Method (M002, 0, NotSerialized)
54 {
55 Method (M003, 0, NotSerialized)
56 {
57 Method (M004, 0, NotSerialized)
58 {
59 Method (M005, 0, NotSerialized)
60 {
61 Method (M006, 0, NotSerialized)
62 {
63 Method (M007, 0, NotSerialized)
64 {
65 Method (M008, 0, NotSerialized)
66 {
67 If (I001)
68 {
69 CopyObject (P000, \M006.D000.I000)
70 }
71
72 Return (0x00)
73 }
74
75 \M006.D000.I000 = 0x80000000
76 Return ((\M006.D000.I000 + M008 ()))
77 }
78
79 \M006.D000.I000 = 0x07000000
80 Return ((\M006.D000.I000 + M007 ()))
81 }
82
83 \M006.D000.I000 = 0x00600000
84 Return ((\M006.D000.I000 + M006 ()))
85 }
86
87 \M006.D000.I000 = 0x00050000
88 Return ((\M006.D000.I000 + M005 ()))
89 }
90
91 \M006.D000.I000 = 0x4000
92 Return ((\M006.D000.I000 + M004 ()))
93 }
94
95 \M006.D000.I000 = 0x0300
96 Return ((\M006.D000.I000 + M003 ()))
97 }
98
99 ^D000.I000 = 0x20
100 Return ((^D000.I000 + M002 ()))
101 }
102
103 Store ((D000.I000 + M001 ()), Local0)
104 If (FLG9)
105 {
106 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00)
107 If ((Local0 != 0x87654321))
108 {
109 ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321)
110 }
111
112 If ((D000.I000 != 0x80000000))
113 {
114 ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, D000.I000, 0x80000000)
115 }
116 }
117 Else
118 {
119 CH04 (__METHOD__, 0x01, 0x05, Z154, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */
120 }
121 }
122
123 /*
124 * Internal Integer of ThermalZone instead of i000 (in m001)
125 */
126 Method (M007, 1, Serialized)
127 {
128 ThermalZone (TZ00)
129 {
130 Name (I000, 0x01)
131 }
132
133 Name (I001, 0x00)
134 Name (P000, Package (0x04)
135 {
136 0x01,
137 0x02,
138 0x03,
139 0x04
140 })
141 I001 = Arg0
142 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00)
143 Method (M001, 0, NotSerialized)
144 {
145 Method (M002, 0, NotSerialized)
146 {
147 Method (M003, 0, NotSerialized)
148 {
149 Method (M004, 0, NotSerialized)
150 {
151 Method (M005, 0, NotSerialized)
152 {
153 Method (M006, 0, NotSerialized)
154 {
155 Method (M007, 0, NotSerialized)
156 {
157 Method (M008, 0, NotSerialized)
158 {
159 If (I001)
160 {
161 CopyObject (P000, \M007.TZ00.I000)
162 }
163
164 Return (0x00)
165 }
166
167 \M007.TZ00.I000 = 0x80000000
168 Return ((\M007.TZ00.I000 + M008 ()))
169 }
170
171 \M007.TZ00.I000 = 0x07000000
172 Return ((\M007.TZ00.I000 + M007 ()))
173 }
174
175 \M007.TZ00.I000 = 0x00600000
176 Return ((\M007.TZ00.I000 + M006 ()))
177 }
178
179 \M007.TZ00.I000 = 0x00050000
180 Return ((\M007.TZ00.I000 + M005 ()))
181 }
182
183 \M007.TZ00.I000 = 0x4000
184 Return ((\M007.TZ00.I000 + M004 ()))
185 }
186
187 \M007.TZ00.I000 = 0x0300
188 Return ((\M007.TZ00.I000 + M003 ()))
189 }
190
191 ^TZ00.I000 = 0x20
192 Return ((^TZ00.I000 + M002 ()))
193 }
194
195 Store ((TZ00.I000 + M001 ()), Local0)
196 If (FLG9)
197 {
198 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00)
199 If ((Local0 != 0x87654321))
200 {
201 ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321)
202 }
203
204 If ((TZ00.I000 != 0x80000000))
205 {
206 ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, TZ00.I000, 0x80000000)
207 }
208 }
209 Else
210 {
211 CH04 (__METHOD__, 0x01, 0x05, Z154, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */
212 }
213 }
214
215 /*
216 * Internal Integer of Processor instead of i000 (in m001)
217 */
218 Method (M008, 1, Serialized)
219 {
220 Processor (PR00, 0x00, 0xFFFFFFFF, 0x00)
221 {
222 Name (I000, 0x01)
223 }
224
225 Name (I001, 0x00)
226 Name (P000, Package (0x04)
227 {
228 0x01,
229 0x02,
230 0x03,
231 0x04
232 })
233 I001 = Arg0
234 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00)
235 Method (M001, 0, NotSerialized)
236 {
237 Method (M002, 0, NotSerialized)
238 {
239 Method (M003, 0, NotSerialized)
240 {
241 Method (M004, 0, NotSerialized)
242 {
243 Method (M005, 0, NotSerialized)
244 {
245 Method (M006, 0, NotSerialized)
246 {
247 Method (M007, 0, NotSerialized)
248 {
249 Method (M008, 0, NotSerialized)
250 {
251 If (I001)
252 {
253 CopyObject (P000, \M008.PR00.I000)
254 }
255
256 Return (0x00)
257 }
258
259 \M008.PR00.I000 = 0x80000000
260 Return ((\M008.PR00.I000 + M008 ()))
261 }
262
263 \M008.PR00.I000 = 0x07000000
264 Return ((\M008.PR00.I000 + M007 ()))
265 }
266
267 \M008.PR00.I000 = 0x00600000
268 Return ((\M008.PR00.I000 + M006 ()))
269 }
270
271 \M008.PR00.I000 = 0x00050000
272 Return ((\M008.PR00.I000 + M005 ()))
273 }
274
275 \M008.PR00.I000 = 0x4000
276 Return ((\M008.PR00.I000 + M004 ()))
277 }
278
279 \M008.PR00.I000 = 0x0300
280 Return ((\M008.PR00.I000 + M003 ()))
281 }
282
283 ^PR00.I000 = 0x20
284 Return ((^PR00.I000 + M002 ()))
285 }
286
287 Store ((PR00.I000 + M001 ()), Local0)
288 If (FLG9)
289 {
290 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00)
291 If ((Local0 != 0x87654321))
292 {
293 ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321)
294 }
295
296 If ((PR00.I000 != 0x80000000))
297 {
298 ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, PR00.I000, 0x80000000)
299 }
300 }
301 Else
302 {
303 CH04 (__METHOD__, 0x01, 0x05, Z154, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */
304 }
305 }
306
307 /*
308 * Internal Integer of PowerResource instead of i000 (in m001)
309 */
310 Method (M009, 1, Serialized)
311 {
312 PowerResource (PW00, 0x01, 0x0000)
313 {
314 Name (I000, 0x01)
315 }
316
317 Name (I001, 0x00)
318 Name (P000, Package (0x04)
319 {
320 0x01,
321 0x02,
322 0x03,
323 0x04
324 })
325 I001 = Arg0
326 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00)
327 Method (M001, 0, NotSerialized)
328 {
329 Method (M002, 0, NotSerialized)
330 {
331 Method (M003, 0, NotSerialized)
332 {
333 Method (M004, 0, NotSerialized)
334 {
335 Method (M005, 0, NotSerialized)
336 {
337 Method (M006, 0, NotSerialized)
338 {
339 Method (M007, 0, NotSerialized)
340 {
341 Method (M008, 0, NotSerialized)
342 {
343 If (I001)
344 {
345 CopyObject (P000, \M009.PW00.I000)
346 }
347
348 Return (0x00)
349 }
350
351 \M009.PW00.I000 = 0x80000000
352 Return ((\M009.PW00.I000 + M008 ()))
353 }
354
355 \M009.PW00.I000 = 0x07000000
356 Return ((\M009.PW00.I000 + M007 ()))
357 }
358
359 \M009.PW00.I000 = 0x00600000
360 Return ((\M009.PW00.I000 + M006 ()))
361 }
362
363 \M009.PW00.I000 = 0x00050000
364 Return ((\M009.PW00.I000 + M005 ()))
365 }
366
367 \M009.PW00.I000 = 0x4000
368 Return ((\M009.PW00.I000 + M004 ()))
369 }
370
371 \M009.PW00.I000 = 0x0300
372 Return ((\M009.PW00.I000 + M003 ()))
373 }
374
375 ^PW00.I000 = 0x20
376 Return ((^PW00.I000 + M002 ()))
377 }
378
379 Store ((PW00.I000 + M001 ()), Local0)
380 If (FLG9)
381 {
382 CH03 (__METHOD__, Z154, __LINE__, 0x00, 0x00)
383 If ((Local0 != 0x87654321))
384 {
385 ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, Local0, 0x87654321)
386 }
387
388 If ((PW00.I000 != 0x80000000))
389 {
390 ERR (__METHOD__, Z154, __LINE__, 0x00, 0x00, PW00.I000, 0x80000000)
391 }
392 }
393 Else
394 {
395 CH04 (__METHOD__, 0x01, 0x05, Z154, __LINE__, 0x00, 0x00) /* AE_NOT_FOUND */
396 }
397 }
398
399 Method (N100, 0, NotSerialized)
400 {
401 If (0x01)
402 {
403 SRMT ("m006-0")
404 M006 (0x00)
405 SRMT ("m006-1")
406 If (Y200)
407 {
408 M006 (0x01)
409 }
410 Else
411 {
412 BLCK ()
413 }
414
415 SRMT ("m007-0")
416 M007 (0x00)
417 SRMT ("m007-1")
418 If (Y200)
419 {
420 M007 (0x01)
421 }
422 Else
423 {
424 BLCK ()
425 }
426
427 SRMT ("m008-0")
428 M008 (0x00)
429 SRMT ("m008-1")
430 If (Y200)
431 {
432 M008 (0x01)
433 }
434 Else
435 {
436 BLCK ()
437 }
438
439 SRMT ("m009-0")
440 M009 (0x00)
441 SRMT ("m009-1")
442 If (Y200)
443 {
444 M009 (0x01)
445 }
446 Else
447 {
448 BLCK ()
449 }
450 }
451 Else
452 {
453 }
454 }