• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/acpica/tests/aslts/src/runtime/collections/functional/descriptor/
1/*
2 * Some or all of this work - Copyright (c) 2006 - 2016, 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 * Resource Descriptor macros
31 *
32 * Interrupt() Interrupt Resource Descriptor Macro
33 */
34
35Name(z017, 17)
36
37Name (p434, Package() {
38
39	// Byte 3 (Interrupt Vector Flags) of Extended Interrupt Descriptor
40
41	ResourceTemplate () {
42		Interrupt (ResourceProducer, Level, ActiveHigh, Exclusive) {
43			0xfcfdfeff}
44	},
45	ResourceTemplate () {
46		Interrupt (ResourceProducer, Level, ActiveHigh, Shared) {
47			0xf8f9fafb, 0xfcfdfeff}
48	},
49	ResourceTemplate () {
50		Interrupt (ResourceProducer, Level, ActiveLow, Exclusive) {
51			0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
52	},
53	ResourceTemplate () {
54		Interrupt (ResourceProducer, Level, ActiveLow, Shared) {
55			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
56	},
57	ResourceTemplate () {
58		Interrupt (ResourceProducer, Edge, ActiveHigh, Exclusive) {
59			0xecedeeef,
60			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
61	},
62	ResourceTemplate () {
63		Interrupt (ResourceProducer, Edge, ActiveHigh, Shared) {
64			0xe8e9eaeb, 0xecedeeef,
65			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
66	},
67	ResourceTemplate () {
68		Interrupt (ResourceProducer, Edge, ActiveLow, Exclusive) {
69			0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
70			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
71	},
72	ResourceTemplate () {
73		Interrupt (ResourceProducer, Edge, ActiveLow, Shared) {
74			0xe0e1e2e3, 0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
75			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
76	},
77	ResourceTemplate () {
78		Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) {
79			0xdcdddedf,
80			0xe0e1e2e3, 0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
81			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
82	},
83	ResourceTemplate () {
84		Interrupt (ResourceConsumer, Level, ActiveHigh, Shared) {
85			0xd8d9dadb, 0xdcdddedf,
86			0xe0e1e2e3, 0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
87			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
88	},
89	ResourceTemplate () {
90		Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive) {
91			0xd4d5d6d7, 0xd8d9dadb, 0xdcdddedf,
92			0xe0e1e2e3, 0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
93			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
94	},
95	ResourceTemplate () {
96		Interrupt (ResourceConsumer, Level, ActiveLow, Shared) {
97			0xd0d1d2d3, 0xd4d5d6d7, 0xd8d9dadb, 0xdcdddedf,
98			0xe0e1e2e3, 0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
99			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
100	},
101	ResourceTemplate () {
102		Interrupt (ResourceConsumer, Edge, ActiveHigh, Exclusive) {
103			0xcccdcecf,
104			0xd0d1d2d3, 0xd4d5d6d7, 0xd8d9dadb, 0xdcdddedf,
105			0xe0e1e2e3, 0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
106			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
107	},
108	ResourceTemplate () {
109		Interrupt (ResourceConsumer, Edge, ActiveHigh, Shared) {
110			0xc8c9cacb, 0xcccdcecf,
111			0xd0d1d2d3, 0xd4d5d6d7, 0xd8d9dadb, 0xdcdddedf,
112			0xe0e1e2e3, 0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
113			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
114	},
115	ResourceTemplate () {
116		Interrupt (ResourceConsumer, Edge, ActiveLow, Exclusive) {
117			0xc4c5c6c7, 0xc8c9cacb, 0xcccdcecf,
118			0xd0d1d2d3, 0xd4d5d6d7, 0xd8d9dadb, 0xdcdddedf,
119			0xe0e1e2e3, 0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
120			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
121	},
122	ResourceTemplate () {
123		Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) {
124			0xc0c1c2c3, 0xc4c5c6c7, 0xc8c9cacb, 0xcccdcecf,
125			0xd0d1d2d3, 0xd4d5d6d7, 0xd8d9dadb, 0xdcdddedf,
126			0xe0e1e2e3, 0xe4e5e6e7, 0xe8e9eaeb, 0xecedeeef,
127			0xf0f1f2f3, 0xf4f5f6f7, 0xf8f9fafb, 0xfcfdfeff}
128	},
129
130	ResourceTemplate () {
131		Interrupt (ResourceConsumer, Edge, ActiveLow, Shared) {
132			  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,
133			 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
134			 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
135			 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
136			 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
137			 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
138			 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
139			113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
140			129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
141			145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
142			161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
143			177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
144			193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,
145			209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,
146			225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,
147			241,242,243,244,245,246,247,248,249,250,251,252,253,254,255}
148	},
149
150	// Resource Source
151
152	ResourceTemplate () {
153		Interrupt (ResourceConsumer, Edge, ActiveLow, Shared,
154			0x01, "") {0xfcfdfeff}
155	},
156	ResourceTemplate () {
157		Interrupt (ResourceConsumer, Edge, ActiveLow, Shared,
158			0x0f, "P") {0xfcfdfeff}
159	},
160	ResourceTemplate () {
161		Interrupt (ResourceConsumer, Edge, ActiveLow, Shared,
162			0xf0, "PATH") {0xfcfdfeff}
163	},
164	ResourceTemplate () {
165		Interrupt (ResourceConsumer, Edge, ActiveLow, Shared,
166			0xff,
167			"!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*"
168			) {0xfcfdfeff}
169	},
170
171	// Particular cases
172
173	ResourceTemplate () {
174		Interrupt (ResourceConsumer, Edge, ActiveLow, Shared,
175			0xff,
176			"!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*",
177			INT0) {
178			  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,
179			 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
180			 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
181			 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
182			 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
183			 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
184			 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
185			113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
186			129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
187			145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
188			161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
189			177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
190			193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,
191			209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,
192			225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,
193			241,242,243,244,245,246,247,248,249,250,251,252,253,254,255}
194	},
195
196	// 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection)
197	ResourceTemplate () {
198		Interrupt (ResourceConsumer, Edge, ActiveLow, Shared,
199			0x0f) {0xfcfdfeff}
200	},
201})
202
203/*
204ACPI Specification, Revision 3.0, September 2, 2004
2056.4.3.6   Extended Interrupt Descriptor
206
207Extended Interrupt Descriptor layout:
208
209Byte 0	Extended Interrupt Descriptor	Value=10001001B (0x89) (Type = 1, Large item name = 0x9)
210Byte 1	Length, bits[7:0]	Variable: Value = 6 (minimum)
211Byte 2	Length, bits[15:8]	Variable: Value = 0 (minimum)
212Byte 3	Interrupt Vector Flags	Interrupt Vector Information.
213	Bit[7:4]	Reserved (must be 0)
214	Bit[3]		Interrupt is shareable, _SHR
215	Bit[2] 		Interrupt Polarity, _LL
216			0	Active-High: This interrupt is sampled
217				when the signal is high, or true.
218			1	Active-Low: This interrupt is sampled
219				when the signal is low, or false.
220	Bit[1] 		Interrupt Mode, _HE
221			0	Level-Triggered: Interrupt is triggered in response
222				to the signal being in either a high or low state.
223			1	Edge-Triggered: This interrupt is
224				triggered in response to a change in signal
225				state, either high to low or low to high.
226	Bit[0] 		Consumer/Producer:
227			1-This device consumes this resource
228		        0-This device produces and consumes this resource
229
230Byte 4	Interrupt table length	Indicates the number of interrupt numbers that follow.
231				When this descriptor is returned from _CRS, or when OSPM
232				passes this descriptor to _SRS, this field must be set to 1.
233Byte 4n+5	Interrupt Number, _INT bits [7:0]	Interrupt number
234Byte 4n+6	Interrupt Number, _INT bits [15:8]	
235Byte 4n+7	Interrupt Number, _INT bits [23:16]	
236Byte 4n+8	Interrupt Number, _INT bits [31:24]	
237            Additional interrupt numbers
238Byte x	Resource Source Index	(Optional) Only present if Resource Source (below) is present.
239				This field gives an index to the specific resource descriptor
240				that this device consumes from in the current resource template
241				for the device object pointed to in Resource Source.
242String	Resource Source	(Optional)  If present, the device that uses this descriptor consumes its
243				resources from the resources produces by the named device object.
244				If not present, the device consumes its resources out of a global
245				pool. If not present, the device consumes this resource from its
246				hierarchical parent.
247*/
248
249Name (p435, Package() {
250
251	// Byte 3 (Interrupt Vector Flags) of Extended Interrupt Descriptor
252
253	Buffer () {0x89, 0x06, 0x00, 0x00, 0x01,
254		0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
255	Buffer () {0x89, 0x0a, 0x00, 0x08, 0x02,
256		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
257	Buffer () {0x89, 0x0e, 0x00, 0x04, 0x03,
258		0xf7, 0xf6, 0xf5, 0xf4,
259		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
260	Buffer () {0x89, 0x12, 0x00, 0x0c, 0x04,
261		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
262		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
263	Buffer () {0x89, 0x16, 0x00, 0x02, 0x05,
264		0xef, 0xee, 0xed, 0xec,
265		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
266		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
267	Buffer () {0x89, 0x1a, 0x00, 0x0a, 0x06,
268		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
269		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
270		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
271	Buffer () {0x89, 0x1e, 0x00, 0x06, 0x07,
272		0xe7, 0xe6, 0xe5, 0xe4,
273		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
274		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
275		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
276	Buffer () {0x89, 0x22, 0x00, 0x0e, 0x08,
277		0xe3, 0xe2, 0xe1, 0xe0, 0xe7, 0xe6, 0xe5, 0xe4,
278		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
279		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
280		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
281	Buffer () {0x89, 0x26, 0x00, 0x01, 0x09,
282		0xdf, 0xde, 0xdd, 0xdc,
283		0xe3, 0xe2, 0xe1, 0xe0, 0xe7, 0xe6, 0xe5, 0xe4,
284		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
285		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
286		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
287	Buffer () {0x89, 0x2a, 0x00, 0x09, 0x0a,
288		0xdb, 0xda, 0xd9, 0xd8, 0xdf, 0xde, 0xdd, 0xdc,
289		0xe3, 0xe2, 0xe1, 0xe0, 0xe7, 0xe6, 0xe5, 0xe4,
290		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
291		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
292		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
293	Buffer () {0x89, 0x2e, 0x00, 0x05, 0x0b,
294		0xd7, 0xd6, 0xd5, 0xd4,
295		0xdb, 0xda, 0xd9, 0xd8, 0xdf, 0xde, 0xdd, 0xdc,
296		0xe3, 0xe2, 0xe1, 0xe0, 0xe7, 0xe6, 0xe5, 0xe4,
297		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
298		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
299		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
300	Buffer () {0x89, 0x32, 0x00, 0x0d, 0x0c,
301		0xd3, 0xd2, 0xd1, 0xd0, 0xd7, 0xd6, 0xd5, 0xd4,
302		0xdb, 0xda, 0xd9, 0xd8, 0xdf, 0xde, 0xdd, 0xdc,
303		0xe3, 0xe2, 0xe1, 0xe0, 0xe7, 0xe6, 0xe5, 0xe4,
304		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
305		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
306		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
307	Buffer () {0x89, 0x36, 0x00, 0x03, 0x0d,
308		0xcf, 0xce, 0xcd, 0xcc,
309		0xd3, 0xd2, 0xd1, 0xd0, 0xd7, 0xd6, 0xd5, 0xd4,
310		0xdb, 0xda, 0xd9, 0xd8, 0xdf, 0xde, 0xdd, 0xdc,
311		0xe3, 0xe2, 0xe1, 0xe0, 0xe7, 0xe6, 0xe5, 0xe4,
312		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
313		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
314		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
315	Buffer () {0x89, 0x3a, 0x00, 0x0b, 0x0e,
316		0xcb, 0xca, 0xc9, 0xc8, 0xcf, 0xce, 0xcd, 0xcc,
317		0xd3, 0xd2, 0xd1, 0xd0, 0xd7, 0xd6, 0xd5, 0xd4,
318		0xdb, 0xda, 0xd9, 0xd8, 0xdf, 0xde, 0xdd, 0xdc,
319		0xe3, 0xe2, 0xe1, 0xe0, 0xe7, 0xe6, 0xe5, 0xe4,
320		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
321		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
322		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
323	Buffer () {0x89, 0x3e, 0x00, 0x07, 0x0f,
324		0xc7, 0xc6, 0xc5, 0xc4,
325		0xcb, 0xca, 0xc9, 0xc8, 0xcf, 0xce, 0xcd, 0xcc,
326		0xd3, 0xd2, 0xd1, 0xd0, 0xd7, 0xd6, 0xd5, 0xd4,
327		0xdb, 0xda, 0xd9, 0xd8, 0xdf, 0xde, 0xdd, 0xdc,
328		0xe3, 0xe2, 0xe1, 0xe0, 0xe7, 0xe6, 0xe5, 0xe4,
329		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
330		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
331		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
332	Buffer () {0x89, 0x42, 0x00, 0x0f, 0x10,
333		0xc3, 0xc2, 0xc1, 0xc0, 0xc7, 0xc6, 0xc5, 0xc4,
334		0xcb, 0xca, 0xc9, 0xc8, 0xcf, 0xce, 0xcd, 0xcc,
335		0xd3, 0xd2, 0xd1, 0xd0, 0xd7, 0xd6, 0xd5, 0xd4,
336		0xdb, 0xda, 0xd9, 0xd8, 0xdf, 0xde, 0xdd, 0xdc,
337		0xe3, 0xe2, 0xe1, 0xe0, 0xe7, 0xe6, 0xe5, 0xe4,
338		0xeb, 0xea, 0xe9, 0xe8, 0xef, 0xee, 0xed, 0xec,
339		0xf3, 0xf2, 0xf1, 0xf0, 0xf7, 0xf6, 0xf5, 0xf4,
340		0xfb, 0xfa, 0xf9, 0xf8, 0xff, 0xfe, 0xfd, 0xfc, 0x79, 0x00},
341
342	// At the moment returning
343	// Buffer () {0x89, 0x06, 0x00, 0x0f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x79, 0x00},
344
345	Buffer () {0x89, 0xfe, 0x03, 0x0f, 0xff,
346		  1,  0,  0,  0,  2,  0,  0,  0,  3,  0,  0,  0,  4,  0,  0,  0,
347		  5,  0,  0,  0,  6,  0,  0,  0,  7,  0,  0,  0,  8,  0,  0,  0,
348		  9,  0,  0,  0, 10,  0,  0,  0, 11,  0,  0,  0, 12,  0,  0,  0,
349		 13,  0,  0,  0, 14,  0,  0,  0, 15,  0,  0,  0, 16,  0,  0,  0,
350		 17,  0,  0,  0, 18,  0,  0,  0, 19,  0,  0,  0, 20,  0,  0,  0,
351		 21,  0,  0,  0, 22,  0,  0,  0, 23,  0,  0,  0, 24,  0,  0,  0,
352		 25,  0,  0,  0, 26,  0,  0,  0, 27,  0,  0,  0, 28,  0,  0,  0,
353		 29,  0,  0,  0, 30,  0,  0,  0, 31,  0,  0,  0, 32,  0,  0,  0,
354		 33,  0,  0,  0, 34,  0,  0,  0, 35,  0,  0,  0, 36,  0,  0,  0,
355		 37,  0,  0,  0, 38,  0,  0,  0, 39,  0,  0,  0, 40,  0,  0,  0,
356		 41,  0,  0,  0, 42,  0,  0,  0, 43,  0,  0,  0, 44,  0,  0,  0,
357		 45,  0,  0,  0, 46,  0,  0,  0, 47,  0,  0,  0, 48,  0,  0,  0,
358		 49,  0,  0,  0, 50,  0,  0,  0, 51,  0,  0,  0, 52,  0,  0,  0,
359		 53,  0,  0,  0, 54,  0,  0,  0, 55,  0,  0,  0, 56,  0,  0,  0,
360		 57,  0,  0,  0, 58,  0,  0,  0, 59,  0,  0,  0, 60,  0,  0,  0,
361		 61,  0,  0,  0, 62,  0,  0,  0, 63,  0,  0,  0, 64,  0,  0,  0,
362		 65,  0,  0,  0, 66,  0,  0,  0, 67,  0,  0,  0, 68,  0,  0,  0,
363		 69,  0,  0,  0, 70,  0,  0,  0, 71,  0,  0,  0, 72,  0,  0,  0,
364		 73,  0,  0,  0, 74,  0,  0,  0, 75,  0,  0,  0, 76,  0,  0,  0,
365		 77,  0,  0,  0, 78,  0,  0,  0, 79,  0,  0,  0, 80,  0,  0,  0,
366		 81,  0,  0,  0, 82,  0,  0,  0, 83,  0,  0,  0, 84,  0,  0,  0,
367		 85,  0,  0,  0, 86,  0,  0,  0, 87,  0,  0,  0, 88,  0,  0,  0,
368		 89,  0,  0,  0, 90,  0,  0,  0, 91,  0,  0,  0, 92,  0,  0,  0,
369		 93,  0,  0,  0, 94,  0,  0,  0, 95,  0,  0,  0, 96,  0,  0,  0,
370		 97,  0,  0,  0, 98,  0,  0,  0, 99,  0,  0,  0,100,  0,  0,  0,
371		101,  0,  0,  0,102,  0,  0,  0,103,  0,  0,  0,104,  0,  0,  0,
372		105,  0,  0,  0,106,  0,  0,  0,107,  0,  0,  0,108,  0,  0,  0,
373		109,  0,  0,  0,110,  0,  0,  0,111,  0,  0,  0,112,  0,  0,  0,
374		113,  0,  0,  0,114,  0,  0,  0,115,  0,  0,  0,116,  0,  0,  0,
375		117,  0,  0,  0,118,  0,  0,  0,119,  0,  0,  0,120,  0,  0,  0,
376		121,  0,  0,  0,122,  0,  0,  0,123,  0,  0,  0,124,  0,  0,  0,
377		125,  0,  0,  0,126,  0,  0,  0,127,  0,  0,  0,128,  0,  0,  0,
378		129,  0,  0,  0,130,  0,  0,  0,131,  0,  0,  0,132,  0,  0,  0,
379		133,  0,  0,  0,134,  0,  0,  0,135,  0,  0,  0,136,  0,  0,  0,
380		137,  0,  0,  0,138,  0,  0,  0,139,  0,  0,  0,140,  0,  0,  0,
381		141,  0,  0,  0,142,  0,  0,  0,143,  0,  0,  0,144,  0,  0,  0,
382		145,  0,  0,  0,146,  0,  0,  0,147,  0,  0,  0,148,  0,  0,  0,
383		149,  0,  0,  0,150,  0,  0,  0,151,  0,  0,  0,152,  0,  0,  0,
384		153,  0,  0,  0,154,  0,  0,  0,155,  0,  0,  0,156,  0,  0,  0,
385		157,  0,  0,  0,158,  0,  0,  0,159,  0,  0,  0,160,  0,  0,  0,
386		161,  0,  0,  0,162,  0,  0,  0,163,  0,  0,  0,164,  0,  0,  0,
387		165,  0,  0,  0,166,  0,  0,  0,167,  0,  0,  0,168,  0,  0,  0,
388		169,  0,  0,  0,170,  0,  0,  0,171,  0,  0,  0,172,  0,  0,  0,
389		173,  0,  0,  0,174,  0,  0,  0,175,  0,  0,  0,176,  0,  0,  0,
390		177,  0,  0,  0,178,  0,  0,  0,179,  0,  0,  0,180,  0,  0,  0,
391		181,  0,  0,  0,182,  0,  0,  0,183,  0,  0,  0,184,  0,  0,  0,
392		185,  0,  0,  0,186,  0,  0,  0,187,  0,  0,  0,188,  0,  0,  0,
393		189,  0,  0,  0,190,  0,  0,  0,191,  0,  0,  0,192,  0,  0,  0,
394		193,  0,  0,  0,194,  0,  0,  0,195,  0,  0,  0,196,  0,  0,  0,
395		197,  0,  0,  0,198,  0,  0,  0,199,  0,  0,  0,200,  0,  0,  0,
396		201,  0,  0,  0,202,  0,  0,  0,203,  0,  0,  0,204,  0,  0,  0,
397		205,  0,  0,  0,206,  0,  0,  0,207,  0,  0,  0,208,  0,  0,  0,
398		209,  0,  0,  0,210,  0,  0,  0,211,  0,  0,  0,212,  0,  0,  0,
399		213,  0,  0,  0,214,  0,  0,  0,215,  0,  0,  0,216,  0,  0,  0,
400		217,  0,  0,  0,218,  0,  0,  0,219,  0,  0,  0,220,  0,  0,  0,
401		221,  0,  0,  0,222,  0,  0,  0,223,  0,  0,  0,224,  0,  0,  0,
402		225,  0,  0,  0,226,  0,  0,  0,227,  0,  0,  0,228,  0,  0,  0,
403		229,  0,  0,  0,230,  0,  0,  0,231,  0,  0,  0,232,  0,  0,  0,
404		233,  0,  0,  0,234,  0,  0,  0,235,  0,  0,  0,236,  0,  0,  0,
405		237,  0,  0,  0,238,  0,  0,  0,239,  0,  0,  0,240,  0,  0,  0,
406		241,  0,  0,  0,242,  0,  0,  0,243,  0,  0,  0,244,  0,  0,  0,
407		245,  0,  0,  0,246,  0,  0,  0,247,  0,  0,  0,248,  0,  0,  0,
408		249,  0,  0,  0,250,  0,  0,  0,251,  0,  0,  0,252,  0,  0,  0,
409		253,  0,  0,  0,254,  0,  0,  0,255,  0,  0,  0,
410		0x79, 0x00},
411
412	// Resource Source
413
414	Buffer () {0x89, 0x08, 0x00, 0x0f, 0x01, 0xff, 0xfe, 0xfd, 0xfc,
415		0x01, 0x00, 0x79, 0x00},
416	Buffer () {0x89, 0x09, 0x00, 0x0f, 0x01, 0xff, 0xfe, 0xfd, 0xfc,
417		0x0f, 0x50, 0x00, 0x79, 0x00},
418	Buffer () {0x89, 0x0c, 0x00, 0x0f, 0x01, 0xff, 0xfe, 0xfd, 0xfc,
419		0xf0, 0x50, 0x41, 0x54, 0x48, 0x00, 0x79, 0x00},
420	Buffer () {0x89, 0xd0, 0x00, 0x0f, 0x01, 0xff, 0xfe, 0xfd, 0xfc,
421		0xff,
422		0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28,
423		0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30,
424		0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38,
425		0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40,
426		0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,
427		0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50,
428		0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,
429		0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60,
430		0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,
431		0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70,
432		0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,
433		0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x20, 0x21,
434		0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29,
435		0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31,
436		0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39,
437		0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41,
438		0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,
439		0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51,
440		0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59,
441		0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60, 0x61,
442		0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69,
443		0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71,
444		0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79,
445		0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x20, 0x21, 0x22,
446		0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a,
447		0x00, 0x79, 0x00},
448
449	// Particular cases
450
451	Buffer () {0x89, 0xc8, 0x04, 0x0f, 0xff,
452		  1,  0,  0,  0,  2,  0,  0,  0,  3,  0,  0,  0,  4,  0,  0,  0,
453		  5,  0,  0,  0,  6,  0,  0,  0,  7,  0,  0,  0,  8,  0,  0,  0,
454		  9,  0,  0,  0, 10,  0,  0,  0, 11,  0,  0,  0, 12,  0,  0,  0,
455		 13,  0,  0,  0, 14,  0,  0,  0, 15,  0,  0,  0, 16,  0,  0,  0,
456		 17,  0,  0,  0, 18,  0,  0,  0, 19,  0,  0,  0, 20,  0,  0,  0,
457		 21,  0,  0,  0, 22,  0,  0,  0, 23,  0,  0,  0, 24,  0,  0,  0,
458		 25,  0,  0,  0, 26,  0,  0,  0, 27,  0,  0,  0, 28,  0,  0,  0,
459		 29,  0,  0,  0, 30,  0,  0,  0, 31,  0,  0,  0, 32,  0,  0,  0,
460		 33,  0,  0,  0, 34,  0,  0,  0, 35,  0,  0,  0, 36,  0,  0,  0,
461		 37,  0,  0,  0, 38,  0,  0,  0, 39,  0,  0,  0, 40,  0,  0,  0,
462		 41,  0,  0,  0, 42,  0,  0,  0, 43,  0,  0,  0, 44,  0,  0,  0,
463		 45,  0,  0,  0, 46,  0,  0,  0, 47,  0,  0,  0, 48,  0,  0,  0,
464		 49,  0,  0,  0, 50,  0,  0,  0, 51,  0,  0,  0, 52,  0,  0,  0,
465		 53,  0,  0,  0, 54,  0,  0,  0, 55,  0,  0,  0, 56,  0,  0,  0,
466		 57,  0,  0,  0, 58,  0,  0,  0, 59,  0,  0,  0, 60,  0,  0,  0,
467		 61,  0,  0,  0, 62,  0,  0,  0, 63,  0,  0,  0, 64,  0,  0,  0,
468		 65,  0,  0,  0, 66,  0,  0,  0, 67,  0,  0,  0, 68,  0,  0,  0,
469		 69,  0,  0,  0, 70,  0,  0,  0, 71,  0,  0,  0, 72,  0,  0,  0,
470		 73,  0,  0,  0, 74,  0,  0,  0, 75,  0,  0,  0, 76,  0,  0,  0,
471		 77,  0,  0,  0, 78,  0,  0,  0, 79,  0,  0,  0, 80,  0,  0,  0,
472		 81,  0,  0,  0, 82,  0,  0,  0, 83,  0,  0,  0, 84,  0,  0,  0,
473		 85,  0,  0,  0, 86,  0,  0,  0, 87,  0,  0,  0, 88,  0,  0,  0,
474		 89,  0,  0,  0, 90,  0,  0,  0, 91,  0,  0,  0, 92,  0,  0,  0,
475		 93,  0,  0,  0, 94,  0,  0,  0, 95,  0,  0,  0, 96,  0,  0,  0,
476		 97,  0,  0,  0, 98,  0,  0,  0, 99,  0,  0,  0,100,  0,  0,  0,
477		101,  0,  0,  0,102,  0,  0,  0,103,  0,  0,  0,104,  0,  0,  0,
478		105,  0,  0,  0,106,  0,  0,  0,107,  0,  0,  0,108,  0,  0,  0,
479		109,  0,  0,  0,110,  0,  0,  0,111,  0,  0,  0,112,  0,  0,  0,
480		113,  0,  0,  0,114,  0,  0,  0,115,  0,  0,  0,116,  0,  0,  0,
481		117,  0,  0,  0,118,  0,  0,  0,119,  0,  0,  0,120,  0,  0,  0,
482		121,  0,  0,  0,122,  0,  0,  0,123,  0,  0,  0,124,  0,  0,  0,
483		125,  0,  0,  0,126,  0,  0,  0,127,  0,  0,  0,128,  0,  0,  0,
484		129,  0,  0,  0,130,  0,  0,  0,131,  0,  0,  0,132,  0,  0,  0,
485		133,  0,  0,  0,134,  0,  0,  0,135,  0,  0,  0,136,  0,  0,  0,
486		137,  0,  0,  0,138,  0,  0,  0,139,  0,  0,  0,140,  0,  0,  0,
487		141,  0,  0,  0,142,  0,  0,  0,143,  0,  0,  0,144,  0,  0,  0,
488		145,  0,  0,  0,146,  0,  0,  0,147,  0,  0,  0,148,  0,  0,  0,
489		149,  0,  0,  0,150,  0,  0,  0,151,  0,  0,  0,152,  0,  0,  0,
490		153,  0,  0,  0,154,  0,  0,  0,155,  0,  0,  0,156,  0,  0,  0,
491		157,  0,  0,  0,158,  0,  0,  0,159,  0,  0,  0,160,  0,  0,  0,
492		161,  0,  0,  0,162,  0,  0,  0,163,  0,  0,  0,164,  0,  0,  0,
493		165,  0,  0,  0,166,  0,  0,  0,167,  0,  0,  0,168,  0,  0,  0,
494		169,  0,  0,  0,170,  0,  0,  0,171,  0,  0,  0,172,  0,  0,  0,
495		173,  0,  0,  0,174,  0,  0,  0,175,  0,  0,  0,176,  0,  0,  0,
496		177,  0,  0,  0,178,  0,  0,  0,179,  0,  0,  0,180,  0,  0,  0,
497		181,  0,  0,  0,182,  0,  0,  0,183,  0,  0,  0,184,  0,  0,  0,
498		185,  0,  0,  0,186,  0,  0,  0,187,  0,  0,  0,188,  0,  0,  0,
499		189,  0,  0,  0,190,  0,  0,  0,191,  0,  0,  0,192,  0,  0,  0,
500		193,  0,  0,  0,194,  0,  0,  0,195,  0,  0,  0,196,  0,  0,  0,
501		197,  0,  0,  0,198,  0,  0,  0,199,  0,  0,  0,200,  0,  0,  0,
502		201,  0,  0,  0,202,  0,  0,  0,203,  0,  0,  0,204,  0,  0,  0,
503		205,  0,  0,  0,206,  0,  0,  0,207,  0,  0,  0,208,  0,  0,  0,
504		209,  0,  0,  0,210,  0,  0,  0,211,  0,  0,  0,212,  0,  0,  0,
505		213,  0,  0,  0,214,  0,  0,  0,215,  0,  0,  0,216,  0,  0,  0,
506		217,  0,  0,  0,218,  0,  0,  0,219,  0,  0,  0,220,  0,  0,  0,
507		221,  0,  0,  0,222,  0,  0,  0,223,  0,  0,  0,224,  0,  0,  0,
508		225,  0,  0,  0,226,  0,  0,  0,227,  0,  0,  0,228,  0,  0,  0,
509		229,  0,  0,  0,230,  0,  0,  0,231,  0,  0,  0,232,  0,  0,  0,
510		233,  0,  0,  0,234,  0,  0,  0,235,  0,  0,  0,236,  0,  0,  0,
511		237,  0,  0,  0,238,  0,  0,  0,239,  0,  0,  0,240,  0,  0,  0,
512		241,  0,  0,  0,242,  0,  0,  0,243,  0,  0,  0,244,  0,  0,  0,
513		245,  0,  0,  0,246,  0,  0,  0,247,  0,  0,  0,248,  0,  0,  0,
514		249,  0,  0,  0,250,  0,  0,  0,251,  0,  0,  0,252,  0,  0,  0,
515		253,  0,  0,  0,254,  0,  0,  0,255,  0,  0,  0,
516		0xff,
517		0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28,
518		0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30,
519		0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38,
520		0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40,
521		0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,
522		0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50,
523		0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,
524		0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60,
525		0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,
526		0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70,
527		0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,
528		0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x20, 0x21,
529		0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29,
530		0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 0x30, 0x31,
531		0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39,
532		0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41,
533		0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,
534		0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51,
535		0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59,
536		0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 0x60, 0x61,
537		0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69,
538		0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71,
539		0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79,
540		0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x20, 0x21, 0x22,
541		0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a,
542		0x00, 0x79, 0x00},
543
544	// 20051021, relaxation for omitted ResourceSource (bug-fix 70 rejection)
545	Buffer () {0x89, 0x07, 0x00, 0x0f, 0x01, 0xff, 0xfe, 0xfd, 0xfc,
546		0x0f, 0x79, 0x00},
547})
548
549Method(RT18,, Serialized)
550{
551	Name(ts, "RT18")
552
553	// Emit test header, set the filename
554
555	THDR (ts, "Interrupt Resource Descriptor Macro", __FILE__)
556
557    // Main test case for packages above
558
559	m330(ts, 23, "p434", p434, p435)
560
561    // Check resource descriptor tag offsets
562
563	Store (
564		ResourceTemplate () {
565			Interrupt (ResourceProducer, Edge, ActiveLow, Shared, , , INT0) {0xfcfdfeff}
566			Interrupt (ResourceProducer, Edge, ActiveLow, Shared, , , INT1) {0xfcfdfeff}
567		}, Local0)
568
569	m331(ts, 1, INT0._HE,  0x19, INT1._HE,  0x61, "_HE")
570	m331(ts, 2, INT0._LL,  0x1a, INT1._LL,  0x62, "_LL")
571	m331(ts, 3, INT0._SHR, 0x1b, INT1._SHR, 0x63, "_SHR")
572	m331(ts, 4, INT0._INT, 0x28, INT1._INT, 0x70, "_INT")
573
574	CH03(ts, z017, 0x123, 0, 0)
575}
576