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     * Data type conversion and manipulation
30     *
31     * Concatenate two strings, integers or buffers
32     */
33    /*
34     // !!!!!!!!!!!!!!!!!!!!!!!!!! ???????????????????
35     // SEE: (Compare two buffers)
36     // Remove (?) this method and replace it with the
37     // LNotEqual, LEqual............ ????? !!!!!!!!!!
38     // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
39     */
40    Name (Z036, 0x24)
41    /* Compare two buffers */
42    /* */
43    /* Arg0 - name */
44    /* Arg1 - buffer1 */
45    /* Arg2 - buffer2 */
46    /* Arg3 - length */
47    Method (M310, 4, NotSerialized)
48    {
49        Local0 = 0x00
50        While ((Local0 < Arg3))
51        {
52            Local1 = DerefOf (Arg1 [Local0])
53            Local2 = DerefOf (Arg2 [Local0])
54            If ((Local1 != Local2))
55            {
56                Return (Ones)
57            }
58
59            Local0++
60        }
61
62        Return (Zero)
63    }
64
65    /* Compare two buffers */
66    /* */
67    /* Arg0 - name */
68    /* Arg1 - buffer1 */
69    /* Arg2 - buffer2 */
70    Method (M311, 3, NotSerialized)
71    {
72        If ((ObjectType (Arg1) != 0x03))
73        {
74            ERR ("m311: unexpected type of Arg1", Z036, __LINE__, 0x00, 0x00, 0x00, 0x00)
75            Return (Ones)
76        }
77
78        If ((ObjectType (Arg2) != 0x03))
79        {
80            ERR ("m311: unexpected type of Arg2", Z036, __LINE__, 0x00, 0x00, 0x00, 0x00)
81            Return (Ones)
82        }
83
84        Local0 = SizeOf (Arg1)
85        If ((Local0 != SizeOf (Arg2)))
86        {
87            Return (Ones)
88        }
89
90        If (M310 (Arg0, Arg1, Arg2, Local0))
91        {
92            Return (Ones)
93        }
94
95        Return (Zero)
96    }
97
98    /* Verifying 2-parameters, 1-result operator */
99
100    Method (M312, 6, Serialized)
101    {
102        Local5 = 0x00
103        Local3 = Arg1
104        While (Local3)
105        {
106            /* Operands */
107
108            Local6 = (Local5 * 0x02)
109            Local0 = DerefOf (Arg3 [Local6])
110            Local6++
111            Local1 = DerefOf (Arg3 [Local6])
112            /* Expected result */
113
114            Local2 = DerefOf (Arg4 [Local5])
115            Switch (ToInteger (Arg5))
116            {
117                Case (0x00)
118                {
119                    /* Results in buffer */
120
121                    Concatenate (Local0, Local1, Local7)
122                    If (M311 (Arg0, Local7, Local2))
123                    {
124                        ERR (Arg0, Z036, __LINE__, 0x00, 0x00, Local5, Arg2)
125                    }
126                }
127                Case (0x01)
128                {
129                    /* Results in string */
130
131                    Concatenate (Local0, Local1, Local7)
132                    If ((ObjectType (Local7) != 0x02))
133                    {
134                        ERR (Arg0, Z036, __LINE__, 0x00, 0x00, Local7, Arg2)
135                    }
136                    ElseIf ((ObjectType (Local2) != 0x02))
137                    {
138                        ERR (Arg0, Z036, __LINE__, 0x00, 0x00, Local2, Arg2)
139                    }
140                    ElseIf ((Local7 != Local2))
141                    {
142                        ERR (Arg0, Z036, __LINE__, 0x00, 0x00, Local7, Arg2)
143                    }
144                }
145
146            }
147
148            Local5++
149            Local3--
150        }
151    }
152
153    /* Integers */
154
155    Method (M313, 0, Serialized)
156    {
157        Name (P000, Package (0x18)
158        {
159            0x00,
160            0x00,
161            0xFFFFFFFF,
162            0xFFFFFFFF,
163            0x00,
164            0xFFFFFFFF,
165            0x00,
166            0x81,
167            0x00,
168            0x9AC6,
169            0x00,
170            0xAB012345,
171            0x92,
172            0x81,
173            0x93,
174            0x8476,
175            0xAB,
176            0xDC816778,
177            0xAC93,
178            0x8476,
179            0xF63B,
180            0x8C8FC2DA,
181            0x8790F6A4,
182            0x98DE45BA
183        })
184        Name (P001, Package (0x0C)
185        {
186            Buffer (0x08)
187            {
188                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   // ........
189            },
190
191            Buffer (0x08)
192            {
193                 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF   // ........
194            },
195
196            Buffer (0x08)
197            {
198                 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF   // ........
199            },
200
201            Buffer (0x08)
202            {
203                 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00   // ........
204            },
205
206            Buffer (0x08)
207            {
208                 0x00, 0x00, 0x00, 0x00, 0xC6, 0x9A, 0x00, 0x00   // ........
209            },
210
211            Buffer (0x08)
212            {
213                 0x00, 0x00, 0x00, 0x00, 0x45, 0x23, 0x01, 0xAB   // ....E#..
214            },
215
216            Buffer (0x08)
217            {
218                 0x92, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00   // ........
219            },
220
221            Buffer (0x08)
222            {
223                 0x93, 0x00, 0x00, 0x00, 0x76, 0x84, 0x00, 0x00   // ....v...
224            },
225
226            Buffer (0x08)
227            {
228                 0xAB, 0x00, 0x00, 0x00, 0x78, 0x67, 0x81, 0xDC   // ....xg..
229            },
230
231            Buffer (0x08)
232            {
233                 0x93, 0xAC, 0x00, 0x00, 0x76, 0x84, 0x00, 0x00   // ....v...
234            },
235
236            Buffer (0x08)
237            {
238                 0x3B, 0xF6, 0x00, 0x00, 0xDA, 0xC2, 0x8F, 0x8C   // ;.......
239            },
240
241            Buffer (0x08)
242            {
243                 0xA4, 0xF6, 0x90, 0x87, 0xBA, 0x45, 0xDE, 0x98   // .....E..
244            }
245        })
246        Name (P002, Package (0x0C)
247        {
248            Buffer (0x10)
249            {
250                /* 0000 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ........
251                /* 0008 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   // ........
252            },
253
254            Buffer (0x10)
255            {
256                /* 0000 */  0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00,  // ........
257                /* 0008 */  0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00   // ........
258            },
259
260            Buffer (0x10)
261            {
262                /* 0000 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ........
263                /* 0008 */  0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00   // ........
264            },
265
266            Buffer (0x10)
267            {
268                /* 0000 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ........
269                /* 0008 */  0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   // ........
270            },
271
272            Buffer (0x10)
273            {
274                /* 0000 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ........
275                /* 0008 */  0xC6, 0x9A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   // ........
276            },
277
278            Buffer (0x10)
279            {
280                /* 0000 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ........
281                /* 0008 */  0x45, 0x23, 0x01, 0xAB, 0x00, 0x00, 0x00, 0x00   // E#......
282            },
283
284            Buffer (0x10)
285            {
286                /* 0000 */  0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ........
287                /* 0008 */  0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   // ........
288            },
289
290            Buffer (0x10)
291            {
292                /* 0000 */  0x93, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ........
293                /* 0008 */  0x76, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   // v.......
294            },
295
296            Buffer (0x10)
297            {
298                /* 0000 */  0xAB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ........
299                /* 0008 */  0x78, 0x67, 0x81, 0xDC, 0x00, 0x00, 0x00, 0x00   // xg......
300            },
301
302            Buffer (0x10)
303            {
304                /* 0000 */  0x93, 0xAC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ........
305                /* 0008 */  0x76, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   // v.......
306            },
307
308            Buffer (0x10)
309            {
310                /* 0000 */  0x3B, 0xF6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,  // ;.......
311                /* 0008 */  0xDA, 0xC2, 0x8F, 0x8C, 0x00, 0x00, 0x00, 0x00   // ........
312            },
313
314            Buffer (0x10)
315            {
316                /* 0000 */  0xA4, 0xF6, 0x90, 0x87, 0x00, 0x00, 0x00, 0x00,  // ........
317                /* 0008 */  0xBA, 0x45, 0xDE, 0x98, 0x00, 0x00, 0x00, 0x00   // .E......
318            }
319        })
320        Name (P003, Package (0x04)
321        {
322            0xFFFFFFFFFFFFFFFF,
323            0xFFFFFFFFFFFFFFFF,
324            0x1234567890ABCDEF,
325            0x1122334455667788
326        })
327        Name (P004, Package (0x02)
328        {
329            Buffer (0x10)
330            {
331                /* 0000 */  0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,  // ........
332                /* 0008 */  0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF   // ........
333            },
334
335            ToUUID ("90abcdef-5678-1234-8877-665544332211")
336        })
337        If ((F64 == 0x01))
338        {
339            M312 (__METHOD__, 0x0C, "p000", P000, P002, 0x00)
340            M312 (__METHOD__, 0x02, "p003", P003, P004, 0x00)
341        }
342        Else
343        {
344            M312 (__METHOD__, 0x0C, "p000", P000, P001, 0x00)
345        }
346    }
347
348    /* Strings */
349
350    Method (M314, 0, Serialized)
351    {
352        Name (P000, Package (0x2C)
353        {
354            "qwertyuiop",
355            "qwertyuiop",
356            "qwertyuiop",
357            "qwertyuiop0",
358            "qwertyuiop",
359            "qwertyuio",
360            "",
361            "",
362            " ",
363            "",
364            "",
365            " ",
366            " ",
367            " ",
368            "  ",
369            " ",
370            " ",
371            "  ",
372            "a",
373            "",
374            "",
375            "a",
376            " a",
377            "a",
378            "a",
379            " a",
380            "a ",
381            "a",
382            "a",
383            "a ",
384            "a b",
385            "ab",
386            "ab",
387            "a b",
388            "a  b",
389            "a b",
390            "a b",
391            "a  b",
392            "abcDef",
393            "abcdef",
394            /* 100 + 100 */
395
396            "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789",
397            "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789",
398            "0",
399            ""
400        })
401        Name (P001, Package (0x15)
402        {
403            "qwertyuiopqwertyuiop",
404            "qwertyuiopqwertyuiop0",
405            "qwertyuiopqwertyuio",
406            "",
407            " ",
408            " ",
409            "  ",
410            "   ",
411            "   ",
412            "a",
413            "a",
414            " aa",
415            "a a",
416            "a a",
417            "aa ",
418            "a bab",
419            "aba b",
420            "a  ba b",
421            "a ba  b",
422            "abcDefabcdef",
423            "01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
424        })
425        M312 (__METHOD__, 0x15, "p000", P000, P001, 0x01)
426    }
427
428    /* Buffers */
429
430    Method (M315, 0, Serialized)
431    {
432        Name (P000, Package (0x02)
433        {
434            Buffer (0x64){},
435            Buffer (0x65){}
436        })
437        Name (P001, Package (0x01)
438        {
439            Buffer (0xC9){}
440        })
441        Name (P002, Package (0x03)
442        {
443            Buffer (0x05)
444            {
445                 0x01, 0x01, 0x02, 0x03, 0x04                     // .....
446            },
447
448            Buffer (0x88)
449            {
450                /* 0000 */  0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,  // ........
451                /* 0008 */  0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,  // ........
452                /* 0010 */  0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10,  // ........
453                /* 0018 */  0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,  // ........
454                /* 0020 */  0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20,  // .......
455                /* 0028 */  0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28,  // !"#$%&'(
456                /* 0030 */  0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,  // )*+,-./0
457                /* 0038 */  0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38,  // 12345678
458                /* 0040 */  0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40,  // 9:;<=>?@
459                /* 0048 */  0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,  // ABCDEFGH
460                /* 0050 */  0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50,  // IJKLMNOP
461                /* 0058 */  0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,  // QRSTUVWX
462                /* 0060 */  0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60,  // YZ[\]^_`
463                /* 0068 */  0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,  // abcdefgh
464                /* 0070 */  0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70,  // ijklmnop
465                /* 0078 */  0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,  // qrstuvwx
466                /* 0080 */  0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80   // yz{|}~..
467            },
468
469            Buffer (0x01C9)
470            {
471                /* 0000 */  0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,  // ........
472                /* 0008 */  0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10,  // ........
473                /* 0010 */  0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,  // ........
474                /* 0018 */  0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20,  // .......
475                /* 0020 */  0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28,  // !"#$%&'(
476                /* 0028 */  0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,  // )*+,-./0
477                /* 0030 */  0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38,  // 12345678
478                /* 0038 */  0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40,  // 9:;<=>?@
479                /* 0040 */  0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,  // ABCDEFGH
480                /* 0048 */  0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50,  // IJKLMNOP
481                /* 0050 */  0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,  // QRSTUVWX
482                /* 0058 */  0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60,  // YZ[\]^_`
483                /* 0060 */  0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,  // abcdefgh
484                /* 0068 */  0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70,  // ijklmnop
485                /* 0070 */  0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,  // qrstuvwx
486                /* 0078 */  0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80,  // yz{|}~..
487                /* 0080 */  0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88,  // ........
488                /* 0088 */  0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90,  // ........
489                /* 0090 */  0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98,  // ........
490                /* 0098 */  0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0,  // ........
491                /* 00A0 */  0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8,  // ........
492                /* 00A8 */  0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0,  // ........
493                /* 00B0 */  0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8,  // ........
494                /* 00B8 */  0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0,  // ........
495                /* 00C0 */  0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8,  // ........
496                /* 00C8 */  0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,  // ........
497                /* 00D0 */  0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10,  // ........
498                /* 00D8 */  0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,  // ........
499                /* 00E0 */  0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20,  // .......
500                /* 00E8 */  0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28,  // !"#$%&'(
501                /* 00F0 */  0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,  // )*+,-./0
502                /* 00F8 */  0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38,  // 12345678
503                /* 0100 */  0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40,  // 9:;<=>?@
504                /* 0108 */  0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,  // ABCDEFGH
505                /* 0110 */  0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50,  // IJKLMNOP
506                /* 0118 */  0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,  // QRSTUVWX
507                /* 0120 */  0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60,  // YZ[\]^_`
508                /* 0128 */  0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,  // abcdefgh
509                /* 0130 */  0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70,  // ijklmnop
510                /* 0138 */  0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,  // qrstuvwx
511                /* 0140 */  0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80,  // yz{|}~..
512                /* 0148 */  0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88,  // ........
513                /* 0150 */  0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90,  // ........
514                /* 0158 */  0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98,  // ........
515                /* 0160 */  0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0,  // ........
516                /* 0168 */  0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8,  // ........
517                /* 0170 */  0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0,  // ........
518                /* 0178 */  0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8,  // ........
519                /* 0180 */  0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0,  // ........
520                /* 0188 */  0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8,  // ........
521                /* 0190 */  0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0,  // ........
522                /* 0198 */  0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8,  // ........
523                /* 01A0 */  0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0,  // ........
524                /* 01A8 */  0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8,  // ........
525                /* 01B0 */  0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0,  // ........
526                /* 01B8 */  0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8,  // ........
527                /* 01C0 */  0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00,  // ........
528                /* 01C8 */  0x01                                             // .
529            }
530        })
531        M312 (__METHOD__, 0x01, "p000", P000, P001, 0x00)
532        M312 (__METHOD__, 0x03, "p325", P325, P002, 0x00)
533    }
534
535    /* Run-method */
536
537    Method (CCT0, 0, NotSerialized)
538    {
539        Debug = "TEST: CCT0, Concatenate two strings, integers or buffers"
540        M313 ()
541        M314 ()
542        M315 ()
543    }
544