Deleted Added
full compact
hwregs.c (117521) hwregs.c (117525)
1
2/*******************************************************************************
3 *
4 * Module Name: hwregs - Read/write access functions for the various ACPI
5 * control and status registers.
6 * $Revision: 149 $
7 *
8 ******************************************************************************/

--- 489 unchanged lines hidden (view full) ---

498 * Note that at this level, the fact that there are actually TWO
499 * registers (A and B - and that B may not exist) is abstracted.
500 */
501 ACPI_DEBUG_PRINT ((ACPI_DB_IO, "PM1 control: Read %X\n", RegisterValue));
502
503 ACPI_REGISTER_INSERT_VALUE (RegisterValue, BitRegInfo->BitPosition,
504 BitRegInfo->AccessBitMask, Value);
505
1
2/*******************************************************************************
3 *
4 * Module Name: hwregs - Read/write access functions for the various ACPI
5 * control and status registers.
6 * $Revision: 149 $
7 *
8 ******************************************************************************/

--- 489 unchanged lines hidden (view full) ---

498 * Note that at this level, the fact that there are actually TWO
499 * registers (A and B - and that B may not exist) is abstracted.
500 */
501 ACPI_DEBUG_PRINT ((ACPI_DB_IO, "PM1 control: Read %X\n", RegisterValue));
502
503 ACPI_REGISTER_INSERT_VALUE (RegisterValue, BitRegInfo->BitPosition,
504 BitRegInfo->AccessBitMask, Value);
505
506 Status = AcpiHwRegisterWrite (ACPI_MTX_DO_NOT_LOCK, RegisterId,
507 (UINT16) RegisterValue);
506 Status = AcpiHwRegisterWrite (ACPI_MTX_DO_NOT_LOCK,
507 ACPI_REGISTER_PM1_CONTROL, (UINT16) RegisterValue);
508 break;
509
510
511 case ACPI_REGISTER_PM2_CONTROL:
512
513 Status = AcpiHwRegisterRead (ACPI_MTX_DO_NOT_LOCK,
514 ACPI_REGISTER_PM2_CONTROL, &RegisterValue);
515 if (ACPI_FAILURE (Status))

--- 463 unchanged lines hidden ---
508 break;
509
510
511 case ACPI_REGISTER_PM2_CONTROL:
512
513 Status = AcpiHwRegisterRead (ACPI_MTX_DO_NOT_LOCK,
514 ACPI_REGISTER_PM2_CONTROL, &RegisterValue);
515 if (ACPI_FAILURE (Status))

--- 463 unchanged lines hidden ---