| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
#include "acpi.h" |
| 45 |
#include "accommon.h" |
| 46 |
#include "acinterp.h" |
| 47 |
#include "amlcode.h" |
| 48 |
#include "acnamesp.h" |
| 49 |
#include "acdispat.h" |
| 50 |
|
| 51 |
|
| 52 |
#define _COMPONENT ACPI_EXECUTER |
| 53 |
ACPI_MODULE_NAME ("exprep") |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
static UINT32 |
| 58 |
AcpiExDecodeFieldAccess ( |
| 59 |
ACPI_OPERAND_OBJECT *ObjDesc, |
| 60 |
UINT8 FieldFlags, |
| 61 |
UINT32 *ReturnByteAlignment); |
| 62 |
|
| 63 |
|
| 64 |
#ifdef ACPI_UNDER_DEVELOPMENT |
| 65 |
|
| 66 |
static UINT32 |
| 67 |
AcpiExGenerateAccess ( |
| 68 |
UINT32 FieldBitOffset, |
| 69 |
UINT32 FieldBitLength, |
| 70 |
UINT32 RegionLength); |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
static UINT32 |
| 96 |
AcpiExGenerateAccess ( |
| 97 |
UINT32 FieldBitOffset, |
| 98 |
UINT32 FieldBitLength, |
| 99 |
UINT32 RegionLength) |
| 100 |
{ |
| 101 |
UINT32 FieldByteLength; |
| 102 |
UINT32 FieldByteOffset; |
| 103 |
UINT32 FieldByteEndOffset; |
| 104 |
UINT32 AccessByteWidth; |
| 105 |
UINT32 FieldStartOffset; |
| 106 |
UINT32 FieldEndOffset; |
| 107 |
UINT32 MinimumAccessWidth = 0xFFFFFFFF; |
| 108 |
UINT32 MinimumAccesses = 0xFFFFFFFF; |
| 109 |
UINT32 Accesses; |
| 110 |
|
| 111 |
|
| 112 |
ACPI_FUNCTION_TRACE (ExGenerateAccess); |
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
FieldByteOffset = ACPI_DIV_8 ( |
| 118 |
ACPI_ROUND_DOWN (FieldBitOffset, 8)); |
| 119 |
|
| 120 |
FieldByteEndOffset = ACPI_DIV_8 ( |
| 121 |
ACPI_ROUND_UP (FieldBitLength + FieldBitOffset, 8)); |
| 122 |
|
| 123 |
FieldByteLength = FieldByteEndOffset - FieldByteOffset; |
| 124 |
|
| 125 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 126 |
"Bit length %u, Bit offset %u\n", |
| 127 |
FieldBitLength, FieldBitOffset)); |
| 128 |
|
| 129 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 130 |
"Byte Length %u, Byte Offset %u, End Offset %u\n", |
| 131 |
FieldByteLength, FieldByteOffset, FieldByteEndOffset)); |
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
for (AccessByteWidth = 1; AccessByteWidth <= 8; AccessByteWidth <<= 1) |
| 140 |
{ |
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
if (ACPI_ROUND_UP (FieldByteEndOffset, AccessByteWidth) <= |
| 149 |
RegionLength) |
| 150 |
{ |
| 151 |
FieldStartOffset = |
| 152 |
ACPI_ROUND_DOWN (FieldByteOffset, AccessByteWidth) / |
| 153 |
AccessByteWidth; |
| 154 |
|
| 155 |
FieldEndOffset = |
| 156 |
ACPI_ROUND_UP ((FieldByteLength + FieldByteOffset), |
| 157 |
AccessByteWidth) / AccessByteWidth; |
| 158 |
|
| 159 |
Accesses = FieldEndOffset - FieldStartOffset; |
| 160 |
|
| 161 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 162 |
"AccessWidth %u end is within region\n", AccessByteWidth)); |
| 163 |
|
| 164 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 165 |
"Field Start %u, Field End %u -- requires %u accesses\n", |
| 166 |
FieldStartOffset, FieldEndOffset, Accesses)); |
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
if (Accesses <= 1) |
| 171 |
{ |
| 172 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 173 |
"Entire field can be accessed " |
| 174 |
"with one operation of size %u\n", |
| 175 |
AccessByteWidth)); |
| 176 |
return_VALUE (AccessByteWidth); |
| 177 |
} |
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
if (Accesses < MinimumAccesses) |
| 184 |
{ |
| 185 |
MinimumAccesses = Accesses; |
| 186 |
MinimumAccessWidth = AccessByteWidth; |
| 187 |
} |
| 188 |
} |
| 189 |
else |
| 190 |
{ |
| 191 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 192 |
"AccessWidth %u end is NOT within region\n", |
| 193 |
AccessByteWidth)); |
| 194 |
if (AccessByteWidth == 1) |
| 195 |
{ |
| 196 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 197 |
"Field goes beyond end-of-region!\n")); |
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
return_VALUE (0); |
| 202 |
} |
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 209 |
"Backing off to previous optimal access width of %u\n", |
| 210 |
MinimumAccessWidth)); |
| 211 |
return_VALUE (MinimumAccessWidth); |
| 212 |
} |
| 213 |
} |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 220 |
"Cannot access field in one operation, using width 8\n")); |
| 221 |
|
| 222 |
return_VALUE (8); |
| 223 |
} |
| 224 |
#endif |
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
static UINT32 |
| 243 |
AcpiExDecodeFieldAccess ( |
| 244 |
ACPI_OPERAND_OBJECT *ObjDesc, |
| 245 |
UINT8 FieldFlags, |
| 246 |
UINT32 *ReturnByteAlignment) |
| 247 |
{ |
| 248 |
UINT32 Access; |
| 249 |
UINT32 ByteAlignment; |
| 250 |
UINT32 BitLength; |
| 251 |
|
| 252 |
|
| 253 |
ACPI_FUNCTION_TRACE (ExDecodeFieldAccess); |
| 254 |
|
| 255 |
|
| 256 |
Access = (FieldFlags & AML_FIELD_ACCESS_TYPE_MASK); |
| 257 |
|
| 258 |
switch (Access) |
| 259 |
{ |
| 260 |
case AML_FIELD_ACCESS_ANY: |
| 261 |
|
| 262 |
#ifdef ACPI_UNDER_DEVELOPMENT |
| 263 |
ByteAlignment = |
| 264 |
AcpiExGenerateAccess (ObjDesc->CommonField.StartFieldBitOffset, |
| 265 |
ObjDesc->CommonField.BitLength, |
| 266 |
0xFFFFFFFF ); |
| 267 |
BitLength = ByteAlignment * 8; |
| 268 |
#endif |
| 269 |
|
| 270 |
ByteAlignment = 1; |
| 271 |
BitLength = 8; |
| 272 |
break; |
| 273 |
|
| 274 |
case AML_FIELD_ACCESS_BYTE: |
| 275 |
case AML_FIELD_ACCESS_BUFFER: |
| 276 |
|
| 277 |
ByteAlignment = 1; |
| 278 |
BitLength = 8; |
| 279 |
break; |
| 280 |
|
| 281 |
case AML_FIELD_ACCESS_WORD: |
| 282 |
|
| 283 |
ByteAlignment = 2; |
| 284 |
BitLength = 16; |
| 285 |
break; |
| 286 |
|
| 287 |
case AML_FIELD_ACCESS_DWORD: |
| 288 |
|
| 289 |
ByteAlignment = 4; |
| 290 |
BitLength = 32; |
| 291 |
break; |
| 292 |
|
| 293 |
case AML_FIELD_ACCESS_QWORD: |
| 294 |
|
| 295 |
ByteAlignment = 8; |
| 296 |
BitLength = 64; |
| 297 |
break; |
| 298 |
|
| 299 |
default: |
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
ACPI_ERROR ((AE_INFO, |
| 304 |
"Unknown field access type 0x%X", |
| 305 |
Access)); |
| 306 |
|
| 307 |
return_UINT32 (0); |
| 308 |
} |
| 309 |
|
| 310 |
if (ObjDesc->Common.Type == ACPI_TYPE_BUFFER_FIELD) |
| 311 |
{ |
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
ByteAlignment = 1; |
| 318 |
} |
| 319 |
|
| 320 |
*ReturnByteAlignment = ByteAlignment; |
| 321 |
return_UINT32 (BitLength); |
| 322 |
} |
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
ACPI_STATUS |
| 347 |
AcpiExPrepCommonFieldObject ( |
| 348 |
ACPI_OPERAND_OBJECT *ObjDesc, |
| 349 |
UINT8 FieldFlags, |
| 350 |
UINT8 FieldAttribute, |
| 351 |
UINT32 FieldBitPosition, |
| 352 |
UINT32 FieldBitLength) |
| 353 |
{ |
| 354 |
UINT32 AccessBitWidth; |
| 355 |
UINT32 ByteAlignment; |
| 356 |
UINT32 NearestByteAddress; |
| 357 |
|
| 358 |
|
| 359 |
ACPI_FUNCTION_TRACE (ExPrepCommonFieldObject); |
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
ObjDesc->CommonField.FieldFlags = FieldFlags; |
| 368 |
ObjDesc->CommonField.Attribute = FieldAttribute; |
| 369 |
ObjDesc->CommonField.BitLength = FieldBitLength; |
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
AccessBitWidth = AcpiExDecodeFieldAccess ( |
| 387 |
ObjDesc, FieldFlags, &ByteAlignment); |
| 388 |
if (!AccessBitWidth) |
| 389 |
{ |
| 390 |
return_ACPI_STATUS (AE_AML_OPERAND_VALUE); |
| 391 |
} |
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
ObjDesc->CommonField.AccessByteWidth = (UINT8) |
| 396 |
ACPI_DIV_8 (AccessBitWidth); |
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
NearestByteAddress = |
| 409 |
ACPI_ROUND_BITS_DOWN_TO_BYTES (FieldBitPosition); |
| 410 |
ObjDesc->CommonField.BaseByteOffset = (UINT32) |
| 411 |
ACPI_ROUND_DOWN (NearestByteAddress, ByteAlignment); |
| 412 |
|
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
ObjDesc->CommonField.StartFieldBitOffset = (UINT8) |
| 418 |
(FieldBitPosition - ACPI_MUL_8 (ObjDesc->CommonField.BaseByteOffset)); |
| 419 |
|
| 420 |
return_ACPI_STATUS (AE_OK); |
| 421 |
} |
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
|
| 435 |
|
| 436 |
|
| 437 |
ACPI_STATUS |
| 438 |
AcpiExPrepFieldValue ( |
| 439 |
ACPI_CREATE_FIELD_INFO *Info) |
| 440 |
{ |
| 441 |
ACPI_OPERAND_OBJECT *ObjDesc; |
| 442 |
ACPI_OPERAND_OBJECT *SecondDesc = NULL; |
| 443 |
ACPI_STATUS Status; |
| 444 |
UINT32 AccessByteWidth; |
| 445 |
UINT32 Type; |
| 446 |
|
| 447 |
|
| 448 |
ACPI_FUNCTION_TRACE (ExPrepFieldValue); |
| 449 |
|
| 450 |
|
| 451 |
|
| 452 |
|
| 453 |
if (Info->FieldType != ACPI_TYPE_LOCAL_INDEX_FIELD) |
| 454 |
{ |
| 455 |
if (!Info->RegionNode) |
| 456 |
{ |
| 457 |
ACPI_ERROR ((AE_INFO, "Null RegionNode")); |
| 458 |
return_ACPI_STATUS (AE_AML_NO_OPERAND); |
| 459 |
} |
| 460 |
|
| 461 |
Type = AcpiNsGetType (Info->RegionNode); |
| 462 |
if (Type != ACPI_TYPE_REGION) |
| 463 |
{ |
| 464 |
ACPI_ERROR ((AE_INFO, "Needed Region, found type 0x%X (%s)", |
| 465 |
Type, AcpiUtGetTypeName (Type))); |
| 466 |
|
| 467 |
return_ACPI_STATUS (AE_AML_OPERAND_TYPE); |
| 468 |
} |
| 469 |
} |
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
ObjDesc = AcpiUtCreateInternalObject (Info->FieldType); |
| 474 |
if (!ObjDesc) |
| 475 |
{ |
| 476 |
return_ACPI_STATUS (AE_NO_MEMORY); |
| 477 |
} |
| 478 |
|
| 479 |
|
| 480 |
|
| 481 |
ObjDesc->CommonField.Node = Info->FieldNode; |
| 482 |
Status = AcpiExPrepCommonFieldObject (ObjDesc, |
| 483 |
Info->FieldFlags, Info->Attribute, |
| 484 |
Info->FieldBitPosition, Info->FieldBitLength); |
| 485 |
if (ACPI_FAILURE (Status)) |
| 486 |
{ |
| 487 |
AcpiUtDeleteObjectDesc (ObjDesc); |
| 488 |
return_ACPI_STATUS (Status); |
| 489 |
} |
| 490 |
|
| 491 |
|
| 492 |
|
| 493 |
switch (Info->FieldType) |
| 494 |
{ |
| 495 |
case ACPI_TYPE_LOCAL_REGION_FIELD: |
| 496 |
|
| 497 |
ObjDesc->Field.RegionObj = AcpiNsGetAttachedObject (Info->RegionNode); |
| 498 |
|
| 499 |
|
| 500 |
|
| 501 |
ObjDesc->Field.AccessLength = Info->AccessLength; |
| 502 |
|
| 503 |
if (Info->ConnectionNode) |
| 504 |
{ |
| 505 |
SecondDesc = Info->ConnectionNode->Object; |
| 506 |
if (SecondDesc == NULL) |
| 507 |
{ |
| 508 |
break; |
| 509 |
} |
| 510 |
if (!(SecondDesc->Common.Flags & AOPOBJ_DATA_VALID)) |
| 511 |
{ |
| 512 |
Status = AcpiDsGetBufferArguments (SecondDesc); |
| 513 |
if (ACPI_FAILURE (Status)) |
| 514 |
{ |
| 515 |
AcpiUtDeleteObjectDesc (ObjDesc); |
| 516 |
return_ACPI_STATUS (Status); |
| 517 |
} |
| 518 |
} |
| 519 |
|
| 520 |
ObjDesc->Field.ResourceBuffer = |
| 521 |
SecondDesc->Buffer.Pointer; |
| 522 |
ObjDesc->Field.ResourceLength = |
| 523 |
(UINT16) SecondDesc->Buffer.Length; |
| 524 |
} |
| 525 |
else if (Info->ResourceBuffer) |
| 526 |
{ |
| 527 |
ObjDesc->Field.ResourceBuffer = Info->ResourceBuffer; |
| 528 |
ObjDesc->Field.ResourceLength = Info->ResourceLength; |
| 529 |
} |
| 530 |
|
| 531 |
ObjDesc->Field.PinNumberIndex = Info->PinNumberIndex; |
| 532 |
|
| 533 |
|
| 534 |
|
| 535 |
if ((ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_EC) && |
| 536 |
(ObjDesc->CommonField.BitLength > 8)) |
| 537 |
{ |
| 538 |
AccessByteWidth = ACPI_ROUND_BITS_UP_TO_BYTES ( |
| 539 |
ObjDesc->CommonField.BitLength); |
| 540 |
|
| 541 |
|
| 542 |
|
| 543 |
if (AccessByteWidth < 256) |
| 544 |
{ |
| 545 |
ObjDesc->CommonField.AccessByteWidth = |
| 546 |
(UINT8) AccessByteWidth; |
| 547 |
} |
| 548 |
} |
| 549 |
|
| 550 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 551 |
"RegionField: BitOff %X, Off %X, Gran %X, Region %p\n", |
| 552 |
ObjDesc->Field.StartFieldBitOffset, |
| 553 |
ObjDesc->Field.BaseByteOffset, |
| 554 |
ObjDesc->Field.AccessByteWidth, |
| 555 |
ObjDesc->Field.RegionObj)); |
| 556 |
break; |
| 557 |
|
| 558 |
case ACPI_TYPE_LOCAL_BANK_FIELD: |
| 559 |
|
| 560 |
ObjDesc->BankField.Value = Info->BankValue; |
| 561 |
ObjDesc->BankField.RegionObj = |
| 562 |
AcpiNsGetAttachedObject (Info->RegionNode); |
| 563 |
ObjDesc->BankField.BankObj = |
| 564 |
AcpiNsGetAttachedObject (Info->RegisterNode); |
| 565 |
|
| 566 |
|
| 567 |
|
| 568 |
AcpiUtAddReference (ObjDesc->BankField.RegionObj); |
| 569 |
AcpiUtAddReference (ObjDesc->BankField.BankObj); |
| 570 |
|
| 571 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 572 |
"Bank Field: BitOff %X, Off %X, Gran %X, Region %p, BankReg %p\n", |
| 573 |
ObjDesc->BankField.StartFieldBitOffset, |
| 574 |
ObjDesc->BankField.BaseByteOffset, |
| 575 |
ObjDesc->Field.AccessByteWidth, |
| 576 |
ObjDesc->BankField.RegionObj, |
| 577 |
ObjDesc->BankField.BankObj)); |
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
|
| 582 |
|
| 583 |
|
| 584 |
SecondDesc = ObjDesc->Common.NextObject; |
| 585 |
SecondDesc->Extra.AmlStart = ACPI_CAST_PTR (ACPI_PARSE_OBJECT, |
| 586 |
Info->DataRegisterNode)->Named.Data; |
| 587 |
SecondDesc->Extra.AmlLength = ACPI_CAST_PTR (ACPI_PARSE_OBJECT, |
| 588 |
Info->DataRegisterNode)->Named.Length; |
| 589 |
|
| 590 |
break; |
| 591 |
|
| 592 |
case ACPI_TYPE_LOCAL_INDEX_FIELD: |
| 593 |
|
| 594 |
|
| 595 |
|
| 596 |
ObjDesc->IndexField.IndexObj = |
| 597 |
AcpiNsGetAttachedObject (Info->RegisterNode); |
| 598 |
ObjDesc->IndexField.DataObj = |
| 599 |
AcpiNsGetAttachedObject (Info->DataRegisterNode); |
| 600 |
|
| 601 |
if (!ObjDesc->IndexField.DataObj || !ObjDesc->IndexField.IndexObj) |
| 602 |
{ |
| 603 |
ACPI_ERROR ((AE_INFO, "Null Index Object during field prep")); |
| 604 |
AcpiUtDeleteObjectDesc (ObjDesc); |
| 605 |
return_ACPI_STATUS (AE_AML_INTERNAL); |
| 606 |
} |
| 607 |
|
| 608 |
|
| 609 |
|
| 610 |
AcpiUtAddReference (ObjDesc->IndexField.DataObj); |
| 611 |
AcpiUtAddReference (ObjDesc->IndexField.IndexObj); |
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
|
| 618 |
|
| 619 |
|
| 620 |
|
| 621 |
|
| 622 |
|
| 623 |
|
| 624 |
|
| 625 |
|
| 626 |
|
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
ObjDesc->IndexField.Value = (UINT32) ACPI_ROUND_DOWN ( |
| 631 |
ACPI_DIV_8 (Info->FieldBitPosition), |
| 632 |
ObjDesc->IndexField.AccessByteWidth); |
| 633 |
|
| 634 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 635 |
"IndexField: BitOff %X, Off %X, Value %X, " |
| 636 |
"Gran %X, Index %p, Data %p\n", |
| 637 |
ObjDesc->IndexField.StartFieldBitOffset, |
| 638 |
ObjDesc->IndexField.BaseByteOffset, |
| 639 |
ObjDesc->IndexField.Value, |
| 640 |
ObjDesc->Field.AccessByteWidth, |
| 641 |
ObjDesc->IndexField.IndexObj, |
| 642 |
ObjDesc->IndexField.DataObj)); |
| 643 |
break; |
| 644 |
|
| 645 |
default: |
| 646 |
|
| 647 |
|
| 648 |
|
| 649 |
break; |
| 650 |
} |
| 651 |
|
| 652 |
|
| 653 |
|
| 654 |
|
| 655 |
|
| 656 |
Status = AcpiNsAttachObject ( |
| 657 |
Info->FieldNode, ObjDesc, AcpiNsGetType (Info->FieldNode)); |
| 658 |
|
| 659 |
ACPI_DEBUG_PRINT ((ACPI_DB_BFIELD, |
| 660 |
"Set NamedObj %p [%4.4s], ObjDesc %p\n", |
| 661 |
Info->FieldNode, AcpiUtGetNodeName (Info->FieldNode), ObjDesc)); |
| 662 |
|
| 663 |
|
| 664 |
|
| 665 |
AcpiUtRemoveReference (ObjDesc); |
| 666 |
return_ACPI_STATUS (Status); |
| 667 |
} |