| 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 |
/* |
| 30 |
* 1-level model: \\<Method> |
| 31 |
* |
| 32 |
* Data for DerefOf(<String>) are 0 levels up. |
| 33 |
* (data being referred are in the same Method which |
| 34 |
* initiates DerefOf(<String>)). |
| 35 |
* |
| 36 |
* DataLevel<number_of_levels_in_model><data_are_N_levels_up>.asl |
| 37 |
* |
| 38 |
* |
| 39 |
* 1. mfa0: |
| 40 |
* see mfa0 - after bug fix add checking of values of UnitFields not only type checks |
| 41 |
*/ |
| 42 |
|
| 43 |
|
| 44 |
/* |
| 45 |
* 0 - Check different ways to pass String |
| 46 |
*/ |
| 47 |
Method(mdac,, Serialized) |
| 48 |
{ |
| 49 |
Method(mm00) |
| 50 |
{ |
| 51 |
Return("b000") |
| 52 |
} |
| 53 |
|
| 54 |
Method(mm01, 1) |
| 55 |
{ |
| 56 |
Return(arg0) |
| 57 |
} |
| 58 |
|
| 59 |
Method(mm02, 1) |
| 60 |
{ |
| 61 |
Store(DerefOf(arg0), Local7) |
| 62 |
|
| 63 |
Return(Local7) |
| 64 |
} |
| 65 |
|
| 66 |
Name(b000, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 67 |
Name(bb00, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 68 |
Name(s000, "b000") |
| 69 |
Name(ss00, "b000") |
| 70 |
Name(i000, 0) |
| 71 |
|
| 72 |
Store("b000", Local0) |
| 73 |
CopyObject("b000", i000) |
| 74 |
Store(s000, Local7) |
| 75 |
|
| 76 |
// Checkings |
| 77 |
|
| 78 |
CH03("", 0, 0x000, __LINE__, 0) |
| 79 |
|
| 80 |
Store(DerefOf("b000"), Local1) |
| 81 |
mf88(Local1, c00b, bb00, 0x001, 0x002, 1) |
| 82 |
|
| 83 |
Store(DerefOf(Local0), Local1) |
| 84 |
mf88(Local1, c00b, bb00, 0x003, 0x004, 1) |
| 85 |
|
| 86 |
Store(DerefOf(Local7), Local1) |
| 87 |
mf88(Local1, c00b, bb00, 0x005, 0x006, 1) |
| 88 |
|
| 89 |
Store(DerefOf(s000), Local1) |
| 90 |
Store(DerefOf(s000), Local1) |
| 91 |
Store(DerefOf(s000), Local1) |
| 92 |
Store(DerefOf(s000), Local1) |
| 93 |
Store(DerefOf(s000), Local1) |
| 94 |
Store(DerefOf(s000), Local1) |
| 95 |
Store(DerefOf(s000), Local1) |
| 96 |
Store(DerefOf(s000), Local1) |
| 97 |
Store(DerefOf(s000), Local1) |
| 98 |
mf88(Local1, c00b, bb00, 0x007, 0x008, 1) |
| 99 |
|
| 100 |
Store(DerefOf(mm00()), Local1) |
| 101 |
mf88(Local1, c00b, bb00, 0x009, 0x00a, 1) |
| 102 |
|
| 103 |
Store(DerefOf(mm01(ss00)), Local1) |
| 104 |
mf88(Local1, c00b, bb00, 0x00b, 0x00c, 1) |
| 105 |
|
| 106 |
Store(DerefOf(ToString("b000")), Local1) |
| 107 |
mf88(Local1, c00b, bb00, 0x00d, 0x00e, 1) |
| 108 |
|
| 109 |
Store(DerefOf(Store("b000", Local6)), Local1) |
| 110 |
mf88(Local1, c00b, bb00, 0x00f, 0x010, 1) |
| 111 |
|
| 112 |
Store(DerefOf(i000), Local1) |
| 113 |
mf88(Local1, c00b, bb00, 0x011, 0x012, 1) |
| 114 |
|
| 115 |
Store(mm02("^b000"), Local1) |
| 116 |
mf88(Local1, c00b, bb00, 0x013, 0x014, 1) |
| 117 |
|
| 118 |
CH03("", 0, 0x015, __LINE__, 0) |
| 119 |
} |
| 120 |
|
| 121 |
/* |
| 122 |
* 1 - Check different ways to specify elements of NameSpace |
| 123 |
*/ |
| 124 |
Method(mf89,, Serialized) |
| 125 |
{ |
| 126 |
Name(i010, 0xaabc0123) |
| 127 |
Processor(pr01, 0, 0xFFFFFFFF, 0) |
| 128 |
{ |
| 129 |
Name(i000, 0xaabc0000) |
| 130 |
} |
| 131 |
Name(ii00, 0xaabc0123) |
| 132 |
|
| 133 |
Name(b001, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 134 |
Name(bb01, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 135 |
|
| 136 |
// Checkings |
| 137 |
|
| 138 |
Store(DerefOf("b001"), Local1) |
| 139 |
mf88(Local1, c00b, bb01, 0x000, 0x001, 1) |
| 140 |
|
| 141 |
Store(DerefOf("^mf89.b001"), Local1) |
| 142 |
if (FLG9) { |
| 143 |
mf88(Local1, c00b, bb01, 0x002, 0x003, 1) |
| 144 |
} else { |
| 145 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 146 |
} |
| 147 |
|
| 148 |
Store(DerefOf("^mf89.pr01.i000"), Local1) |
| 149 |
if (FLG9) { |
| 150 |
mf88(Local1, c009, 0xaabc0000, 0x005, 0x006, 1) |
| 151 |
} else { |
| 152 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 153 |
} |
| 154 |
|
| 155 |
Store(DerefOf("\\mf89.pr01.i000"), Local1) |
| 156 |
if (FLG9) { |
| 157 |
mf88(Local1, c009, 0xaabc0000, 0x008, 0x009, 1) |
| 158 |
} else { |
| 159 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_NOT_FOUND |
| 160 |
} |
| 161 |
|
| 162 |
Store(DerefOf("^mf89.i010"), Local1) |
| 163 |
if (FLG9) { |
| 164 |
mf88(Local1, c009, ii00, 0x00b, 0x00c, 1) |
| 165 |
} else { |
| 166 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) // AE_NOT_FOUND |
| 167 |
} |
| 168 |
|
| 169 |
CH03("", 0, 0x00e, __LINE__, 0) |
| 170 |
} |
| 171 |
|
| 172 |
/* |
| 173 |
* 2 - Check access to calculated type objects - DerefOf(<String>) |
| 174 |
*/ |
| 175 |
Method(mf8a,, Serialized) |
| 176 |
{ |
| 177 |
Name(b002, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 178 |
Name(bb02, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 179 |
Name(s002, "String") |
| 180 |
Name(ss02, "String") |
| 181 |
Name(i002, 0xabbc0000) |
| 182 |
Name(ii02, 0xabbc0000) |
| 183 |
Name(p002, Package() {1,2,3,4}) |
| 184 |
|
| 185 |
CH03("", 0, 0x01f, __LINE__, 0) |
| 186 |
|
| 187 |
// Checkings |
| 188 |
|
| 189 |
Store(DerefOf("b002"), Local1) |
| 190 |
mf88(Local1, c00b, bb02, 0x020, 0x021, 1) |
| 191 |
|
| 192 |
Store(DerefOf("s002"), Local1) |
| 193 |
mf88(Local1, c00a, ss02, 0x022, 0x023, 1) |
| 194 |
|
| 195 |
Store(DerefOf("i002"), Local1) |
| 196 |
mf88(Local1, c009, ii02, 0x024, 0x025, 1) |
| 197 |
|
| 198 |
Store(DerefOf("p002"), Local1) |
| 199 |
mf88(Local1, c00c, 0, 0x026, 0x027, 0) |
| 200 |
|
| 201 |
CH03("", 0, 0x028, __LINE__, 0) |
| 202 |
} |
| 203 |
|
| 204 |
/* |
| 205 |
* 3 - Check access to special type objects - DerefOf(<String>) |
| 206 |
*/ |
| 207 |
Method(mf8b,, Serialized) |
| 208 |
{ |
| 209 |
Event(e003) |
| 210 |
Mutex(mx03, 0) |
| 211 |
Device(d003) { Name(i900, 0xabcd0017) } |
| 212 |
ThermalZone(tz03) {} |
| 213 |
Processor(pr03, 0, 0xFFFFFFFF, 0) {} |
| 214 |
OperationRegion(r003, SystemMemory, 0x100, 0x100) |
| 215 |
PowerResource(pw03, 1, 0) {Method(mmmm){return (0)}} |
| 216 |
|
| 217 |
// Checkings |
| 218 |
|
| 219 |
CH03("", 0, 0x029, __LINE__, 0) |
| 220 |
CopyObject(DerefOf("e003"), Local1) |
| 221 |
mf88(Local1, c00f, 0, 0x02a, 0x02b, 0) |
| 222 |
|
| 223 |
CH03("", 0, 0x02c, __LINE__, 0) |
| 224 |
CopyObject(DerefOf("mx03"), Local1) |
| 225 |
mf88(Local1, c011, 0, 0x02d, 0x02e, 0) |
| 226 |
|
| 227 |
CH03("", 0, 0x02f, __LINE__, 0) |
| 228 |
CopyObject(DerefOf("d003"), Local1) |
| 229 |
mf88(Local1, c00e, 0, 0x030, 0x031, 0) |
| 230 |
|
| 231 |
CH03("", 0, 0x032, __LINE__, 0) |
| 232 |
CopyObject(DerefOf("tz03"), Local1) |
| 233 |
mf88(Local1, c015, 0, 0x033, 0x034, 0) |
| 234 |
|
| 235 |
CH03("", 0, 0x035, __LINE__, 0) |
| 236 |
CopyObject(DerefOf("pr03"), Local1) |
| 237 |
mf88(Local1, c014, 0, 0x036, 0x037, 0) |
| 238 |
|
| 239 |
if (y510) { |
| 240 |
CH03("", 0, 0x038, __LINE__, 0) |
| 241 |
CopyObject(DerefOf("r003"), Local1) |
| 242 |
mf88(Local1, c012, 0, 0x039, 0x03a, 0) |
| 243 |
} |
| 244 |
|
| 245 |
CH03("", 0, 0x03b, __LINE__, 0) |
| 246 |
CopyObject(DerefOf("pw03"), Local1) |
| 247 |
mf88(Local1, c013, 0, 0x03c, 0x03d, 0) |
| 248 |
} |
| 249 |
|
| 250 |
/* |
| 251 |
* 4 - Check DerefOf(<Not-String>) - calculated type objects |
| 252 |
*/ |
| 253 |
Method(mf8c,, Serialized) |
| 254 |
{ |
| 255 |
Name(b004, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 256 |
Name(i004, 0xabbc0000) |
| 257 |
Name(p004, Package() {1,2,3,4}) |
| 258 |
|
| 259 |
// Checkings |
| 260 |
|
| 261 |
CH03("", 0, 0x03e, __LINE__, 0) |
| 262 |
Store(DerefOf(b004), Local1) |
| 263 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 264 |
|
| 265 |
CH03("", 0, 0x040, __LINE__, 0) |
| 266 |
Store(DerefOf(i004), Local1) |
| 267 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 268 |
|
| 269 |
CH03("", 0, 0x042, __LINE__, 0) |
| 270 |
Store(DerefOf(p004), Local1) |
| 271 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 272 |
} |
| 273 |
|
| 274 |
/* |
| 275 |
* 5 - Check DerefOf(<String>) - but String doesn't refer NameSpace object |
| 276 |
*/ |
| 277 |
Method(mf8d) |
| 278 |
{ |
| 279 |
CH03("", 0, 0x044, __LINE__, 0) |
| 280 |
Store(DerefOf("0123"), Local1) |
| 281 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 282 |
|
| 283 |
CH03("", 0, 0x046, __LINE__, 0) |
| 284 |
Store(DerefOf("zxcvbnm,./;'\][0123"), Local1) |
| 285 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 286 |
|
| 287 |
CH03("", 0, 0x048, __LINE__, 0) |
| 288 |
Store(DerefOf("b0qv"), Local1) |
| 289 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 290 |
} |
| 291 |
|
| 292 |
/* |
| 293 |
* 6 - Check different ways to pass String (mdac |
| 294 |
* but without Store). Check - no exceptions. |
| 295 |
*/ |
| 296 |
Method(mf8e,, Serialized) |
| 297 |
{ |
| 298 |
Method(mm60) |
| 299 |
{ |
| 300 |
Return("b006") |
| 301 |
} |
| 302 |
|
| 303 |
Method(mm61, 1) |
| 304 |
{ |
| 305 |
Return(arg0) |
| 306 |
} |
| 307 |
|
| 308 |
Name(b006, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 309 |
Name(bb06, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 310 |
Name(s006, "b006") |
| 311 |
Name(ss06, "b006") |
| 312 |
Name(i006, 0) |
| 313 |
|
| 314 |
|
| 315 |
Store("b006", Local0) |
| 316 |
CopyObject("b006", i006) |
| 317 |
Store(s006, Local7) |
| 318 |
|
| 319 |
// Checkings |
| 320 |
|
| 321 |
CH03("", 0, 0x04a, __LINE__, 0) |
| 322 |
|
| 323 |
Store(DerefOf("b006"), Local2) |
| 324 |
|
| 325 |
Store(DerefOf(Local0), Local2) |
| 326 |
|
| 327 |
Store(DerefOf(Local7), Local2) |
| 328 |
|
| 329 |
Store(DerefOf(s006), Local2) |
| 330 |
Store(DerefOf(s006), Local2) |
| 331 |
Store(DerefOf(s006), Local2) |
| 332 |
Store(DerefOf(s006), Local2) |
| 333 |
Store(DerefOf(s006), Local2) |
| 334 |
Store(DerefOf(s006), Local2) |
| 335 |
Store(DerefOf(s006), Local2) |
| 336 |
Store(DerefOf(s006), Local2) |
| 337 |
Store(DerefOf(s006), Local2) |
| 338 |
|
| 339 |
Store(DerefOf(mm60()), Local2) |
| 340 |
|
| 341 |
Store(DerefOf(mm61(ss06)), Local2) |
| 342 |
|
| 343 |
Store(DerefOf(ToString("b006")), Local2) |
| 344 |
|
| 345 |
Store(DerefOf(Store("b006", Local6)), Local2) |
| 346 |
|
| 347 |
Store(DerefOf(i006), Local2) |
| 348 |
|
| 349 |
CH03("", 0, 0x04b, __LINE__, 0) |
| 350 |
} |
| 351 |
|
| 352 |
/* |
| 353 |
* 7 - Check access to special type objects - DerefOf(<String>) |
| 354 |
*/ |
| 355 |
Method(mf8f,, Serialized) |
| 356 |
{ |
| 357 |
Event(e007) |
| 358 |
Mutex(mx07, 0) |
| 359 |
Device(d007) { Name(i900, 0xabcd0017) } |
| 360 |
ThermalZone(tz07) {} |
| 361 |
Processor(pr07, 0, 0xFFFFFFFF, 0) {} |
| 362 |
OperationRegion(r007, SystemMemory, 0x100, 0x100) |
| 363 |
PowerResource(pw07, 1, 0) {Method(mmmm){return (0)}} |
| 364 |
|
| 365 |
// Checkings |
| 366 |
|
| 367 |
CH03("", 0, 0x04c, __LINE__, 0) |
| 368 |
Store(DerefOf("e007"), Local2) |
| 369 |
if(LNot(SLCK)){ |
| 370 |
CH04("", 0, 47, 0, __LINE__, 0, 0) |
| 371 |
} |
| 372 |
|
| 373 |
CH03("", 0, 0x04e, __LINE__, 0) |
| 374 |
Store(DerefOf("mx07"), Local2) |
| 375 |
if(LNot(SLCK)){ |
| 376 |
CH04("", 0, 47, 0, __LINE__, 0, 0) |
| 377 |
} |
| 378 |
|
| 379 |
CH03("", 0, 0x050, __LINE__, 0) |
| 380 |
Store(DerefOf("d007"), Local2) |
| 381 |
if(LNot(SLCK)){ |
| 382 |
CH04("", 0, 47, 0, __LINE__, 0, 0) |
| 383 |
} |
| 384 |
|
| 385 |
CH03("", 0, 0x052, __LINE__, 0) |
| 386 |
Store(DerefOf("tz07"), Local2) |
| 387 |
if(LNot(SLCK)){ |
| 388 |
CH04("", 0, 47, 0, __LINE__, 0, 0) |
| 389 |
} |
| 390 |
|
| 391 |
CH03("", 0, 0x054, __LINE__, 0) |
| 392 |
Store(DerefOf("pr07"), Local2) |
| 393 |
if(LNot(SLCK)){ |
| 394 |
CH04("", 0, 47, 0, __LINE__, 0, 0) |
| 395 |
} |
| 396 |
|
| 397 |
CH03("", 0, 0x056, __LINE__, 0) |
| 398 |
Store(DerefOf("r007"), Local2) |
| 399 |
if(LNot(SLCK)){ |
| 400 |
CH04("", 0, 47, 0, __LINE__, 0, 0) |
| 401 |
} |
| 402 |
|
| 403 |
CH03("", 0, 0x058, __LINE__, 0) |
| 404 |
Store(DerefOf("pw07"), Local2) |
| 405 |
if(LNot(SLCK)){ |
| 406 |
CH04("", 0, 47, 0, __LINE__, 0, 0) |
| 407 |
} |
| 408 |
} |
| 409 |
|
| 410 |
/* |
| 411 |
* 8 - Check DerefOf(<Not-String>) - calculated type objects |
| 412 |
*/ |
| 413 |
Method(mf90,, Serialized) |
| 414 |
{ |
| 415 |
Name(b008, Buffer(){ 1, 2, 3, 4, 0x95, 6, 7, 8}) |
| 416 |
Name(i008, 0xabbc0000) |
| 417 |
Name(p008, Package() {1,2,3,4}) |
| 418 |
|
| 419 |
// Checkings |
| 420 |
|
| 421 |
CH03("", 0, 0x05a, __LINE__, 0) |
| 422 |
Store(DerefOf(b008), Local2) |
| 423 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 424 |
|
| 425 |
CH03("", 0, 0x05c, __LINE__, 0) |
| 426 |
Store(DerefOf(i008), Local2) |
| 427 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 428 |
|
| 429 |
CH03("", 0, 0x05e, __LINE__, 0) |
| 430 |
Store(DerefOf(p008), Local2) |
| 431 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 432 |
} |
| 433 |
|
| 434 |
/* |
| 435 |
* 9 - Check DerefOf(<String>) - but String doesn't refer NameSpace object |
| 436 |
*/ |
| 437 |
Method(mf91) |
| 438 |
{ |
| 439 |
CH03("", 0, 0x060, __LINE__, 0) |
| 440 |
Store(DerefOf("0123"), Local2) |
| 441 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 442 |
|
| 443 |
CH03("", 0, 0x062, __LINE__, 0) |
| 444 |
Store(DerefOf("zxcvbnm,./;'\][0123"), Local2) |
| 445 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 446 |
|
| 447 |
CH03("", 0, 0x064, __LINE__, 0) |
| 448 |
Store(DerefOf("mf_d"), Local2) |
| 449 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 450 |
|
| 451 |
CH03("", 0, 0x066, __LINE__, 0) |
| 452 |
Store(DerefOf("b009"), Local2) |
| 453 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 454 |
} |
| 455 |
|
| 456 |
/* |
| 457 |
* a - Check access to special type objects - DerefOf(<String>) |
| 458 |
*/ |
| 459 |
Method(mfa0,, Serialized) |
| 460 |
{ |
| 461 |
Name(b00a, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) |
| 462 |
OperationRegion(r00a, SystemMemory, 0x100, 0x100) |
| 463 |
|
| 464 |
CreateField(b00a, 8, 8, bfa0) |
| 465 |
Field(r00a, ByteAcc, NoLock, Preserve) {f0a0,8,f0a1,8,f0a2,8,f0a3,8} |
| 466 |
BankField(r00a, f0a1, 0, ByteAcc, NoLock, Preserve) {bna0,4} |
| 467 |
IndexField(f0a2, f0a3, ByteAcc, NoLock, Preserve) {ifa0,8,ifa1,8} |
| 468 |
|
| 469 |
CH03("", 0, 0x068, __LINE__, 0) |
| 470 |
|
| 471 |
Store(DerefOf("bfa0"), Local1) |
| 472 |
mf88(Local1, c009, 0xb1, 0x069, 0x06a, 1) |
| 473 |
|
| 474 |
Store(DerefOf("f0a0"), Local1) |
| 475 |
mf88(Local1, c009, 0, 0x06b, 0x06c, 0) |
| 476 |
|
| 477 |
Store(DerefOf("f0a1"), Local1) |
| 478 |
mf88(Local1, c009, 0, 0x06d, 0x06e, 0) |
| 479 |
|
| 480 |
Store(DerefOf("f0a2"), Local1) |
| 481 |
mf88(Local1, c009, 0, 0x06f, 0x070, 0) |
| 482 |
|
| 483 |
Store(DerefOf("f0a3"), Local1) |
| 484 |
mf88(Local1, c009, 0, 0x071, 0x072, 0) |
| 485 |
|
| 486 |
Store(DerefOf("bna0"), Local1) |
| 487 |
mf88(Local1, c009, 0, 0x073, 0x074, 0) |
| 488 |
|
| 489 |
Store(DerefOf("ifa0"), Local1) |
| 490 |
mf88(Local1, c009, 0, 0x075, 0x076, 0) |
| 491 |
|
| 492 |
Store(DerefOf("ifa1"), Local1) |
| 493 |
mf88(Local1, c009, 0, 0x077, 0x078, 0) |
| 494 |
|
| 495 |
CH03("", 0, 0x079, __LINE__, 0) |
| 496 |
} |
| 497 |
|
| 498 |
// b |
| 499 |
Method(mfa1,, Serialized) |
| 500 |
{ |
| 501 |
Name(b00b, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4}) |
| 502 |
OperationRegion(r00b, SystemMemory, 0x100, 0x100) |
| 503 |
|
| 504 |
CreateField(b00b, 8, 8, bfb0) |
| 505 |
Field(r00b, ByteAcc, NoLock, Preserve) {f0b0,8,f0b1,8,f0b2,8,f0b3,8} |
| 506 |
BankField(r00b, f0b1, 0, ByteAcc, NoLock, Preserve) {bnb0,4} |
| 507 |
IndexField(f0b2, f0b3, ByteAcc, NoLock, Preserve) {ifb0,8,ifb1,8} |
| 508 |
|
| 509 |
CH03("", 0, 0x07a, __LINE__, 0) |
| 510 |
Store(DerefOf(bfb0), Local1) |
| 511 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 512 |
|
| 513 |
CH03("", 0, 0x07c, __LINE__, 0) |
| 514 |
Store(DerefOf(f0b0), Local1) |
| 515 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 516 |
|
| 517 |
CH03("", 0, 0x07e, __LINE__, 0) |
| 518 |
Store(DerefOf(f0b1), Local1) |
| 519 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 520 |
|
| 521 |
CH03("", 0, 0x080, __LINE__, 0) |
| 522 |
Store(DerefOf(f0b2), Local1) |
| 523 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 524 |
|
| 525 |
CH03("", 0, 0x082, __LINE__, 0) |
| 526 |
Store(DerefOf(f0b3), Local1) |
| 527 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 528 |
|
| 529 |
CH03("", 0, 0x084, __LINE__, 0) |
| 530 |
Store(DerefOf(bnb0), Local1) |
| 531 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 532 |
|
| 533 |
CH03("", 0, 0x086, __LINE__, 0) |
| 534 |
Store(DerefOf(ifb0), Local1) |
| 535 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 536 |
|
| 537 |
CH03("", 0, 0x088, __LINE__, 0) |
| 538 |
Store(DerefOf(ifb1), Local1) |
| 539 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 540 |
} |
| 541 |
|
| 542 |
// c |
| 543 |
Method(mfa2,, Serialized) |
| 544 |
{ |
| 545 |
Event(e00c) |
| 546 |
Mutex(mx0c, 0) |
| 547 |
Device(d00c) { Name(i900, 0xabcd0017) } |
| 548 |
ThermalZone(tz0c) {} |
| 549 |
Processor(pr0c, 0, 0xFFFFFFFF, 0) {} |
| 550 |
OperationRegion(r00c, SystemMemory, 0x100, 0x100) |
| 551 |
PowerResource(pw0c, 1, 0) {Method(mmmm){return (0)}} |
| 552 |
|
| 553 |
// Checkings |
| 554 |
|
| 555 |
CH03("", 0, 0x08a, __LINE__, 0) |
| 556 |
Store(DerefOf(e00c), Local2) |
| 557 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 558 |
|
| 559 |
CH03("", 0, 0x08c, __LINE__, 0) |
| 560 |
Store(DerefOf(mx0c), Local2) |
| 561 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 562 |
|
| 563 |
CH03("", 0, 0x08e, __LINE__, 0) |
| 564 |
Store(DerefOf(d00c), Local2) |
| 565 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 566 |
|
| 567 |
CH03("", 0, 0x090, __LINE__, 0) |
| 568 |
Store(DerefOf(tz0c), Local2) |
| 569 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 570 |
|
| 571 |
CH03("", 0, 0x092, __LINE__, 0) |
| 572 |
Store(DerefOf(pr0c), Local2) |
| 573 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 574 |
|
| 575 |
CH03("", 0, 0x094, __LINE__, 0) |
| 576 |
Store(DerefOf(r00c), Local2) |
| 577 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 578 |
|
| 579 |
CH03("", 0, 0x096, __LINE__, 0) |
| 580 |
Store(DerefOf(pw0c), Local2) |
| 581 |
CH04("", 0, 0xff, 0, __LINE__, 0, 0) |
| 582 |
} |
| 583 |
|
| 584 |
Method(m12a) |
| 585 |
{ |
| 586 |
SRMT("mdac-10") |
| 587 |
mdac() |
| 588 |
SRMT("mf89-10") |
| 589 |
mf89() |
| 590 |
SRMT("mf8a-10") |
| 591 |
mf8a() |
| 592 |
SRMT("mf8b-10") |
| 593 |
mf8b() |
| 594 |
SRMT("mf8c-10") |
| 595 |
mf8c() |
| 596 |
SRMT("mf8d-10") |
| 597 |
mf8d() |
| 598 |
SRMT("mf8e-10") |
| 599 |
mf8e() |
| 600 |
SRMT("mf8f-10") |
| 601 |
mf8f() |
| 602 |
SRMT("mf90-10") |
| 603 |
mf90() |
| 604 |
SRMT("mf91-10") |
| 605 |
mf91() |
| 606 |
SRMT("mfa0-10") |
| 607 |
mfa0() |
| 608 |
SRMT("mfa1-10") |
| 609 |
mfa1() |
| 610 |
SRMT("mfa2-10") |
| 611 |
mfa2() |
| 612 |
} |