| 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 "aecommon.h" |
| 45 |
|
| 46 |
#define _COMPONENT ACPI_TOOLS |
| 47 |
ACPI_MODULE_NAME ("aeregion") |
| 48 |
|
| 49 |
|
| 50 |
static AE_DEBUG_REGIONS AeRegions; |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
ACPI_STATUS |
| 67 |
AeRegionHandler ( |
| 68 |
UINT32 Function, |
| 69 |
ACPI_PHYSICAL_ADDRESS Address, |
| 70 |
UINT32 BitWidth, |
| 71 |
UINT64 *Value, |
| 72 |
void *HandlerContext, |
| 73 |
void *RegionContext) |
| 74 |
{ |
| 75 |
|
| 76 |
ACPI_OPERAND_OBJECT *RegionObject = ACPI_CAST_PTR (ACPI_OPERAND_OBJECT, RegionContext); |
| 77 |
UINT8 *Buffer = ACPI_CAST_PTR (UINT8, Value); |
| 78 |
UINT8 *OldBuffer; |
| 79 |
UINT8 *NewBuffer; |
| 80 |
ACPI_PHYSICAL_ADDRESS BaseAddress; |
| 81 |
ACPI_PHYSICAL_ADDRESS BaseAddressEnd; |
| 82 |
ACPI_PHYSICAL_ADDRESS RegionAddress; |
| 83 |
ACPI_PHYSICAL_ADDRESS RegionAddressEnd; |
| 84 |
UINT32 Length; |
| 85 |
UINT8 DataLength; |
| 86 |
UINT8 *DataBuffer; |
| 87 |
BOOLEAN BufferExists; |
| 88 |
BOOLEAN BufferResize; |
| 89 |
AE_REGION *RegionElement; |
| 90 |
void *BufferValue; |
| 91 |
ACPI_STATUS Status; |
| 92 |
UINT32 ByteWidth; |
| 93 |
UINT32 RegionLength; |
| 94 |
UINT32 i; |
| 95 |
UINT8 SpaceId; |
| 96 |
ACPI_CONNECTION_INFO *MyContext; |
| 97 |
UINT32 Value1; |
| 98 |
UINT32 Value2; |
| 99 |
ACPI_RESOURCE *Resource; |
| 100 |
char Uuid[ACPI_PRM_INPUT_BUFFER_SIZE + 1]; |
| 101 |
|
| 102 |
|
| 103 |
ACPI_FUNCTION_NAME (AeRegionHandler); |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
if (RegionObject->Region.Type != ACPI_TYPE_REGION) |
| 109 |
{ |
| 110 |
return (AE_OK); |
| 111 |
} |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
if (HandlerContext != &AeMyContext) |
| 116 |
{ |
| 117 |
AcpiOsPrintf ( |
| 118 |
"Region handler received incorrect context %p, should be %p\n", |
| 119 |
HandlerContext, &AeMyContext); |
| 120 |
} |
| 121 |
|
| 122 |
MyContext = ACPI_CAST_PTR (ACPI_CONNECTION_INFO, HandlerContext); |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
BaseAddress = RegionObject->Region.Address; |
| 129 |
Length = RegionObject->Region.Length; |
| 130 |
SpaceId = RegionObject->Region.SpaceId; |
| 131 |
|
| 132 |
ACPI_DEBUG_PRINT ((ACPI_DB_OPREGION, |
| 133 |
"Operation Region request on %s at 0x%X, BitWidth 0x%X, RegionLength 0x%X\n", |
| 134 |
AcpiUtGetRegionName (RegionObject->Region.SpaceId), |
| 135 |
(UINT32) Address, BitWidth, (UINT32) Length)); |
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
if (AcpiGbl_DbOpt_NoRegionSupport) |
| 143 |
{ |
| 144 |
BufferValue = ACPI_TO_POINTER (Address); |
| 145 |
ByteWidth = (BitWidth / 8); |
| 146 |
|
| 147 |
if (BitWidth % 8) |
| 148 |
{ |
| 149 |
ByteWidth += 1; |
| 150 |
} |
| 151 |
goto DoFunction; |
| 152 |
} |
| 153 |
|
| 154 |
switch (SpaceId) |
| 155 |
{ |
| 156 |
case ACPI_ADR_SPACE_SYSTEM_IO: |
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
switch (Function & ACPI_IO_MASK) |
| 162 |
{ |
| 163 |
case ACPI_READ: |
| 164 |
|
| 165 |
if (BitWidth == 64) |
| 166 |
{ |
| 167 |
|
| 168 |
|
| 169 |
Status = AcpiHwReadPort (Address, &Value1, 32); |
| 170 |
ACPI_CHECK_OK (AcpiHwReadPort, Status); |
| 171 |
Status = AcpiHwReadPort (Address+4, &Value2, 32); |
| 172 |
ACPI_CHECK_OK (AcpiHwReadPort, Status); |
| 173 |
|
| 174 |
*Value = Value1 | ((UINT64) Value2 << 32); |
| 175 |
} |
| 176 |
else |
| 177 |
{ |
| 178 |
Status = AcpiHwReadPort (Address, &Value1, BitWidth); |
| 179 |
ACPI_CHECK_OK (AcpiHwReadPort, Status); |
| 180 |
*Value = (UINT64) Value1; |
| 181 |
} |
| 182 |
break; |
| 183 |
|
| 184 |
case ACPI_WRITE: |
| 185 |
|
| 186 |
if (BitWidth == 64) |
| 187 |
{ |
| 188 |
|
| 189 |
|
| 190 |
Status = AcpiHwWritePort (Address, ACPI_LODWORD (*Value), 32); |
| 191 |
ACPI_CHECK_OK (AcpiHwWritePort, Status); |
| 192 |
Status = AcpiHwWritePort (Address+4, ACPI_HIDWORD (*Value), 32); |
| 193 |
ACPI_CHECK_OK (AcpiHwWritePort, Status); |
| 194 |
} |
| 195 |
else |
| 196 |
{ |
| 197 |
Status = AcpiHwWritePort (Address, (UINT32) *Value, BitWidth); |
| 198 |
ACPI_CHECK_OK (AcpiHwWritePort, Status); |
| 199 |
} |
| 200 |
break; |
| 201 |
|
| 202 |
default: |
| 203 |
|
| 204 |
Status = AE_BAD_PARAMETER; |
| 205 |
break; |
| 206 |
} |
| 207 |
|
| 208 |
if (ACPI_FAILURE (Status)) |
| 209 |
{ |
| 210 |
return (Status); |
| 211 |
} |
| 212 |
|
| 213 |
|
| 214 |
break; |
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
case ACPI_ADR_SPACE_SMBUS: |
| 221 |
case ACPI_ADR_SPACE_GSBUS: |
| 222 |
|
| 223 |
Status = AcpiExGetProtocolBufferLength ((Function >> 16), &Length); |
| 224 |
if (ACPI_FAILURE (Status)) |
| 225 |
{ |
| 226 |
AcpiOsPrintf ("AcpiExec: Invalid SMbus/GSbus protocol ID: 0x%X\n", |
| 227 |
(Function >> 16)); |
| 228 |
return (Status); |
| 229 |
} |
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
if ((SpaceId == ACPI_ADR_SPACE_SMBUS) && |
| 234 |
(Length > ACPI_SMBUS_DATA_SIZE)) |
| 235 |
{ |
| 236 |
Length = ACPI_SMBUS_DATA_SIZE; |
| 237 |
} |
| 238 |
|
| 239 |
if (AcpiGbl_DisplayRegionAccess) |
| 240 |
{ |
| 241 |
AcpiOsPrintf ("AcpiExec: %s " |
| 242 |
"%s: Attr %X Addr %.4X BaseAddr %.4X Length %.2X BitWidth %X BufLen %X\n", |
| 243 |
AcpiUtGetRegionName (SpaceId), |
| 244 |
(Function & ACPI_IO_MASK) ? "Write" : "Read ", |
| 245 |
(UINT32) (Function >> 16), |
| 246 |
(UINT32) Address, (UINT32) BaseAddress, |
| 247 |
Length, BitWidth, Buffer[1]); |
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
if ((SpaceId == ACPI_ADR_SPACE_GSBUS) && MyContext) |
| 252 |
{ |
| 253 |
Status = AcpiBufferToResource (MyContext->Connection, |
| 254 |
MyContext->Length, &Resource); |
| 255 |
if (ACPI_SUCCESS (Status)) |
| 256 |
{ |
| 257 |
ACPI_FREE (Resource); |
| 258 |
} |
| 259 |
|
| 260 |
AcpiOsPrintf (" [AccessLength %.2X Connection %p]", |
| 261 |
MyContext->AccessLength, MyContext->Connection); |
| 262 |
} |
| 263 |
|
| 264 |
AcpiOsPrintf ("\n"); |
| 265 |
} |
| 266 |
|
| 267 |
DataBuffer = &Buffer[2]; |
| 268 |
DataLength = (UINT8) Length; |
| 269 |
|
| 270 |
|
| 271 |
|
| 272 |
if (Length == ACPI_MAX_GSBUS_DATA_SIZE) |
| 273 |
{ |
| 274 |
DataLength = 0x20; |
| 275 |
} |
| 276 |
|
| 277 |
for (i = 0; i < Length; i++) |
| 278 |
{ |
| 279 |
DataBuffer[i] = (UINT8) (0xA0 + i); |
| 280 |
} |
| 281 |
|
| 282 |
Buffer[0] = 0; |
| 283 |
Buffer[1] = DataLength; |
| 284 |
return (AE_OK); |
| 285 |
|
| 286 |
case ACPI_ADR_SPACE_IPMI: |
| 287 |
|
| 288 |
if (AcpiGbl_DisplayRegionAccess) |
| 289 |
{ |
| 290 |
AcpiOsPrintf ("AcpiExec: IPMI " |
| 291 |
"%s: Attr %X Addr %.4X BaseAddr %.4X Len %.2X Width %X BufLen %X\n", |
| 292 |
(Function & ACPI_IO_MASK) ? "Write" : "Read ", |
| 293 |
(UINT32) (Function >> 16), (UINT32) Address, (UINT32) BaseAddress, |
| 294 |
Length, BitWidth, Buffer[1]); |
| 295 |
} |
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
Buffer[0] = 0; |
| 304 |
Buffer[1] = ACPI_IPMI_DATA_SIZE; |
| 305 |
Buffer[2] = 0; |
| 306 |
Buffer[3] = 0; |
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
for (i = 4; i < ACPI_IPMI_BUFFER_SIZE; i++) |
| 313 |
{ |
| 314 |
Buffer[i] = (UINT8) (i); |
| 315 |
} |
| 316 |
return (AE_OK); |
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
case ACPI_ADR_SPACE_GPIO: |
| 324 |
|
| 325 |
if (AcpiGbl_DisplayRegionAccess) |
| 326 |
{ |
| 327 |
AcpiOsPrintf ("AcpiExec: GPIO " |
| 328 |
"%s: Address %.4X Length %X BitWidth %X Conn %p\n", |
| 329 |
(Function & ACPI_IO_MASK) ? "Write" : "Read ", |
| 330 |
(UINT32) Address, Length, BitWidth, MyContext->Connection); |
| 331 |
} |
| 332 |
|
| 333 |
|
| 334 |
break; |
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
case ACPI_ADR_SPACE_PLATFORM_COMM: |
| 342 |
|
| 343 |
if (AcpiGbl_DisplayRegionAccess) |
| 344 |
{ |
| 345 |
AcpiOsPrintf ("AcpiExec: PCC Write : Addr %.4X Width %X\n", |
| 346 |
(UINT32) Address, BitWidth); |
| 347 |
} |
| 348 |
for (i = 0; i < Length; ++i) |
| 349 |
{ |
| 350 |
Buffer[i] = (UINT8) i; |
| 351 |
} |
| 352 |
return (AE_OK); |
| 353 |
|
| 354 |
case ACPI_ADR_SPACE_PLATFORM_RT: |
| 355 |
|
| 356 |
AcpiOsPrintf ("Acpiexec: PRM %s invoked\n", |
| 357 |
(Function & ACPI_IO_MASK) ? "Write" : "Read "); |
| 358 |
|
| 359 |
if ((Function & ACPI_IO_MASK) == ACPI_WRITE) |
| 360 |
{ |
| 361 |
AcpiUtConvertUuidToString((char *) Buffer + 10, Uuid); |
| 362 |
AcpiOsPrintf ("Mode: %u GUID: %s\n", Buffer[0], Uuid); |
| 363 |
} |
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
break; |
| 368 |
|
| 369 |
default: |
| 370 |
break; |
| 371 |
} |
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
BufferExists = FALSE; |
| 377 |
BufferResize = FALSE; |
| 378 |
RegionElement = AeRegions.RegionList; |
| 379 |
|
| 380 |
if (AeRegions.NumberOfRegions) |
| 381 |
{ |
| 382 |
BaseAddressEnd = BaseAddress + Length - 1; |
| 383 |
while (!BufferExists && RegionElement) |
| 384 |
{ |
| 385 |
RegionAddress = RegionElement->Address; |
| 386 |
RegionAddressEnd = RegionElement->Address + RegionElement->Length - 1; |
| 387 |
RegionLength = RegionElement->Length; |
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
if (RegionElement->SpaceId != SpaceId || |
| 399 |
BaseAddressEnd < RegionAddress || |
| 400 |
BaseAddress > RegionAddressEnd) |
| 401 |
{ |
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
RegionElement = RegionElement->NextRegion; |
| 407 |
} |
| 408 |
else |
| 409 |
{ |
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
BufferExists = TRUE; |
| 420 |
|
| 421 |
if ((BaseAddress >= RegionAddress) && |
| 422 |
(BaseAddress <= RegionAddressEnd) && |
| 423 |
(BaseAddressEnd > RegionAddressEnd)) |
| 424 |
{ |
| 425 |
|
| 426 |
|
| 427 |
RegionElement->Length = (UINT32) (BaseAddress - |
| 428 |
RegionAddress + Length); |
| 429 |
BufferResize = TRUE; |
| 430 |
} |
| 431 |
|
| 432 |
else if ((BaseAddressEnd >= RegionAddress) && |
| 433 |
(BaseAddressEnd <= RegionAddressEnd) && |
| 434 |
(BaseAddress < RegionAddress)) |
| 435 |
{ |
| 436 |
|
| 437 |
|
| 438 |
RegionElement->Address = BaseAddress; |
| 439 |
RegionElement->Length = (UINT32) (RegionAddress - |
| 440 |
BaseAddress + RegionElement->Length); |
| 441 |
BufferResize = TRUE; |
| 442 |
} |
| 443 |
|
| 444 |
else if ((BaseAddress < RegionAddress) && |
| 445 |
(BaseAddressEnd > RegionAddressEnd)) |
| 446 |
{ |
| 447 |
|
| 448 |
|
| 449 |
RegionElement->Address = BaseAddress; |
| 450 |
RegionElement->Length = Length; |
| 451 |
BufferResize = TRUE; |
| 452 |
} |
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
if (BufferResize) |
| 459 |
{ |
| 460 |
NewBuffer = AcpiOsAllocate (RegionElement->Length); |
| 461 |
if (!NewBuffer) |
| 462 |
{ |
| 463 |
return (AE_NO_MEMORY); |
| 464 |
} |
| 465 |
|
| 466 |
OldBuffer = RegionElement->Buffer; |
| 467 |
RegionElement->Buffer = NewBuffer; |
| 468 |
NewBuffer = NULL; |
| 469 |
|
| 470 |
|
| 471 |
|
| 472 |
memset (RegionElement->Buffer, |
| 473 |
AcpiGbl_RegionFillValue, RegionElement->Length); |
| 474 |
|
| 475 |
|
| 476 |
|
| 477 |
|
| 478 |
|
| 479 |
BufferValue = (UINT8 *) RegionElement->Buffer + |
| 480 |
(UINT64) RegionAddress - |
| 481 |
(UINT64) RegionElement->Address; |
| 482 |
|
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
memcpy (BufferValue, OldBuffer, RegionLength); |
| 488 |
AcpiOsFree (OldBuffer); |
| 489 |
} |
| 490 |
} |
| 491 |
} |
| 492 |
} |
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
|
| 497 |
if (!BufferExists) |
| 498 |
{ |
| 499 |
|
| 500 |
|
| 501 |
RegionElement = AcpiOsAllocate (sizeof (AE_REGION)); |
| 502 |
if (!RegionElement) |
| 503 |
{ |
| 504 |
return (AE_NO_MEMORY); |
| 505 |
} |
| 506 |
|
| 507 |
RegionElement->Buffer = AcpiOsAllocate (Length); |
| 508 |
if (!RegionElement->Buffer) |
| 509 |
{ |
| 510 |
AcpiOsFree (RegionElement); |
| 511 |
return (AE_NO_MEMORY); |
| 512 |
} |
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
memset (RegionElement->Buffer, AcpiGbl_RegionFillValue, Length); |
| 517 |
|
| 518 |
RegionElement->Address = BaseAddress; |
| 519 |
RegionElement->Length = Length; |
| 520 |
RegionElement->SpaceId = SpaceId; |
| 521 |
RegionElement->NextRegion = NULL; |
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
|
| 526 |
|
| 527 |
|
| 528 |
AeRegions.NumberOfRegions += 1; |
| 529 |
|
| 530 |
if (AeRegions.RegionList) |
| 531 |
{ |
| 532 |
RegionElement->NextRegion = AeRegions.RegionList; |
| 533 |
} |
| 534 |
|
| 535 |
AeRegions.RegionList = RegionElement; |
| 536 |
} |
| 537 |
|
| 538 |
|
| 539 |
|
| 540 |
ByteWidth = (BitWidth / 8); |
| 541 |
if (BitWidth % 8) |
| 542 |
{ |
| 543 |
ByteWidth += 1; |
| 544 |
} |
| 545 |
|
| 546 |
|
| 547 |
|
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
if (Address < RegionElement->Address || |
| 554 |
((UINT64) Address + ByteWidth) > |
| 555 |
((UINT64)(RegionElement->Address) + RegionElement->Length)) |
| 556 |
{ |
| 557 |
if (RegionObject->Region.SpaceId == ACPI_ADR_SPACE_GPIO) |
| 558 |
{ |
| 559 |
if (Function == ACPI_READ) |
| 560 |
{ |
| 561 |
memset (Value, 0, ByteWidth); |
| 562 |
} |
| 563 |
return (AE_OK); |
| 564 |
} |
| 565 |
|
| 566 |
ACPI_WARNING ((AE_INFO, |
| 567 |
"Request on [%4.4s] is beyond region limit " |
| 568 |
"Req-0x%X+0x%X, Base=0x%X, Len-0x%X", |
| 569 |
(RegionObject->Region.Node)->Name.Ascii, (UINT32) Address, |
| 570 |
ByteWidth, (UINT32)(RegionElement->Address), |
| 571 |
RegionElement->Length)); |
| 572 |
|
| 573 |
return (AE_AML_REGION_LIMIT); |
| 574 |
} |
| 575 |
|
| 576 |
|
| 577 |
|
| 578 |
|
| 579 |
BufferValue = ((UINT8 *) RegionElement->Buffer + |
| 580 |
((UINT64) Address - (UINT64) RegionElement->Address)); |
| 581 |
|
| 582 |
DoFunction: |
| 583 |
|
| 584 |
|
| 585 |
|
| 586 |
if (ByteWidth == 0) |
| 587 |
{ |
| 588 |
return (AE_AML_OPERAND_VALUE); |
| 589 |
} |
| 590 |
|
| 591 |
switch (Function) |
| 592 |
{ |
| 593 |
case ACPI_READ: |
| 594 |
|
| 595 |
|
| 596 |
|
| 597 |
memcpy (Value, BufferValue, ByteWidth); |
| 598 |
break; |
| 599 |
|
| 600 |
case ACPI_WRITE: |
| 601 |
|
| 602 |
|
| 603 |
|
| 604 |
memcpy (BufferValue, Value, ByteWidth); |
| 605 |
break; |
| 606 |
|
| 607 |
default: |
| 608 |
|
| 609 |
return (AE_BAD_PARAMETER); |
| 610 |
} |
| 611 |
|
| 612 |
if (AcpiGbl_DisplayRegionAccess) |
| 613 |
{ |
| 614 |
switch (SpaceId) |
| 615 |
{ |
| 616 |
case ACPI_ADR_SPACE_SYSTEM_MEMORY: |
| 617 |
|
| 618 |
AcpiOsPrintf ("AcpiExec: SystemMemory " |
| 619 |
"%s: Val %.8X Addr %.4X BitWidth %X [REGION: BaseAddr %.4X Len %.2X]\n", |
| 620 |
(Function & ACPI_IO_MASK) ? "Write" : "Read ", |
| 621 |
(UINT32) *Value, (UINT32) Address, BitWidth, (UINT32) BaseAddress, Length); |
| 622 |
break; |
| 623 |
|
| 624 |
case ACPI_ADR_SPACE_GSBUS: |
| 625 |
|
| 626 |
AcpiOsPrintf ("AcpiExec: GenericSerialBus\n"); |
| 627 |
break; |
| 628 |
|
| 629 |
case ACPI_ADR_SPACE_GPIO: |
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
Status = AcpiBufferToResource (MyContext->Connection, |
| 634 |
MyContext->Length, &Resource); |
| 635 |
|
| 636 |
AcpiOsPrintf ("AcpiExec: GeneralPurposeIo " |
| 637 |
"%s: %.8X Addr %.4X BaseAddr %.4X Length %.2X " |
| 638 |
"BitWidth %X AccLen %.2X Conn %p\n", |
| 639 |
(Function & ACPI_IO_MASK) ? "Write" : "Read ", (UINT32) *Value, |
| 640 |
(UINT32) Address, (UINT32) BaseAddress, Length, BitWidth, |
| 641 |
MyContext->AccessLength, MyContext->Connection); |
| 642 |
if (ACPI_SUCCESS (Status)) |
| 643 |
{ |
| 644 |
ACPI_FREE (Resource); |
| 645 |
} |
| 646 |
break; |
| 647 |
|
| 648 |
default: |
| 649 |
|
| 650 |
AcpiOsPrintf ("AcpiExec: Region access on SpaceId %2.2X\n", SpaceId); |
| 651 |
break; |
| 652 |
} |
| 653 |
} |
| 654 |
|
| 655 |
return (AE_OK); |
| 656 |
} |