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    /* String To Unicode Conversion Macro */
32    Name (P358, Package (0x04)
33    {
34        Buffer (0x02)
35        {
36             0x00, 0x00                                       // ..
37        },
38
39        Unicode (" "),
40        Buffer (0x0100)
41        {
42            /* 0000 */  0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04, 0x00,  // ........
43            /* 0008 */  0x05, 0x00, 0x06, 0x00, 0x07, 0x00, 0x08, 0x00,  // ........
44            /* 0010 */  0x09, 0x00, 0x0A, 0x00, 0x0B, 0x00, 0x0C, 0x00,  // ........
45            /* 0018 */  0x0D, 0x00, 0x0E, 0x00, 0x0F, 0x00, 0x10, 0x00,  // ........
46            /* 0020 */  0x11, 0x00, 0x12, 0x00, 0x13, 0x00, 0x14, 0x00,  // ........
47            /* 0028 */  0x15, 0x00, 0x16, 0x00, 0x17, 0x00, 0x18, 0x00,  // ........
48            /* 0030 */  0x19, 0x00, 0x1A, 0x00, 0x1B, 0x00, 0x1C, 0x00,  // ........
49            /* 0038 */  0x1D, 0x00, 0x1E, 0x00, 0x1F, 0x00, 0x20, 0x00,  // ...... .
50            /* 0040 */  0x21, 0x00, 0x22, 0x00, 0x23, 0x00, 0x24, 0x00,  // !.".#.$.
51            /* 0048 */  0x25, 0x00, 0x26, 0x00, 0x27, 0x00, 0x28, 0x00,  // %.&.'.(.
52            /* 0050 */  0x29, 0x00, 0x2A, 0x00, 0x2B, 0x00, 0x2C, 0x00,  // ).*.+.,.
53            /* 0058 */  0x2D, 0x00, 0x2E, 0x00, 0x2F, 0x00, 0x30, 0x00,  // -.../.0.
54            /* 0060 */  0x31, 0x00, 0x32, 0x00, 0x33, 0x00, 0x34, 0x00,  // 1.2.3.4.
55            /* 0068 */  0x35, 0x00, 0x36, 0x00, 0x37, 0x00, 0x38, 0x00,  // 5.6.7.8.
56            /* 0070 */  0x39, 0x00, 0x3A, 0x00, 0x3B, 0x00, 0x3C, 0x00,  // 9.:.;.<.
57            /* 0078 */  0x3D, 0x00, 0x3E, 0x00, 0x3F, 0x00, 0x40, 0x00,  // =.>.?.@.
58            /* 0080 */  0x41, 0x00, 0x42, 0x00, 0x43, 0x00, 0x44, 0x00,  // A.B.C.D.
59            /* 0088 */  0x45, 0x00, 0x46, 0x00, 0x47, 0x00, 0x48, 0x00,  // E.F.G.H.
60            /* 0090 */  0x49, 0x00, 0x4A, 0x00, 0x4B, 0x00, 0x4C, 0x00,  // I.J.K.L.
61            /* 0098 */  0x4D, 0x00, 0x4E, 0x00, 0x4F, 0x00, 0x50, 0x00,  // M.N.O.P.
62            /* 00A0 */  0x51, 0x00, 0x52, 0x00, 0x53, 0x00, 0x54, 0x00,  // Q.R.S.T.
63            /* 00A8 */  0x55, 0x00, 0x56, 0x00, 0x57, 0x00, 0x58, 0x00,  // U.V.W.X.
64            /* 00B0 */  0x59, 0x00, 0x5A, 0x00, 0x5B, 0x00, 0x5C, 0x00,  // Y.Z.[.\.
65            /* 00B8 */  0x5D, 0x00, 0x5E, 0x00, 0x5F, 0x00, 0x60, 0x00,  // ].^._.`.
66            /* 00C0 */  0x61, 0x00, 0x62, 0x00, 0x63, 0x00, 0x64, 0x00,  // a.b.c.d.
67            /* 00C8 */  0x65, 0x00, 0x66, 0x00, 0x67, 0x00, 0x68, 0x00,  // e.f.g.h.
68            /* 00D0 */  0x69, 0x00, 0x6A, 0x00, 0x6B, 0x00, 0x6C, 0x00,  // i.j.k.l.
69            /* 00D8 */  0x6D, 0x00, 0x6E, 0x00, 0x6F, 0x00, 0x70, 0x00,  // m.n.o.p.
70            /* 00E0 */  0x71, 0x00, 0x72, 0x00, 0x73, 0x00, 0x74, 0x00,  // q.r.s.t.
71            /* 00E8 */  0x75, 0x00, 0x76, 0x00, 0x77, 0x00, 0x78, 0x00,  // u.v.w.x.
72            /* 00F0 */  0x79, 0x00, 0x7A, 0x00, 0x7B, 0x00, 0x7C, 0x00,  // y.z.{.|.
73            /* 00F8 */  0x7D, 0x00, 0x7E, 0x00, 0x7F, 0x00, 0x00, 0x00   // }.~.....
74        },
75
76        Unicode ("!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*")
77    })
78    Name (P359, Package (0x04)
79    {
80        Buffer (0x02)
81        {
82             0x00, 0x00                                       // ..
83        },
84
85        Unicode (" "),
86        Buffer (0x0100)
87        {
88            /* 0000 */  0x01, 0x00, 0x02, 0x00, 0x03, 0x00, 0x04, 0x00,  // ........
89            /* 0008 */  0x05, 0x00, 0x06, 0x00, 0x07, 0x00, 0x08, 0x00,  // ........
90            /* 0010 */  0x09, 0x00, 0x0A, 0x00, 0x0B, 0x00, 0x0C, 0x00,  // ........
91            /* 0018 */  0x0D, 0x00, 0x0E, 0x00, 0x0F, 0x00, 0x10, 0x00,  // ........
92            /* 0020 */  0x11, 0x00, 0x12, 0x00, 0x13, 0x00, 0x14, 0x00,  // ........
93            /* 0028 */  0x15, 0x00, 0x16, 0x00, 0x17, 0x00, 0x18, 0x00,  // ........
94            /* 0030 */  0x19, 0x00, 0x1A, 0x00, 0x1B, 0x00, 0x1C, 0x00,  // ........
95            /* 0038 */  0x1D, 0x00, 0x1E, 0x00, 0x1F, 0x00, 0x20, 0x00,  // ...... .
96            /* 0040 */  0x21, 0x00, 0x22, 0x00, 0x23, 0x00, 0x24, 0x00,  // !.".#.$.
97            /* 0048 */  0x25, 0x00, 0x26, 0x00, 0x27, 0x00, 0x28, 0x00,  // %.&.'.(.
98            /* 0050 */  0x29, 0x00, 0x2A, 0x00, 0x2B, 0x00, 0x2C, 0x00,  // ).*.+.,.
99            /* 0058 */  0x2D, 0x00, 0x2E, 0x00, 0x2F, 0x00, 0x30, 0x00,  // -.../.0.
100            /* 0060 */  0x31, 0x00, 0x32, 0x00, 0x33, 0x00, 0x34, 0x00,  // 1.2.3.4.
101            /* 0068 */  0x35, 0x00, 0x36, 0x00, 0x37, 0x00, 0x38, 0x00,  // 5.6.7.8.
102            /* 0070 */  0x39, 0x00, 0x3A, 0x00, 0x3B, 0x00, 0x3C, 0x00,  // 9.:.;.<.
103            /* 0078 */  0x3D, 0x00, 0x3E, 0x00, 0x3F, 0x00, 0x40, 0x00,  // =.>.?.@.
104            /* 0080 */  0x41, 0x00, 0x42, 0x00, 0x43, 0x00, 0x44, 0x00,  // A.B.C.D.
105            /* 0088 */  0x45, 0x00, 0x46, 0x00, 0x47, 0x00, 0x48, 0x00,  // E.F.G.H.
106            /* 0090 */  0x49, 0x00, 0x4A, 0x00, 0x4B, 0x00, 0x4C, 0x00,  // I.J.K.L.
107            /* 0098 */  0x4D, 0x00, 0x4E, 0x00, 0x4F, 0x00, 0x50, 0x00,  // M.N.O.P.
108            /* 00A0 */  0x51, 0x00, 0x52, 0x00, 0x53, 0x00, 0x54, 0x00,  // Q.R.S.T.
109            /* 00A8 */  0x55, 0x00, 0x56, 0x00, 0x57, 0x00, 0x58, 0x00,  // U.V.W.X.
110            /* 00B0 */  0x59, 0x00, 0x5A, 0x00, 0x5B, 0x00, 0x5C, 0x00,  // Y.Z.[.\.
111            /* 00B8 */  0x5D, 0x00, 0x5E, 0x00, 0x5F, 0x00, 0x60, 0x00,  // ].^._.`.
112            /* 00C0 */  0x61, 0x00, 0x62, 0x00, 0x63, 0x00, 0x64, 0x00,  // a.b.c.d.
113            /* 00C8 */  0x65, 0x00, 0x66, 0x00, 0x67, 0x00, 0x68, 0x00,  // e.f.g.h.
114            /* 00D0 */  0x69, 0x00, 0x6A, 0x00, 0x6B, 0x00, 0x6C, 0x00,  // i.j.k.l.
115            /* 00D8 */  0x6D, 0x00, 0x6E, 0x00, 0x6F, 0x00, 0x70, 0x00,  // m.n.o.p.
116            /* 00E0 */  0x71, 0x00, 0x72, 0x00, 0x73, 0x00, 0x74, 0x00,  // q.r.s.t.
117            /* 00E8 */  0x75, 0x00, 0x76, 0x00, 0x77, 0x00, 0x78, 0x00,  // u.v.w.x.
118            /* 00F0 */  0x79, 0x00, 0x7A, 0x00, 0x7B, 0x00, 0x7C, 0x00,  // y.z.{.|.
119            /* 00F8 */  0x7D, 0x00, 0x7E, 0x00, 0x7F, 0x00, 0x00, 0x00   // }.~.....
120        },
121
122        Unicode ("!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !\"#$%&'()*")
123    })
124    /* Run-method */
125
126    Method (UNI0, 0, Serialized)
127    {
128        Debug = "TEST: UNI0, String To Unicode Conversion Macro"
129        M302 (__METHOD__, 0x04, "p358", P358, P359, 0x08)
130    }
131