Debian Codegraph @

tests/aslts/src/runtime/collections/bdemo/ACPICA/common/data.src.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 /*
30 * Common use Data
31 */
32
33 Name(id00, 0xe0385bcd)
34 Name(id01, 0) // Flag of error, used by demo-162
35 Name(id02, 0) // Flag of presence of demo-162 test
36
37 Name(id09, 0)
38 Name(id0a, 0)
39 Name(id0b, 0x89abcdef)
40
41 Name(sd00, "String")
42
43 Name(bd00, Buffer(32) {1,2,3,4})
44 Name(bd02, Buffer() {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,
45 0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x21,0x22,0x23})
46
47 CreateField(bd00, 0, 8, bf30)
48 CreateField(bd00, 8, 65, bf31)
49
50 Name(pd00, Package(1){Buffer() {1,2,3,4}})
51
52 Device(dd00) { Name(i900, 0xabcd0017) }
53 Device(dd01) { Name(i900, 0xabcd0017) }
54 Device(dd02) { Name(i900, 0xabcd0017) }
55 Device(dd03) { Name(i900, 0xabcd0017) }
56
57 Device(dd04) { Name(i900, 0xabcd0017) }
58 Device(dd05) { Name(i900, 0xabcd0017) }
59 Device(dd06) { Name(i900, 0xabcd0017) }
60 Device(dd07) { Name(i900, 0xabcd0017) }
61
62 OperationRegion(rd00, SystemMemory, 0x100, 0x100)
63 Field(rd00, ByteAcc, NoLock, Preserve) {fd00,8,fd01,65}
64
65
66 /*
67 * Global CreateField declarations for bug 161
68 */
69
70 /*
71
72
73 !!!!!!!!!!!!!! uncomment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
74
75
76 Name(id03, 8)
77 Name(id04, 64)
78 Name(id05, 80)
79 Name(id06, 8)
80 Name(id07, 80)
81 Name(id08, 8)
82
83 Name(bd03, Buffer() {0x10,0x5d,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,
84 0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x21,0x22,0x23})
85
86 // Caused stack overflow
87 // CreateField(bd03, 32, id03, bf32)
88 CreateField(bd03, 32, 8, bf32)
89
90 CreateField(bd03, 40, Add(id03, 8), bf33)
91
92 // Caused stack overflow
93 // CreateField(bd03, id04, 8, bf34)
94 CreateField(bd03, 64, 8, bf34)
95
96 CreateField(bd03, Add(id04, 8), 8, bf35)
97
98 // Caused stack overflow
99 // CreateField(bd03, id05, id06, bf36)
100 CreateField(bd03, 80, 8, bf36)
101
102 CreateField(bd03, Add(id07, 8), Add(id08, 8), bf37)
103
104 // ==================== Additional:
105
106 CreateBitField(bd03, 8, bf40)
107 CreateByteField(bd03, 1, bf41)
108 CreateWordField(bd03, 1, bf42)
109 CreateDWordField(bd03, 1, bf43)
110 CreateQWordField(bd03, 1, bf44)
111 CreateField(bd03, 8, 8, bf45)
112
113 Name(id21, 1)
114 Name(id22, 8)
115
116 CreateBitField(bd03, id22, bf46)
117 CreateByteField(bd03, id21, bf47)
118 CreateWordField(bd03, id21, bf48)
119 CreateDWordField(bd03, id21, bf49)
120 CreateQWordField(bd03, id21, bf4a)
121 CreateField(bd03, 8, id22, bf4b)
122 CreateField(bd03, id22, 8, bf4c)
123 CreateField(bd03, id22, id22, bf4d)
124
125
126 */
127
128
129 // ==================== bug 161.
130
131 Mutex(mxd0, 0)
132 Event(ed00)
133 OperationRegion(rd01, SystemMemory, 0x100, 0x100)
134 OperationRegion(rd02, SystemMemory, 0x100, 0x100)
135 Name(pd01, Package(){0x89abcdef})
136
137 Name(dd08, 0x12)
138 Name(sd01, "123456789")
139 Name(bd04, Buffer() {1,2,3,4,5,6,7,8,9})
140
141 Name(id0c, 0x12)
142 Name(sd02, "123456789")
143 Name(bd05, Buffer() {1,2,3,4,5,6,7,8,9})
144 Name(pd02, Package() {1,2,3,4,5,6,7,8,9})
145 OperationRegion(rd03, SystemMemory, 0x100, 0x100)
146 Field(rd03, ByteAcc, NoLock, Preserve) { fd02, 8 }
147 Device(dd09) {}
148 Event(ed01)
149 Method(me53) { return (0x12) }
150 Mutex(mxd1, 0)
151 PowerResource(pwd0, 1, 0) {Method(m001){return (0)}}
152 Processor(prd0, 0, 0xFFFFFFFF, 0) {}
153 ThermalZone(tzd0) {}
154 CreateField(bd05, 0, 8, bfd0)
155
156 Name(id0d, 0)
157 Name(id0e, 0)
158
159 Method(me69) { return (0x12345678) }
160 Name(pd03, Package() {me69})
161
162 Name(id0f, 0)
163 Name(id10, 0x1234)
164
165 Name(pd04, Package(){0x10})
166 Name(pd05, Package(){0x20})
167 Name(pd06, Package(){0x30})
168 Name(pd07, Package(){0x40})
169 Name(pd08, Package(){0x50})
170 Name(pd09, Package(){0x60})
171
172
173 Name(id11, 0xfe7cb391d650a284)
174 Name(bd06, Buffer() {1,2,3,4,0x59,6,7,8,9})
175 CreateField(bd06, 40, 8, bfd1)
176 OperationRegion(rd04, SystemMemory, 0x100, 0x100)
177 Field(rd04, ByteAcc, NoLock, Preserve) {fd03,8}
178 Name(pd0a, Package() {id11})
179 Name(pd0b, Package() {bfd1})
180 Name(pd0c, Package() {fd03})
181
182 Name(sd03, "0123456789a")
183 Name(bd07, Buffer(8193){})
184
185 Name(sd04, "qwer0000")
186 Name(bd08, Buffer(4) {1,0x77,3,4})
187 Name(pd0d, Package(3) {5,0x77,7})
188
189 Name(id12, 0x77)
190 Name(pd0e, Package(1) {0x77})
191
192 Name(id13, 0)
193 Name(sd05, "q_er0000")
194 Name(bd09, Buffer(4) {1,0,3,4})
195 Name(pd0f, Package(3) {5,0,7})
196
197 Name(id14, 0x11)
198 Name(id15, 0x22)
199 Name(id16, 0x33)
200 Name(id17, 0x44)
201 Name(id18, 0x55)
202 Name(id19, 0x66)
203 Name(id1a, 0x77)
204
205 Name(id1b, 0xfedcba9876543210)
206 Name(id1c, 0xfedcba9876543211)
207
208 Name(id1d, 0xfedcba9876543210)
209 Device(dd0b) {Name(s000, "DEV0")}
210 Event(ed02)
211
212 OperationRegion(rd05, SystemMemory, 0x100, 0x100)
213
214 Name(bd0a, Buffer(9){0x10,0x11,0x12,0x13})
215 CreateField(bd0a, 0, 8, bfd2)
216
217 Name (rtd0, ResourceTemplate () {
218 IRQNoFlags () {1}
219 DMA (Compatibility, NotBusMaster, Transfer16) {2}
220 })
221
222 Name (bd0b, Buffer () {
223 0x22, 0x02, 0x00,
224 0x2a, 0x04, 0x02,
225 0x22, 0x02, 0x00,
226 0x2a, 0x04, 0x02,
227 0x79, 0xdf,
228 })
229
230 Device(dd0c){}
231 Processor(prd1, 0, 0xFFFFFFFF, 0) {}
232 OperationRegion(rd06, SystemMemory, 0x100, 0x100)
233 PowerResource(pwd1, 1, 0) {Method(mmmm){return (0)}}
234 ThermalZone(tzd1) {}
235 Event(ed03)
236 Mutex(mxd2, 0)
237
238 Event(ed04)
239 Name(id1e, 0x19283746)
240 Name(pd10, Package(1){"Package"})
241
242 Name (rtd1, ResourceTemplate () {
243 QWordSpace (0xc0, ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, 0x0a,
244 0xd8d9dadbdcdddedf, 0xe0e1e2e3e4e5e6e7, 0xe8e9eaebecedeeef,
245 0xf0f1f2f3f4f5f6f7, 0xf8f9fafbfcfdfeff)})
246
247 Name (bd0c, Buffer () {
248 0x8a, 0x2b, 0x00, 0xc0, 0x00, 0x0a,
249 0xdf, 0xde, 0xdd, 0xdc, 0xdb, 0xda, 0xd9, 0xd8,
250 0xe7, 0xe6, 0xe5, 0xe4, 0xe3, 0xe2, 0xe1, 0xe0,
251 0xef, 0xee, 0xed, 0xec, 0xeb, 0xea, 0xe9, 0xe8,
252 0xf7, 0xf6, 0xf5, 0xf4, 0xf3, 0xf2, 0xf1, 0xf0,
253 0xff, 0xfe, 0xfd, 0xfc, 0xfb, 0xfa, 0xf9, 0xf8, 0x79, 0x00})
254
255 Device(dd0d){}
256 Processor(prd2, 0, 0xFFFFFFFF, 0) {}
257 OperationRegion(rd07, SystemMemory, 0x100, 0x100)
258 PowerResource(pwd2, 1, 0) {Method(mmmm){return (0)}}
259 ThermalZone(tzd2) {}
260 Event(ed05)
261 Mutex(mxd3, 0)
262
263
264 Name(id1f, 49)
265 Name(id20, 7)
266 OperationRegion(rd08, SystemMemory, 0, Increment(id1f))
267 Name(bd0d, Buffer(8) {0x80, 0x99, 0xff, 0x83, 0x84, 0x85, 0x86, 0x87})
268 CreateField(bd0d, 8, Increment(id20), bfd3)
269
270 Name(pd11, Package(2) {1})
271
272 Name(bd0e, Buffer(4) {1,0x77,3,4})
273
274 // Base of Buffer Field
275 Name(bd0f, Buffer(9){})
276
277 // Benchmark buffer
278 Name(bd10, Buffer(9){})