Deleted Added
full compact
hwsleep.c (128212) hwsleep.c (128245)
1
2/******************************************************************************
3 *
4 * Name: hwsleep.c - ACPI Hardware Sleep/Wake Interface
5 * $Revision: 66 $
6 *
7 *****************************************************************************/
8

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

344 ACPI_REPORT_ERROR (("Sleep values out of range: A=%X B=%X\n",
345 AcpiGbl_SleepTypeA, AcpiGbl_SleepTypeB));
346 return_ACPI_STATUS (AE_AML_OPERAND_VALUE);
347 }
348
349 SleepTypeRegInfo = AcpiHwGetBitRegisterInfo (ACPI_BITREG_SLEEP_TYPE_A);
350 SleepEnableRegInfo = AcpiHwGetBitRegisterInfo (ACPI_BITREG_SLEEP_ENABLE);
351
1
2/******************************************************************************
3 *
4 * Name: hwsleep.c - ACPI Hardware Sleep/Wake Interface
5 * $Revision: 66 $
6 *
7 *****************************************************************************/
8

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

344 ACPI_REPORT_ERROR (("Sleep values out of range: A=%X B=%X\n",
345 AcpiGbl_SleepTypeA, AcpiGbl_SleepTypeB));
346 return_ACPI_STATUS (AE_AML_OPERAND_VALUE);
347 }
348
349 SleepTypeRegInfo = AcpiHwGetBitRegisterInfo (ACPI_BITREG_SLEEP_TYPE_A);
350 SleepEnableRegInfo = AcpiHwGetBitRegisterInfo (ACPI_BITREG_SLEEP_ENABLE);
351
352 if (SleepState != ACPI_STATE_S5)
352 /* Clear wake status */
353
354 Status = AcpiSetRegister (ACPI_BITREG_WAKE_STATUS, 1, ACPI_MTX_DO_NOT_LOCK);
355 if (ACPI_FAILURE (Status))
353 {
356 {
354 /* Clear wake status */
357 return_ACPI_STATUS (Status);
358 }
355
359
356 Status = AcpiSetRegister (ACPI_BITREG_WAKE_STATUS, 1, ACPI_MTX_DO_NOT_LOCK);
357 if (ACPI_FAILURE (Status))
358 {
359 return_ACPI_STATUS (Status);
360 }
360 Status = AcpiHwClearAcpiStatus (ACPI_MTX_DO_NOT_LOCK);
361 if (ACPI_FAILURE (Status))
362 {
363 return_ACPI_STATUS (Status);
364 }
361
365
362 Status = AcpiHwClearAcpiStatus (ACPI_MTX_DO_NOT_LOCK);
363 if (ACPI_FAILURE (Status))
364 {
365 return_ACPI_STATUS (Status);
366 }
367
366 if (SleepState != ACPI_STATE_S5)
367 {
368 /* Disable BM arbitration */
369
370 Status = AcpiSetRegister (ACPI_BITREG_ARB_DISABLE, 1, ACPI_MTX_DO_NOT_LOCK);
371 if (ACPI_FAILURE (Status))
372 {
373 return_ACPI_STATUS (Status);
374 }
375 }

--- 307 unchanged lines hidden ---
368 /* Disable BM arbitration */
369
370 Status = AcpiSetRegister (ACPI_BITREG_ARB_DISABLE, 1, ACPI_MTX_DO_NOT_LOCK);
371 if (ACPI_FAILURE (Status))
372 {
373 return_ACPI_STATUS (Status);
374 }
375 }

--- 307 unchanged lines hidden ---