Deleted Added
full compact
1
2/******************************************************************************
3 *
4 * Module Name: hwgpe - Low level GPE enable/disable/clear functions
5 * $Revision: 53 $
5 * $Revision: 56 $
6 *
7 *****************************************************************************/
8
9/******************************************************************************
10 *
11 * 1. Copyright Notice
12 *
13 * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
13 * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
14 * All rights reserved.
15 *
16 * 2. License
17 *
18 * 2.1. This is your license from Intel Corp. under its intellectual property
19 * rights. You may have additional license terms from the party that provided
20 * you this software, covering your right to use that party's intellectual
21 * property rights.

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

428 ******************************************************************************/
429
430ACPI_STATUS
431AcpiHwDisableGpeBlock (
432 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
433 ACPI_GPE_BLOCK_INFO *GpeBlock)
434{
435 UINT32 i;
436 ACPI_GPE_REGISTER_INFO *GpeRegisterInfo;
436 ACPI_STATUS Status;
437
438
440 /* Get the register info for the entire GPE block */
441
442 GpeRegisterInfo = GpeBlock->RegisterInfo;
443
439 /* Examine each GPE Register within the block */
440
441 for (i = 0; i < GpeBlock->RegisterCount; i++)
442 {
443 /* Disable all GPEs in this register */
444
445 Status = AcpiHwLowLevelWrite (8, 0x00,
446 &GpeBlock->RegisterInfo[i].EnableAddress);
447 if (ACPI_FAILURE (Status))
448 {
449 return (Status);
450 }
451 }
452

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

468 ******************************************************************************/
469
470ACPI_STATUS
471AcpiHwClearGpeBlock (
472 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
473 ACPI_GPE_BLOCK_INFO *GpeBlock)
474{
475 UINT32 i;
479 ACPI_GPE_REGISTER_INFO *GpeRegisterInfo;
476 ACPI_STATUS Status;
477
478
483 /* Get the register info for the entire GPE block */
484
485 GpeRegisterInfo = GpeBlock->RegisterInfo;
486
479 /* Examine each GPE Register within the block */
480
481 for (i = 0; i < GpeBlock->RegisterCount; i++)
482 {
483 /* Clear all GPEs in this register */
484
485 Status = AcpiHwLowLevelWrite (8, 0xFF,
486 &GpeBlock->RegisterInfo[i].StatusAddress);
487 if (ACPI_FAILURE (Status))
488 {
489 return (Status);
490 }
491 }
492

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

616 /* Get the register info for the entire GPE block */
617
618 GpeRegisterInfo = GpeBlock->RegisterInfo;
619
620 /* Examine each GPE register within the block */
621
622 for (i = 0; i < GpeBlock->RegisterCount; i++)
623 {
624 /* Clear the entire status register */
625
626 Status = AcpiHwLowLevelWrite (8, 0xFF,
627 &GpeBlock->RegisterInfo[i].StatusAddress);
628 if (ACPI_FAILURE (Status))
629 {
630 return (Status);
631 }
632
633 /*
634 * We previously stored the enabled status of all GPEs.
635 * Blast them back in.
636 */
637 Status = AcpiHwLowLevelWrite (8, GpeRegisterInfo->Enable,
638 &GpeRegisterInfo->EnableAddress);
639 if (ACPI_FAILURE (Status))
640 {

--- 37 unchanged lines hidden ---