Deleted Added
full compact
hwgpe.c (117521) hwgpe.c (126372)
1
2/******************************************************************************
3 *
4 * Module Name: hwgpe - Low level GPE enable/disable/clear functions
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 *
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;
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
436 ACPI_STATUS Status;
437
438
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 {
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
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;
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;
480 ACPI_STATUS Status;
481
482
476 ACPI_STATUS Status;
477
478
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 {
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
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 {
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
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 ---
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 ---