| 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 0084: |
| 30 |
* |
| 31 |
* SUMMARY: Failed to interpret AML code alternated with Method declarations |
| 32 |
*/ |
| 33 |
Method (ME35, 1, NotSerialized) |
| 34 |
{ |
| 35 |
Method (M001, 0, NotSerialized) |
| 36 |
{ |
| 37 |
Return (0x00) |
| 38 |
} |
| 39 |
|
| 40 |
Debug = "Before m001 run" |
| 41 |
If (Arg0) |
| 42 |
{ |
| 43 |
Debug = "m001 started" |
| 44 |
M001 () |
| 45 |
Debug = "m001 finished" |
| 46 |
} |
| 47 |
|
| 48 |
Debug = "After m001 run" |
| 49 |
Method (M002, 0, NotSerialized) |
| 50 |
{ |
| 51 |
Return (0x00) |
| 52 |
} |
| 53 |
|
| 54 |
Method (M003, 0, NotSerialized) |
| 55 |
{ |
| 56 |
Return (0x00) |
| 57 |
} |
| 58 |
|
| 59 |
Debug = "Before return from me35" |
| 60 |
Return (0x00) |
| 61 |
} |
| 62 |
|
| 63 |
Method (ME36, 0, NotSerialized) |
| 64 |
{ |
| 65 |
Debug = "Before me35(0) run" |
| 66 |
ME35 (0x00) |
| 67 |
Debug = "After me35(0) completion" |
| 68 |
Debug = "Before me35(1) run" |
| 69 |
ME35 (0x01) |
| 70 |
Debug = "After me35(1) completion" |
| 71 |
} |
| 72 |
|
| 73 |
Method (M803, 0, Serialized) |
| 74 |
{ |
| 75 |
Name (I000, 0xABCD0000) |
| 76 |
Method (M000, 0, NotSerialized) |
| 77 |
{ |
| 78 |
If ((I000 != 0xABCD0000)) |
| 79 |
{ |
| 80 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0000) |
| 81 |
} |
| 82 |
|
| 83 |
I000 = 0xABCD0001 |
| 84 |
Return (0xABCD0002) |
| 85 |
} |
| 86 |
|
| 87 |
M000 () |
| 88 |
Method (M001, 0, NotSerialized) |
| 89 |
{ |
| 90 |
If ((I000 != 0xABCD0001)) |
| 91 |
{ |
| 92 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0001) |
| 93 |
} |
| 94 |
|
| 95 |
I000 = 0xABCD0003 |
| 96 |
Return (0xABCD0004) |
| 97 |
} |
| 98 |
|
| 99 |
M001 () |
| 100 |
Method (M002, 0, NotSerialized) |
| 101 |
{ |
| 102 |
If ((I000 != 0xABCD0003)) |
| 103 |
{ |
| 104 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0003) |
| 105 |
} |
| 106 |
|
| 107 |
I000 = 0xABCD0005 |
| 108 |
Return (0xABCD0006) |
| 109 |
} |
| 110 |
|
| 111 |
M002 () |
| 112 |
Method (M003, 0, NotSerialized) |
| 113 |
{ |
| 114 |
If ((I000 != 0xABCD0005)) |
| 115 |
{ |
| 116 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0005) |
| 117 |
} |
| 118 |
|
| 119 |
I000 = 0xABCD0007 |
| 120 |
Return (0xABCD0008) |
| 121 |
} |
| 122 |
|
| 123 |
M003 () |
| 124 |
} |
| 125 |
|
| 126 |
Method (M804, 0, Serialized) |
| 127 |
{ |
| 128 |
Name (I000, 0xABCD0000) |
| 129 |
Method (M000, 0, NotSerialized) |
| 130 |
{ |
| 131 |
Method (M000, 0, NotSerialized) |
| 132 |
{ |
| 133 |
If ((I000 != 0xABCD0000)) |
| 134 |
{ |
| 135 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0000) |
| 136 |
} |
| 137 |
|
| 138 |
I000 = 0xABCD0001 |
| 139 |
Return (0xABCD0002) |
| 140 |
} |
| 141 |
|
| 142 |
M000 () |
| 143 |
Method (M001, 0, NotSerialized) |
| 144 |
{ |
| 145 |
If ((I000 != 0xABCD0001)) |
| 146 |
{ |
| 147 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0001) |
| 148 |
} |
| 149 |
|
| 150 |
I000 = 0xABCD0003 |
| 151 |
Return (0xABCD0004) |
| 152 |
} |
| 153 |
|
| 154 |
M001 () |
| 155 |
Method (M002, 0, NotSerialized) |
| 156 |
{ |
| 157 |
If ((I000 != 0xABCD0003)) |
| 158 |
{ |
| 159 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0003) |
| 160 |
} |
| 161 |
|
| 162 |
I000 = 0xABCD0005 |
| 163 |
Return (0xABCD0006) |
| 164 |
} |
| 165 |
|
| 166 |
M002 () |
| 167 |
Method (M003, 0, NotSerialized) |
| 168 |
{ |
| 169 |
If ((I000 != 0xABCD0005)) |
| 170 |
{ |
| 171 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0005) |
| 172 |
} |
| 173 |
|
| 174 |
I000 = 0xABCD0007 |
| 175 |
Return (0xABCD0008) |
| 176 |
} |
| 177 |
|
| 178 |
M003 () |
| 179 |
} |
| 180 |
|
| 181 |
M000 () |
| 182 |
Method (M001, 0, NotSerialized) |
| 183 |
{ |
| 184 |
Method (M000, 0, NotSerialized) |
| 185 |
{ |
| 186 |
If ((I000 != 0xABCD0007)) |
| 187 |
{ |
| 188 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0007) |
| 189 |
} |
| 190 |
|
| 191 |
I000 = 0xABCD0008 |
| 192 |
Return (0xABCD0009) |
| 193 |
} |
| 194 |
|
| 195 |
M000 () |
| 196 |
Method (M001, 0, NotSerialized) |
| 197 |
{ |
| 198 |
If ((I000 != 0xABCD0008)) |
| 199 |
{ |
| 200 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0008) |
| 201 |
} |
| 202 |
|
| 203 |
I000 = 0xABCD000A |
| 204 |
Return (0xABCD000B) |
| 205 |
} |
| 206 |
|
| 207 |
M001 () |
| 208 |
Method (M002, 0, NotSerialized) |
| 209 |
{ |
| 210 |
If ((I000 != 0xABCD000A)) |
| 211 |
{ |
| 212 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD000A) |
| 213 |
} |
| 214 |
|
| 215 |
I000 = 0xABCD000C |
| 216 |
Return (0xABCD000D) |
| 217 |
} |
| 218 |
|
| 219 |
M002 () |
| 220 |
Method (M003, 0, NotSerialized) |
| 221 |
{ |
| 222 |
If ((I000 != 0xABCD000C)) |
| 223 |
{ |
| 224 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD000C) |
| 225 |
} |
| 226 |
|
| 227 |
I000 = 0xABCD000E |
| 228 |
Return (0xABCD000F) |
| 229 |
} |
| 230 |
|
| 231 |
M003 () |
| 232 |
} |
| 233 |
|
| 234 |
M001 () |
| 235 |
Method (M002, 0, NotSerialized) |
| 236 |
{ |
| 237 |
Method (M000, 0, NotSerialized) |
| 238 |
{ |
| 239 |
If ((I000 != 0xABCD000E)) |
| 240 |
{ |
| 241 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD000E) |
| 242 |
} |
| 243 |
|
| 244 |
I000 = 0xABCD0010 |
| 245 |
Return (0xABCD0011) |
| 246 |
} |
| 247 |
|
| 248 |
M000 () |
| 249 |
Method (M001, 0, NotSerialized) |
| 250 |
{ |
| 251 |
If ((I000 != 0xABCD0010)) |
| 252 |
{ |
| 253 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0010) |
| 254 |
} |
| 255 |
|
| 256 |
I000 = 0xABCD0012 |
| 257 |
Return (0xABCD0013) |
| 258 |
} |
| 259 |
|
| 260 |
M001 () |
| 261 |
Method (M002, 0, NotSerialized) |
| 262 |
{ |
| 263 |
If ((I000 != 0xABCD0012)) |
| 264 |
{ |
| 265 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0012) |
| 266 |
} |
| 267 |
|
| 268 |
I000 = 0xABCD0014 |
| 269 |
Return (0xABCD0015) |
| 270 |
} |
| 271 |
|
| 272 |
M002 () |
| 273 |
Method (M003, 0, NotSerialized) |
| 274 |
{ |
| 275 |
If ((I000 != 0xABCD0014)) |
| 276 |
{ |
| 277 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0014) |
| 278 |
} |
| 279 |
|
| 280 |
I000 = 0xABCD0016 |
| 281 |
Return (0xABCD0017) |
| 282 |
} |
| 283 |
|
| 284 |
M003 () |
| 285 |
} |
| 286 |
|
| 287 |
M002 () |
| 288 |
If ((I000 != 0xABCD0016)) |
| 289 |
{ |
| 290 |
ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0xABCD0016) |
| 291 |
} |
| 292 |
} |