Debian Codegraph @

tests/aslts/src/runtime/collections/complex/namespace/ns2_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 * ns2 originated but has names from root
30 */
31 /*
32 * Element of Package instead of i000 (in m001)
33 */
34 Method (M203, 1, Serialized)
35 {
36 Name (I001, 0x00)
37 Name (P000, Package (0x04)
38 {
39 0x01,
40 0x02,
41 0x03,
42 0x04
43 })
44 Device (D000)
45 {
46 Name (PP00, Package (0x03)
47 {
48 0x11111111,
49 0x01,
50 0x22223333
51 })
52 }
53
54 CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00)
55 I001 = Arg0
56 Method (M001, 0, NotSerialized)
57 {
58 Method (M002, 0, NotSerialized)
59 {
60 Method (M003, 0, NotSerialized)
61 {
62 Method (M004, 0, NotSerialized)
63 {
64 Method (M005, 0, NotSerialized)
65 {
66 Method (M006, 0, NotSerialized)
67 {
68 Method (M007, 0, NotSerialized)
69 {
70 Method (M008, 0, NotSerialized)
71 {
72 If (I001)
73 {
74 \M203.D000.PP00 [0x01] = P000 /* \M203.P000 */
75 }
76
77 Return (0x00)
78 }
79
80 \M203.D000.PP00 [0x01] = 0x80000000
81 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M008 ()))
82 }
83
84 \M203.D000.PP00 [0x01] = 0x07000000
85 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M007 ()))
86 }
87
88 \M203.D000.PP00 [0x01] = 0x00600000
89 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M006 ()))
90 }
91
92 \M203.D000.PP00 [0x01] = 0x00050000
93 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M005 ()))
94 }
95
96 \M203.D000.PP00 [0x01] = 0x4000
97 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M004 ()))
98 }
99
100 \M203.D000.PP00 [0x01] = 0x0300
101 Return ((DerefOf (\M203.D000.PP00 [0x01]) + M003 ()))
102 }
103
104 ^D000.PP00 [0x01] = 0x20
105 Return ((DerefOf (^D000.PP00 [0x01]) + M002 ()))
106 }
107
108 Store ((DerefOf (D000.PP00 [0x01]) + M001 ()), Local0)
109 If ((Local0 != 0x87654321))
110 {
111 ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x87654321)
112 }
113
114 Local0 = DerefOf (D000.PP00 [0x01])
115 If ((Local0 != 0x80000000))
116 {
117 ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x80000000)
118 }
119
120 CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00)
121 }
122
123 /*
124 * Buffer Field instead of i000 (in m001)
125 */
126 Method (M205, 1, Serialized)
127 {
128 Name (I001, 0x00)
129 Name (P000, Package (0x04)
130 {
131 0x01,
132 0x02,
133 0x03,
134 0x04
135 })
136 CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00)
137 Device (D000)
138 {
139 Name (B000, Buffer (0x10){})
140 CreateField (B000, 0x05, 0x20, BF00)
141 }
142
143 CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00)
144 If (0x00)
145 {
146 CreateField (D000.B000, 0x05, 0x20, BF00)
147 }
148
149 I001 = Arg0
150 Method (M001, 0, NotSerialized)
151 {
152 Method (M002, 0, NotSerialized)
153 {
154 Method (M003, 0, NotSerialized)
155 {
156 Method (M004, 0, NotSerialized)
157 {
158 Method (M005, 0, NotSerialized)
159 {
160 Method (M006, 0, NotSerialized)
161 {
162 Method (M007, 0, NotSerialized)
163 {
164 Method (M008, 0, NotSerialized)
165 {
166 If (I001)
167 {
168 \M205.D000.BF00 [0x01] = P000 /* \M205.P000 */
169 }
170
171 Return (0x00)
172 }
173
174 \M205.D000.BF00 [0x01] = 0x80000000
175 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M008 ()))
176 }
177
178 \M205.D000.BF00 [0x01] = 0x07000000
179 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M007 ()))
180 }
181
182 \M205.D000.BF00 [0x01] = 0x00600000
183 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M006 ()))
184 }
185
186 \M205.D000.BF00 [0x01] = 0x00050000
187 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M005 ()))
188 }
189
190 \M205.D000.BF00 [0x01] = 0x4000
191 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M004 ()))
192 }
193
194 \M205.D000.BF00 [0x01] = 0x0300
195 Return ((DerefOf (\M205.D000.BF00 [0x01]) + M003 ()))
196 }
197
198 ^D000.BF00 [0x01] = 0x20
199 Return ((DerefOf (^D000.BF00 [0x01]) + M002 ()))
200 }
201
202 Store ((DerefOf (D000.BF00 [0x01]) + M001 ()), Local0)
203 If ((Local0 != 0x87654321))
204 {
205 ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x87654321)
206 }
207
208 Local0 = DerefOf (D000.BF00 [0x01])
209 If ((Local0 != 0x80000000))
210 {
211 ERR (__METHOD__, Z156, __LINE__, 0x00, 0x00, Local0, 0x80000000)
212 }
213
214 CH03 (__METHOD__, Z156, __LINE__, 0x00, 0x00)
215 }
216
217 Method (N102, 0, NotSerialized)
218 {
219 If (0x01)
220 {
221 SRMT ("m203-0")
222 M203 (0x00)
223 SRMT ("m203-1")
224 If (Y200)
225 {
226 M203 (0x01)
227 }
228 Else
229 {
230 BLCK ()
231 }
232
233 SRMT ("m205-0")
234 If (Y216)
235 {
236 M205 (0x00)
237 }
238 Else
239 {
240 BLCK ()
241 }
242
243 SRMT ("m205-1")
244 If ((Y200 && Y216))
245 {
246 M205 (0x01)
247 }
248 Else
249 {
250 BLCK ()
251 }
252 }
253 Else
254 {
255 SRMT ("m205-0")
256 M205 (0x00)
257 }
258 }