Deleted Added
full compact
hwgpe.c (151937) hwgpe.c (167802)
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: 1.71 $
5 * $Revision: 1.75 $
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 - 2005, Intel Corp.
13 * Some or all of this work - Copyright (c) 1999 - 2007, 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.

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

183 *
184 ******************************************************************************/
185
186ACPI_STATUS
187AcpiHwClearGpe (
188 ACPI_GPE_EVENT_INFO *GpeEventInfo)
189{
190 ACPI_STATUS Status;
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.

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

183 *
184 ******************************************************************************/
185
186ACPI_STATUS
187AcpiHwClearGpe (
188 ACPI_GPE_EVENT_INFO *GpeEventInfo)
189{
190 ACPI_STATUS Status;
191 UINT8 RegisterBit;
191
192
193 ACPI_FUNCTION_ENTRY ();
194
195
192
193
194 ACPI_FUNCTION_ENTRY ();
195
196
197 RegisterBit = (UINT8)
198 (1 << (GpeEventInfo->GpeNumber - GpeEventInfo->RegisterInfo->BaseGpeNumber));
199
196 /*
197 * Write a one to the appropriate bit in the status register to
198 * clear this GPE.
199 */
200 /*
201 * Write a one to the appropriate bit in the status register to
202 * clear this GPE.
203 */
200 Status = AcpiHwLowLevelWrite (8, GpeEventInfo->RegisterBit,
204 Status = AcpiHwLowLevelWrite (8, RegisterBit,
201 &GpeEventInfo->RegisterInfo->StatusAddress);
202
203 return (Status);
204}
205
206
207/******************************************************************************
208 *

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

238 }
239
240 /* Get the info block for the entire GPE register */
241
242 GpeRegisterInfo = GpeEventInfo->RegisterInfo;
243
244 /* Get the register bitmask for this GPE */
245
205 &GpeEventInfo->RegisterInfo->StatusAddress);
206
207 return (Status);
208}
209
210
211/******************************************************************************
212 *

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

242 }
243
244 /* Get the info block for the entire GPE register */
245
246 GpeRegisterInfo = GpeEventInfo->RegisterInfo;
247
248 /* Get the register bitmask for this GPE */
249
246 RegisterBit = GpeEventInfo->RegisterBit;
250 RegisterBit = (UINT8)
251 (1 << (GpeEventInfo->GpeNumber - GpeEventInfo->RegisterInfo->BaseGpeNumber));
247
248 /* GPE currently enabled? (enabled for runtime?) */
249
250 if (RegisterBit & GpeRegisterInfo->EnableForRun)
251 {
252 LocalEventStatus |= ACPI_EVENT_FLAG_ENABLED;
253 }
254

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

471
472ACPI_STATUS
473AcpiHwDisableAllGpes (
474 void)
475{
476 ACPI_STATUS Status;
477
478
252
253 /* GPE currently enabled? (enabled for runtime?) */
254
255 if (RegisterBit & GpeRegisterInfo->EnableForRun)
256 {
257 LocalEventStatus |= ACPI_EVENT_FLAG_ENABLED;
258 }
259

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

476
477ACPI_STATUS
478AcpiHwDisableAllGpes (
479 void)
480{
481 ACPI_STATUS Status;
482
483
479 ACPI_FUNCTION_TRACE ("HwDisableAllGpes");
484 ACPI_FUNCTION_TRACE (HwDisableAllGpes);
480
481
482 Status = AcpiEvWalkGpeList (AcpiHwDisableGpeBlock);
483 Status = AcpiEvWalkGpeList (AcpiHwClearGpeBlock);
484 return_ACPI_STATUS (Status);
485}
486
487

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

499
500ACPI_STATUS
501AcpiHwEnableAllRuntimeGpes (
502 void)
503{
504 ACPI_STATUS Status;
505
506
485
486
487 Status = AcpiEvWalkGpeList (AcpiHwDisableGpeBlock);
488 Status = AcpiEvWalkGpeList (AcpiHwClearGpeBlock);
489 return_ACPI_STATUS (Status);
490}
491
492

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

504
505ACPI_STATUS
506AcpiHwEnableAllRuntimeGpes (
507 void)
508{
509 ACPI_STATUS Status;
510
511
507 ACPI_FUNCTION_TRACE ("HwEnableAllRuntimeGpes");
512 ACPI_FUNCTION_TRACE (HwEnableAllRuntimeGpes);
508
509
510 Status = AcpiEvWalkGpeList (AcpiHwEnableRuntimeGpeBlock);
511 return_ACPI_STATUS (Status);
512}
513
514
515/******************************************************************************

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

526
527ACPI_STATUS
528AcpiHwEnableAllWakeupGpes (
529 void)
530{
531 ACPI_STATUS Status;
532
533
513
514
515 Status = AcpiEvWalkGpeList (AcpiHwEnableRuntimeGpeBlock);
516 return_ACPI_STATUS (Status);
517}
518
519
520/******************************************************************************

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

531
532ACPI_STATUS
533AcpiHwEnableAllWakeupGpes (
534 void)
535{
536 ACPI_STATUS Status;
537
538
534 ACPI_FUNCTION_TRACE ("HwEnableAllWakeupGpes");
539 ACPI_FUNCTION_TRACE (HwEnableAllWakeupGpes);
535
536
537 Status = AcpiEvWalkGpeList (AcpiHwEnableWakeupGpeBlock);
538 return_ACPI_STATUS (Status);
539}
540
540
541
542 Status = AcpiEvWalkGpeList (AcpiHwEnableWakeupGpeBlock);
543 return_ACPI_STATUS (Status);
544}
545