patch-2.4.25 linux-2.4.25/drivers/acpi/hardware/hwgpe.c
Next file: linux-2.4.25/drivers/acpi/hardware/hwregs.c
Previous file: linux-2.4.25/drivers/acpi/hardware/hwacpi.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/acpi/hardware/hwgpe.c
- Orig date:
2003-08-25 04:44:41.000000000 -0700
diff -urN linux-2.4.24/drivers/acpi/hardware/hwgpe.c linux-2.4.25/drivers/acpi/hardware/hwgpe.c
@@ -6,7 +6,7 @@
*****************************************************************************/
/*
- * Copyright (C) 2000 - 2003, R. Byron Moore
+ * Copyright (C) 2000 - 2004, R. Byron Moore
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -348,17 +348,14 @@
struct acpi_gpe_block_info *gpe_block)
{
u32 i;
- struct acpi_gpe_register_info *gpe_register_info;
acpi_status status;
- /* Get the register info for the entire GPE block */
-
- gpe_register_info = gpe_block->register_info;
-
/* Examine each GPE Register within the block */
for (i = 0; i < gpe_block->register_count; i++) {
+ /* Disable all GPEs in this register */
+
status = acpi_hw_low_level_write (8, 0x00,
&gpe_block->register_info[i].enable_address);
if (ACPI_FAILURE (status)) {
@@ -389,17 +386,14 @@
struct acpi_gpe_block_info *gpe_block)
{
u32 i;
- struct acpi_gpe_register_info *gpe_register_info;
acpi_status status;
- /* Get the register info for the entire GPE block */
-
- gpe_register_info = gpe_block->register_info;
-
/* Examine each GPE Register within the block */
for (i = 0; i < gpe_block->register_count; i++) {
+ /* Clear all GPEs in this register */
+
status = acpi_hw_low_level_write (8, 0xFF,
&gpe_block->register_info[i].status_address);
if (ACPI_FAILURE (status)) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)