1
2/******************************************************************************
3 *
4 * Module Name: hwgpe - Low level GPE enable/disable/clear functions
5 * $Revision: 53 $
6 *
7 *****************************************************************************/
8
9/******************************************************************************
10 *
11 * 1. Copyright Notice
12 *
13 * Some or all of this work - Copyright (c) 1999 - 2003, 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;
437 ACPI_STATUS Status;
438
439
440 /* Get the register info for the entire GPE block */
441
442 GpeRegisterInfo = GpeBlock->RegisterInfo;
443
444 /* Examine each GPE Register within the block */
445
446 for (i = 0; i < GpeBlock->RegisterCount; i++)
447 {
448 Status = AcpiHwLowLevelWrite (8, 0x00,
449 &GpeBlock->RegisterInfo[i].EnableAddress);
450 if (ACPI_FAILURE (Status))
451 {
452 return (Status);
453 }
454 }
455
--- 15 unchanged lines hidden (view full) ---
471 ******************************************************************************/
472
473ACPI_STATUS
474AcpiHwClearGpeBlock (
475 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
476 ACPI_GPE_BLOCK_INFO *GpeBlock)
477{
478 UINT32 i;
479 ACPI_GPE_REGISTER_INFO *GpeRegisterInfo;
480 ACPI_STATUS Status;
481
482
483 /* Get the register info for the entire GPE block */
484
485 GpeRegisterInfo = GpeBlock->RegisterInfo;
486
487 /* Examine each GPE Register within the block */
488
489 for (i = 0; i < GpeBlock->RegisterCount; i++)
490 {
491 Status = AcpiHwLowLevelWrite (8, 0xFF,
492 &GpeBlock->RegisterInfo[i].StatusAddress);
493 if (ACPI_FAILURE (Status))
494 {
495 return (Status);
496 }
497 }
498
--- 123 unchanged lines hidden (view full) ---
622 /* Get the register info for the entire GPE block */
623
624 GpeRegisterInfo = GpeBlock->RegisterInfo;
625
626 /* Examine each GPE register within the block */
627
628 for (i = 0; i < GpeBlock->RegisterCount; i++)
629 {
630 /*
631 * We previously stored the enabled status of all GPEs.
632 * Blast them back in.
633 */
634 Status = AcpiHwLowLevelWrite (8, GpeRegisterInfo->Enable,
635 &GpeRegisterInfo->EnableAddress);
636 if (ACPI_FAILURE (Status))
637 {
--- 37 unchanged lines hidden ---
2/******************************************************************************
3 *
4 * Module Name: hwgpe - Low level GPE enable/disable/clear functions
5 * $Revision: 53 $
6 *
7 *****************************************************************************/
8
9/******************************************************************************
10 *
11 * 1. Copyright Notice
12 *
13 * Some or all of this work - Copyright (c) 1999 - 2003, 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;
437 ACPI_STATUS Status;
438
439
440 /* Get the register info for the entire GPE block */
441
442 GpeRegisterInfo = GpeBlock->RegisterInfo;
443
444 /* Examine each GPE Register within the block */
445
446 for (i = 0; i < GpeBlock->RegisterCount; i++)
447 {
448 Status = AcpiHwLowLevelWrite (8, 0x00,
449 &GpeBlock->RegisterInfo[i].EnableAddress);
450 if (ACPI_FAILURE (Status))
451 {
452 return (Status);
453 }
454 }
455
--- 15 unchanged lines hidden (view full) ---
471 ******************************************************************************/
472
473ACPI_STATUS
474AcpiHwClearGpeBlock (
475 ACPI_GPE_XRUPT_INFO *GpeXruptInfo,
476 ACPI_GPE_BLOCK_INFO *GpeBlock)
477{
478 UINT32 i;
479 ACPI_GPE_REGISTER_INFO *GpeRegisterInfo;
480 ACPI_STATUS Status;
481
482
483 /* Get the register info for the entire GPE block */
484
485 GpeRegisterInfo = GpeBlock->RegisterInfo;
486
487 /* Examine each GPE Register within the block */
488
489 for (i = 0; i < GpeBlock->RegisterCount; i++)
490 {
491 Status = AcpiHwLowLevelWrite (8, 0xFF,
492 &GpeBlock->RegisterInfo[i].StatusAddress);
493 if (ACPI_FAILURE (Status))
494 {
495 return (Status);
496 }
497 }
498
--- 123 unchanged lines hidden (view full) ---
622 /* Get the register info for the entire GPE block */
623
624 GpeRegisterInfo = GpeBlock->RegisterInfo;
625
626 /* Examine each GPE register within the block */
627
628 for (i = 0; i < GpeBlock->RegisterCount; i++)
629 {
630 /*
631 * We previously stored the enabled status of all GPEs.
632 * Blast them back in.
633 */
634 Status = AcpiHwLowLevelWrite (8, GpeRegisterInfo->Enable,
635 &GpeRegisterInfo->EnableAddress);
636 if (ACPI_FAILURE (Status))
637 {
--- 37 unchanged lines hidden ---