hwgpe.c revision 151937
171867Smsmith 267754Smsmith/****************************************************************************** 367754Smsmith * 467754Smsmith * Module Name: hwgpe - Low level GPE enable/disable/clear functions 5151937Sjkim * $Revision: 1.71 $ 667754Smsmith * 767754Smsmith *****************************************************************************/ 867754Smsmith 967754Smsmith/****************************************************************************** 1067754Smsmith * 1167754Smsmith * 1. Copyright Notice 1267754Smsmith * 13151937Sjkim * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp. 1470243Smsmith * All rights reserved. 1567754Smsmith * 1667754Smsmith * 2. License 1767754Smsmith * 1867754Smsmith * 2.1. This is your license from Intel Corp. under its intellectual property 1967754Smsmith * rights. You may have additional license terms from the party that provided 2067754Smsmith * you this software, covering your right to use that party's intellectual 2167754Smsmith * property rights. 2267754Smsmith * 2367754Smsmith * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 2467754Smsmith * copy of the source code appearing in this file ("Covered Code") an 2567754Smsmith * irrevocable, perpetual, worldwide license under Intel's copyrights in the 2667754Smsmith * base code distributed originally by Intel ("Original Intel Code") to copy, 2767754Smsmith * make derivatives, distribute, use and display any portion of the Covered 2867754Smsmith * Code in any form, with the right to sublicense such rights; and 2967754Smsmith * 3067754Smsmith * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 3167754Smsmith * license (with the right to sublicense), under only those claims of Intel 3267754Smsmith * patents that are infringed by the Original Intel Code, to make, use, sell, 3367754Smsmith * offer to sell, and import the Covered Code and derivative works thereof 3467754Smsmith * solely to the minimum extent necessary to exercise the above copyright 3567754Smsmith * license, and in no event shall the patent license extend to any additions 3667754Smsmith * to or modifications of the Original Intel Code. No other license or right 3767754Smsmith * is granted directly or by implication, estoppel or otherwise; 3867754Smsmith * 3967754Smsmith * The above copyright and patent license is granted only if the following 4067754Smsmith * conditions are met: 4167754Smsmith * 4267754Smsmith * 3. Conditions 4367754Smsmith * 4467754Smsmith * 3.1. Redistribution of Source with Rights to Further Distribute Source. 4567754Smsmith * Redistribution of source code of any substantial portion of the Covered 4667754Smsmith * Code or modification with rights to further distribute source must include 4767754Smsmith * the above Copyright Notice, the above License, this list of Conditions, 4867754Smsmith * and the following Disclaimer and Export Compliance provision. In addition, 4967754Smsmith * Licensee must cause all Covered Code to which Licensee contributes to 5067754Smsmith * contain a file documenting the changes Licensee made to create that Covered 5167754Smsmith * Code and the date of any change. Licensee must include in that file the 5267754Smsmith * documentation of any changes made by any predecessor Licensee. Licensee 5367754Smsmith * must include a prominent statement that the modification is derived, 5467754Smsmith * directly or indirectly, from Original Intel Code. 5567754Smsmith * 5667754Smsmith * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 5767754Smsmith * Redistribution of source code of any substantial portion of the Covered 5867754Smsmith * Code or modification without rights to further distribute source must 5967754Smsmith * include the following Disclaimer and Export Compliance provision in the 6067754Smsmith * documentation and/or other materials provided with distribution. In 6167754Smsmith * addition, Licensee may not authorize further sublicense of source of any 6267754Smsmith * portion of the Covered Code, and must include terms to the effect that the 6367754Smsmith * license from Licensee to its licensee is limited to the intellectual 6467754Smsmith * property embodied in the software Licensee provides to its licensee, and 6567754Smsmith * not to intellectual property embodied in modifications its licensee may 6667754Smsmith * make. 6767754Smsmith * 6867754Smsmith * 3.3. Redistribution of Executable. Redistribution in executable form of any 6967754Smsmith * substantial portion of the Covered Code or modification must reproduce the 7067754Smsmith * above Copyright Notice, and the following Disclaimer and Export Compliance 7167754Smsmith * provision in the documentation and/or other materials provided with the 7267754Smsmith * distribution. 7367754Smsmith * 7467754Smsmith * 3.4. Intel retains all right, title, and interest in and to the Original 7567754Smsmith * Intel Code. 7667754Smsmith * 7767754Smsmith * 3.5. Neither the name Intel nor any other trademark owned or controlled by 7867754Smsmith * Intel shall be used in advertising or otherwise to promote the sale, use or 7967754Smsmith * other dealings in products derived from or relating to the Covered Code 8067754Smsmith * without prior written authorization from Intel. 8167754Smsmith * 8267754Smsmith * 4. Disclaimer and Export Compliance 8367754Smsmith * 8467754Smsmith * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 8567754Smsmith * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 8667754Smsmith * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 8767754Smsmith * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 8867754Smsmith * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 8967754Smsmith * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 9067754Smsmith * PARTICULAR PURPOSE. 9167754Smsmith * 9267754Smsmith * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 9367754Smsmith * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 9467754Smsmith * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 9567754Smsmith * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 9667754Smsmith * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 9767754Smsmith * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 9867754Smsmith * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 9967754Smsmith * LIMITED REMEDY. 10067754Smsmith * 10167754Smsmith * 4.3. Licensee shall not export, either directly or indirectly, any of this 10267754Smsmith * software or system incorporating such software without first obtaining any 10367754Smsmith * required license or other approval from the U. S. Department of Commerce or 10467754Smsmith * any other agency or department of the United States Government. In the 10567754Smsmith * event Licensee exports any such software from the United States or 10667754Smsmith * re-exports any such software from a foreign destination, Licensee shall 10767754Smsmith * ensure that the distribution and export/re-export of the software is in 10867754Smsmith * compliance with all laws, regulations, orders, or other restrictions of the 10967754Smsmith * U.S. Export Administration Regulations. Licensee agrees that neither it nor 11067754Smsmith * any of its subsidiaries will export/re-export any technical data, process, 11167754Smsmith * software, or service, directly or indirectly, to any country for which the 11267754Smsmith * United States government or any agency thereof requires an export license, 11367754Smsmith * other governmental approval, or letter of assurance, without first obtaining 11467754Smsmith * such license, approval or letter. 11567754Smsmith * 11667754Smsmith *****************************************************************************/ 11767754Smsmith 118151600Sobrien#include <contrib/dev/acpica/acpi.h> 119151600Sobrien#include <contrib/dev/acpica/acevents.h> 12067754Smsmith 12177424Smsmith#define _COMPONENT ACPI_HARDWARE 12291116Smsmith ACPI_MODULE_NAME ("hwgpe") 12367754Smsmith 124151937Sjkim/* Local prototypes */ 12567754Smsmith 126151937Sjkimstatic ACPI_STATUS 127151937SjkimAcpiHwEnableWakeupGpeBlock ( 128151937Sjkim ACPI_GPE_XRUPT_INFO *GpeXruptInfo, 129151937Sjkim ACPI_GPE_BLOCK_INFO *GpeBlock); 130151937Sjkim 131151937Sjkim 13267754Smsmith/****************************************************************************** 13367754Smsmith * 134129684Snjl * FUNCTION: AcpiHwWriteGpeEnableReg 13567754Smsmith * 136128212Snjl * PARAMETERS: GpeEventInfo - Info block for the GPE to be enabled 13767754Smsmith * 138128212Snjl * RETURN: Status 13967754Smsmith * 140138287Smarks * DESCRIPTION: Write a GPE enable register. Note: The bit for this GPE must 141138287Smarks * already be cleared or set in the parent register 142129684Snjl * EnableForRun mask. 14367754Smsmith * 14467754Smsmith ******************************************************************************/ 14567754Smsmith 14699679SiwasakiACPI_STATUS 147129684SnjlAcpiHwWriteGpeEnableReg ( 148114237Snjl ACPI_GPE_EVENT_INFO *GpeEventInfo) 14967754Smsmith{ 150114237Snjl ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; 15199679Siwasaki ACPI_STATUS Status; 15267754Smsmith 15383174Smsmith 15491116Smsmith ACPI_FUNCTION_ENTRY (); 15583174Smsmith 15683174Smsmith 157114237Snjl /* Get the info block for the entire GPE register */ 15867754Smsmith 159114237Snjl GpeRegisterInfo = GpeEventInfo->RegisterInfo; 160114237Snjl if (!GpeRegisterInfo) 161114237Snjl { 162129684Snjl return (AE_NOT_EXIST); 163114237Snjl } 16467754Smsmith 165129684Snjl /* Write the entire GPE (runtime) enable register */ 16684491Smsmith 167129684Snjl Status = AcpiHwLowLevelWrite (8, GpeRegisterInfo->EnableForRun, 168117521Snjl &GpeRegisterInfo->EnableAddress); 16999679Siwasaki 170129684Snjl return (Status); 17167754Smsmith} 17267754Smsmith 17391116Smsmith 17484491Smsmith/****************************************************************************** 17584491Smsmith * 17667754Smsmith * FUNCTION: AcpiHwClearGpe 17767754Smsmith * 178128212Snjl * PARAMETERS: GpeEventInfo - Info block for the GPE to be cleared 17967754Smsmith * 180138287Smarks * RETURN: Status 18167754Smsmith * 182128212Snjl * DESCRIPTION: Clear the status bit for a single GPE. 18367754Smsmith * 18467754Smsmith ******************************************************************************/ 18567754Smsmith 18699679SiwasakiACPI_STATUS 18767754SmsmithAcpiHwClearGpe ( 188114237Snjl ACPI_GPE_EVENT_INFO *GpeEventInfo) 18967754Smsmith{ 19099679Siwasaki ACPI_STATUS Status; 19167754Smsmith 19280062Smsmith 19391116Smsmith ACPI_FUNCTION_ENTRY (); 19483174Smsmith 19583174Smsmith 19667754Smsmith /* 19767754Smsmith * Write a one to the appropriate bit in the status register to 19867754Smsmith * clear this GPE. 19967754Smsmith */ 200129684Snjl Status = AcpiHwLowLevelWrite (8, GpeEventInfo->RegisterBit, 201117521Snjl &GpeEventInfo->RegisterInfo->StatusAddress); 20299679Siwasaki 20399679Siwasaki return (Status); 20467754Smsmith} 20567754Smsmith 20667754Smsmith 20767754Smsmith/****************************************************************************** 20867754Smsmith * 20967754Smsmith * FUNCTION: AcpiHwGetGpeStatus 21067754Smsmith * 211128212Snjl * PARAMETERS: GpeEventInfo - Info block for the GPE to queried 212128212Snjl * EventStatus - Where the GPE status is returned 21367754Smsmith * 214128212Snjl * RETURN: Status 21567754Smsmith * 21667754Smsmith * DESCRIPTION: Return the status of a single GPE. 21767754Smsmith * 21867754Smsmith ******************************************************************************/ 21967754Smsmith 22099679SiwasakiACPI_STATUS 22167754SmsmithAcpiHwGetGpeStatus ( 222117521Snjl ACPI_GPE_EVENT_INFO *GpeEventInfo, 22367754Smsmith ACPI_EVENT_STATUS *EventStatus) 22467754Smsmith{ 225114237Snjl UINT32 InByte; 226129684Snjl UINT8 RegisterBit; 22791116Smsmith ACPI_GPE_REGISTER_INFO *GpeRegisterInfo; 22899679Siwasaki ACPI_STATUS Status; 229114237Snjl ACPI_EVENT_STATUS LocalEventStatus = 0; 23067754Smsmith 23180062Smsmith 23291116Smsmith ACPI_FUNCTION_ENTRY (); 23383174Smsmith 23483174Smsmith 23567754Smsmith if (!EventStatus) 23667754Smsmith { 23799679Siwasaki return (AE_BAD_PARAMETER); 23867754Smsmith } 23967754Smsmith 240114237Snjl /* Get the info block for the entire GPE register */ 24167754Smsmith 242114237Snjl GpeRegisterInfo = GpeEventInfo->RegisterInfo; 24367754Smsmith 24491116Smsmith /* Get the register bitmask for this GPE */ 24591116Smsmith 246129684Snjl RegisterBit = GpeEventInfo->RegisterBit; 24791116Smsmith 248129684Snjl /* GPE currently enabled? (enabled for runtime?) */ 24991116Smsmith 250129684Snjl if (RegisterBit & GpeRegisterInfo->EnableForRun) 25199679Siwasaki { 252114237Snjl LocalEventStatus |= ACPI_EVENT_FLAG_ENABLED; 25367754Smsmith } 25467754Smsmith 255129684Snjl /* GPE enabled for wake? */ 25691116Smsmith 257129684Snjl if (RegisterBit & GpeRegisterInfo->EnableForWake) 25884491Smsmith { 259114237Snjl LocalEventStatus |= ACPI_EVENT_FLAG_WAKE_ENABLED; 26084491Smsmith } 26184491Smsmith 262129684Snjl /* GPE currently active (status bit == 1)? */ 26391116Smsmith 264117521Snjl Status = AcpiHwLowLevelRead (8, &InByte, &GpeRegisterInfo->StatusAddress); 26599679Siwasaki if (ACPI_FAILURE (Status)) 26699679Siwasaki { 267117521Snjl goto UnlockAndExit; 26899679Siwasaki } 26999679Siwasaki 270129684Snjl if (RegisterBit & InByte) 27167754Smsmith { 272114237Snjl LocalEventStatus |= ACPI_EVENT_FLAG_SET; 27367754Smsmith } 274114237Snjl 275114237Snjl /* Set return value */ 276114237Snjl 277114237Snjl (*EventStatus) = LocalEventStatus; 278117521Snjl 279117521Snjl 280117521SnjlUnlockAndExit: 281117521Snjl return (Status); 282117521Snjl} 283117521Snjl 284117521Snjl 285117521Snjl/****************************************************************************** 286117521Snjl * 287117521Snjl * FUNCTION: AcpiHwDisableGpeBlock 288117521Snjl * 289117521Snjl * PARAMETERS: GpeXruptInfo - GPE Interrupt info 290117521Snjl * GpeBlock - Gpe Block info 291117521Snjl * 292117521Snjl * RETURN: Status 293117521Snjl * 294151937Sjkim * DESCRIPTION: Disable all GPEs within a single GPE block 295117521Snjl * 296117521Snjl ******************************************************************************/ 297117521Snjl 298117521SnjlACPI_STATUS 299117521SnjlAcpiHwDisableGpeBlock ( 300117521Snjl ACPI_GPE_XRUPT_INFO *GpeXruptInfo, 301117521Snjl ACPI_GPE_BLOCK_INFO *GpeBlock) 302117521Snjl{ 303117521Snjl UINT32 i; 304117521Snjl ACPI_STATUS Status; 305117521Snjl 306117521Snjl 307117521Snjl /* Examine each GPE Register within the block */ 308117521Snjl 309117521Snjl for (i = 0; i < GpeBlock->RegisterCount; i++) 310117521Snjl { 311126372Snjl /* Disable all GPEs in this register */ 312126372Snjl 313117521Snjl Status = AcpiHwLowLevelWrite (8, 0x00, 314117521Snjl &GpeBlock->RegisterInfo[i].EnableAddress); 315117521Snjl if (ACPI_FAILURE (Status)) 316117521Snjl { 317117521Snjl return (Status); 318117521Snjl } 319117521Snjl } 320117521Snjl 32199679Siwasaki return (AE_OK); 32267754Smsmith} 32384491Smsmith 32491116Smsmith 32584491Smsmith/****************************************************************************** 32684491Smsmith * 327117521Snjl * FUNCTION: AcpiHwClearGpeBlock 328117521Snjl * 329117521Snjl * PARAMETERS: GpeXruptInfo - GPE Interrupt info 330117521Snjl * GpeBlock - Gpe Block info 331117521Snjl * 332117521Snjl * RETURN: Status 333117521Snjl * 334151937Sjkim * DESCRIPTION: Clear status bits for all GPEs within a single GPE block 335117521Snjl * 336117521Snjl ******************************************************************************/ 337117521Snjl 338117521SnjlACPI_STATUS 339117521SnjlAcpiHwClearGpeBlock ( 340117521Snjl ACPI_GPE_XRUPT_INFO *GpeXruptInfo, 341117521Snjl ACPI_GPE_BLOCK_INFO *GpeBlock) 342117521Snjl{ 343117521Snjl UINT32 i; 344117521Snjl ACPI_STATUS Status; 345117521Snjl 346117521Snjl 347117521Snjl /* Examine each GPE Register within the block */ 348117521Snjl 349117521Snjl for (i = 0; i < GpeBlock->RegisterCount; i++) 350117521Snjl { 351128212Snjl /* Clear status on all GPEs in this register */ 352126372Snjl 353117521Snjl Status = AcpiHwLowLevelWrite (8, 0xFF, 354117521Snjl &GpeBlock->RegisterInfo[i].StatusAddress); 355117521Snjl if (ACPI_FAILURE (Status)) 356117521Snjl { 357117521Snjl return (Status); 358117521Snjl } 359117521Snjl } 360117521Snjl 361117521Snjl return (AE_OK); 362117521Snjl} 363117521Snjl 364117521Snjl 365117521Snjl/****************************************************************************** 366117521Snjl * 367129684Snjl * FUNCTION: AcpiHwEnableRuntimeGpeBlock 368117521Snjl * 369117521Snjl * PARAMETERS: GpeXruptInfo - GPE Interrupt info 370117521Snjl * GpeBlock - Gpe Block info 371117521Snjl * 372117521Snjl * RETURN: Status 373117521Snjl * 374151937Sjkim * DESCRIPTION: Enable all "runtime" GPEs within a single GPE block. Includes 375151937Sjkim * combination wake/run GPEs. 376117521Snjl * 377117521Snjl ******************************************************************************/ 378117521Snjl 379129684SnjlACPI_STATUS 380129684SnjlAcpiHwEnableRuntimeGpeBlock ( 381117521Snjl ACPI_GPE_XRUPT_INFO *GpeXruptInfo, 382117521Snjl ACPI_GPE_BLOCK_INFO *GpeBlock) 383117521Snjl{ 384117521Snjl UINT32 i; 385117521Snjl ACPI_STATUS Status; 386117521Snjl 387117521Snjl 388129684Snjl /* NOTE: assumes that all GPEs are currently disabled */ 389117521Snjl 390117521Snjl /* Examine each GPE Register within the block */ 391117521Snjl 392117521Snjl for (i = 0; i < GpeBlock->RegisterCount; i++) 393117521Snjl { 394129684Snjl if (!GpeBlock->RegisterInfo[i].EnableForRun) 395117521Snjl { 396129684Snjl continue; 397117521Snjl } 398117521Snjl 399129684Snjl /* Enable all "runtime" GPEs in this register */ 400117521Snjl 401129684Snjl Status = AcpiHwLowLevelWrite (8, GpeBlock->RegisterInfo[i].EnableForRun, 402129684Snjl &GpeBlock->RegisterInfo[i].EnableAddress); 403117521Snjl if (ACPI_FAILURE (Status)) 404117521Snjl { 405117521Snjl return (Status); 406117521Snjl } 407117521Snjl } 408117521Snjl 409117521Snjl return (AE_OK); 410117521Snjl} 411117521Snjl 412117521Snjl 413117521Snjl/****************************************************************************** 414117521Snjl * 415129684Snjl * FUNCTION: AcpiHwEnableWakeupGpeBlock 41684491Smsmith * 417129684Snjl * PARAMETERS: GpeXruptInfo - GPE Interrupt info 418129684Snjl * GpeBlock - Gpe Block info 41984491Smsmith * 420128212Snjl * RETURN: Status 42184491Smsmith * 422151937Sjkim * DESCRIPTION: Enable all "wake" GPEs within a single GPE block. Includes 423151937Sjkim * combination wake/run GPEs. 42484491Smsmith * 42584491Smsmith ******************************************************************************/ 42684491Smsmith 427151937Sjkimstatic ACPI_STATUS 428129684SnjlAcpiHwEnableWakeupGpeBlock ( 429129684Snjl ACPI_GPE_XRUPT_INFO *GpeXruptInfo, 430129684Snjl ACPI_GPE_BLOCK_INFO *GpeBlock) 43184491Smsmith{ 432129684Snjl UINT32 i; 43399679Siwasaki ACPI_STATUS Status; 43484491Smsmith 43584491Smsmith 436129684Snjl /* Examine each GPE Register within the block */ 43791116Smsmith 438129684Snjl for (i = 0; i < GpeBlock->RegisterCount; i++) 439129684Snjl { 440129684Snjl if (!GpeBlock->RegisterInfo[i].EnableForWake) 441129684Snjl { 442129684Snjl continue; 443129684Snjl } 44491116Smsmith 445129684Snjl /* Enable all "wake" GPEs in this register */ 446129684Snjl 447151937Sjkim Status = AcpiHwLowLevelWrite (8, 448151937Sjkim GpeBlock->RegisterInfo[i].EnableForWake, 449129684Snjl &GpeBlock->RegisterInfo[i].EnableAddress); 450129684Snjl if (ACPI_FAILURE (Status)) 451129684Snjl { 452129684Snjl return (Status); 453129684Snjl } 454129684Snjl } 455129684Snjl 456129684Snjl return (AE_OK); 457117521Snjl} 45884491Smsmith 45999679Siwasaki 460117521Snjl/****************************************************************************** 461117521Snjl * 462129684Snjl * FUNCTION: AcpiHwDisableAllGpes 463117521Snjl * 464151937Sjkim * PARAMETERS: None 465117521Snjl * 466117521Snjl * RETURN: Status 467117521Snjl * 468151937Sjkim * DESCRIPTION: Disable and clear all GPEs in all GPE blocks 469117521Snjl * 470117521Snjl ******************************************************************************/ 471114237Snjl 472129684SnjlACPI_STATUS 473129684SnjlAcpiHwDisableAllGpes ( 474151937Sjkim void) 475117521Snjl{ 476117521Snjl ACPI_STATUS Status; 477114237Snjl 478117521Snjl 479129684Snjl ACPI_FUNCTION_TRACE ("HwDisableAllGpes"); 480117521Snjl 481117521Snjl 482151937Sjkim Status = AcpiEvWalkGpeList (AcpiHwDisableGpeBlock); 483151937Sjkim Status = AcpiEvWalkGpeList (AcpiHwClearGpeBlock); 484129684Snjl return_ACPI_STATUS (Status); 485129684Snjl} 486117521Snjl 487117521Snjl 488129684Snjl/****************************************************************************** 489129684Snjl * 490129684Snjl * FUNCTION: AcpiHwEnableAllRuntimeGpes 491129684Snjl * 492151937Sjkim * PARAMETERS: None 493129684Snjl * 494129684Snjl * RETURN: Status 495129684Snjl * 496151937Sjkim * DESCRIPTION: Enable all "runtime" GPEs, in all GPE blocks 497129684Snjl * 498129684Snjl ******************************************************************************/ 499126372Snjl 500129684SnjlACPI_STATUS 501129684SnjlAcpiHwEnableAllRuntimeGpes ( 502151937Sjkim void) 503129684Snjl{ 504129684Snjl ACPI_STATUS Status; 505126372Snjl 506114237Snjl 507129684Snjl ACPI_FUNCTION_TRACE ("HwEnableAllRuntimeGpes"); 508128212Snjl 509114237Snjl 510151937Sjkim Status = AcpiEvWalkGpeList (AcpiHwEnableRuntimeGpeBlock); 511129684Snjl return_ACPI_STATUS (Status); 51284491Smsmith} 51384491Smsmith 51491116Smsmith 51584491Smsmith/****************************************************************************** 51684491Smsmith * 517129684Snjl * FUNCTION: AcpiHwEnableAllWakeupGpes 51884491Smsmith * 519151937Sjkim * PARAMETERS: None 52084491Smsmith * 521128212Snjl * RETURN: Status 52284491Smsmith * 523151937Sjkim * DESCRIPTION: Enable all "wakeup" GPEs, in all GPE blocks 52484491Smsmith * 52584491Smsmith ******************************************************************************/ 52684491Smsmith 52799679SiwasakiACPI_STATUS 528129684SnjlAcpiHwEnableAllWakeupGpes ( 529151937Sjkim void) 53084491Smsmith{ 53199679Siwasaki ACPI_STATUS Status; 53284491Smsmith 53384491Smsmith 534129684Snjl ACPI_FUNCTION_TRACE ("HwEnableAllWakeupGpes"); 53591116Smsmith 53691116Smsmith 537151937Sjkim Status = AcpiEvWalkGpeList (AcpiHwEnableWakeupGpeBlock); 538129684Snjl return_ACPI_STATUS (Status); 53984491Smsmith} 540129684Snjl 541