Debian Codegraph @

tests/aslts/src/runtime/collections/bdemo/ACPICA/0259/DECL.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 * Bug 259:
30 *
31 * SUMMARY: _REG method execution during Load operator processing issue
32 */
33 Name (B259, Buffer (0xD1)
34 {
35 /* 0000 */ 0x53, 0x53, 0x44, 0x54, 0xD1, 0x00, 0x00, 0x00, // SSDT....
36 /* 0008 */ 0x02, 0xE1, 0x49, 0x6E, 0x74, 0x65, 0x6C, 0x00, // ..Intel.
37 /* 0010 */ 0x4D, 0x61, 0x6E, 0x79, 0x00, 0x00, 0x00, 0x00, // Many....
38 /* 0018 */ 0x01, 0x00, 0x00, 0x00, 0x49, 0x4E, 0x54, 0x4C, // ....INTL
39 /* 0020 */ 0x11, 0x10, 0x06, 0x20, 0x5B, 0x82, 0x4B, 0x0A, // ... [.K.
40 /* 0028 */ 0x41, 0x55, 0x58, 0x44, 0x5B, 0x80, 0x4F, 0x50, // AUXD[.OP
41 /* 0030 */ 0x52, 0x30, 0x80, 0x0A, 0x00, 0x0A, 0x04, 0x5B, // R0.....[
42 /* 0038 */ 0x81, 0x0B, 0x4F, 0x50, 0x52, 0x30, 0x03, 0x52, // ..OPR0.R
43 /* 0040 */ 0x46, 0x30, 0x30, 0x20, 0x08, 0x52, 0x45, 0x47, // F00 .REG
44 /* 0048 */ 0x43, 0xFF, 0x08, 0x52, 0x45, 0x47, 0x50, 0x0A, // C..REGP.
45 /* 0050 */ 0x00, 0x14, 0x33, 0x5F, 0x52, 0x45, 0x47, 0x02, // ..3_REG.
46 /* 0058 */ 0x70, 0x0D, 0x5C, 0x41, 0x55, 0x58, 0x44, 0x2E, // p.\AUXD.
47 /* 0060 */ 0x5F, 0x52, 0x45, 0x47, 0x3A, 0x00, 0x5B, 0x31, // _REG:.[1
48 /* 0068 */ 0x70, 0x68, 0x5B, 0x31, 0x70, 0x69, 0x5B, 0x31, // ph[1pi[1
49 /* 0070 */ 0xA0, 0x14, 0x93, 0x68, 0x0A, 0x80, 0x70, 0x52, // ...h..pR
50 /* 0078 */ 0x45, 0x47, 0x43, 0x52, 0x45, 0x47, 0x50, 0x70, // EGCREGPp
51 /* 0080 */ 0x69, 0x52, 0x45, 0x47, 0x43, 0x14, 0x4B, 0x04, // iREGC.K.
52 /* 0088 */ 0x41, 0x43, 0x43, 0x30, 0x00, 0x70, 0x0D, 0x5C, // ACC0.p.\
53 /* 0090 */ 0x41, 0x55, 0x58, 0x44, 0x2E, 0x41, 0x43, 0x43, // AUXD.ACC
54 /* 0098 */ 0x30, 0x3A, 0x00, 0x5B, 0x31, 0x70, 0x52, 0x46, // 0:.[1pRF
55 /* 00A0 */ 0x30, 0x30, 0x5B, 0x31, 0x70, 0x52, 0x45, 0x47, // 00[1pREG
56 /* 00A8 */ 0x50, 0x5B, 0x31, 0xA0, 0x25, 0x92, 0x93, 0x52, // P[1.%..R
57 /* 00B0 */ 0x45, 0x47, 0x43, 0x0A, 0x01, 0x70, 0x0D, 0x45, // EGC..p.E
58 /* 00B8 */ 0x72, 0x72, 0x6F, 0x72, 0x3A, 0x20, 0x52, 0x45, // rror: RE
59 /* 00C0 */ 0x47, 0x43, 0x20, 0x21, 0x3D, 0x20, 0x31, 0x00, // GC != 1.
60 /* 00C8 */ 0x5B, 0x31, 0x70, 0x52, 0x45, 0x47, 0x43, 0x5B, // [1pREGC[
61 /* 00D0 */ 0x31 // 1
62 })
63 Name (H259, 0x00)
64 OperationRegion (R259, SystemMemory, 0x00, 0xD1)
65 Field (R259, ByteAcc, NoLock, Preserve)
66 {
67 F259, 1672
68 }
69
70 Method (M17F, 0, NotSerialized)
71 {
72 External (\AUXD.REGC, UnknownObj)
73 F259 = B259 /* \B259 */
74 If (CondRefOf (\AUXD, Local0))
75 {
76 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01)
77 Return (Zero)
78 }
79
80 If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00))
81 {
82 Return (Zero)
83 }
84
85 Load (R259, H259) /* \H259 */
86 If (CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00))
87 {
88 Return (Zero)
89 }
90
91 If (CondRefOf (\AUXD, Local0)){}
92 Else
93 {
94 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x00)
95 Return (Zero)
96 }
97
98 Local1 = ObjectType (Local0)
99 If ((Local1 != 0x06))
100 {
101 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local1, 0x06)
102 Return (Zero)
103 }
104
105 Local0 = \AUXD.REGC /* External reference */
106 If ((Local0 != 0x01))
107 {
108 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x01)
109 Return (Zero)
110 }
111
112 Unload (H259)
113 If (CondRefOf (\AUXD, Local0))
114 {
115 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, "\\AUXD", 0x01)
116 }
117 }