+++ /dev/null
-/**************************************************************************;\r
-;* *;\r
-;* *;\r
-;* Intel Corporation - ACPI Reference Code for the Baytrail *;\r
-;* Family of Customer Reference Boards. *;\r
-;* *;\r
-;* *;\r
-;* Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved *;\r
-;\r
-; SPDX-License-Identifier: BSD-2-Clause-Patent\r
-;\r
-;* *;\r
-;* *;\r
-;**************************************************************************/\r
-\r
-\r
-// General Purpose Events. This Scope handles the Run-time and\r
-// Wake-time SCIs. The specific method called will be determined by\r
-// the _Lxx value, where xx equals the bit location in the General\r
-// Purpose Event register(s).\r
-\r
-Scope(\_GPE)\r
-{\r
- //\r
- // Software GPE caused the event.\r
- //\r
- Method(_L02)\r
- {\r
- // Clear GPE status bit.\r
- Store(0,GPEC)\r
- //\r
- // Handle DTS Thermal Events.\r
- //\r
- External(DTSE, IntObj)\r
- If(CondRefOf(DTSE))\r
- {\r
- If(LGreaterEqual(DTSE, 0x01))\r
- {\r
- Notify(\_TZ.TZ01,0x80)\r
- }\r
- }\r
- }\r
-\r
- //\r
- // PUNIT SCI event.\r
- //\r
- Method(_L04)\r
- {\r
- // Clear the PUNIT Status Bit.\r
- Store(1, PSCI)\r
- }\r
-\r
-\r
- //\r
- // IGD OpRegion SCI event (see IGD OpRegion/Software SCI BIOS SPEC).\r
- //\r
- Method(_L05)\r
- {\r
- If(LAnd(\_SB.PCI0.GFX0.GSSE, LNot(GSMI))) // Graphics software SCI event?\r
- {\r
- \_SB.PCI0.GFX0.GSCI() // Handle the SWSCI\r
- }\r
- }\r
-\r
- //\r
- // This PME event (PCH's GPE #13) is received when any PCH internal device with PCI Power Management capabilities\r
- // on bus 0 asserts the equivalent of the PME# signal.\r
- //\r
- Method(_L0D, 0)\r
- {\r
- If(LAnd(\_SB.PCI0.EHC1.PMEE, \_SB.PCI0.EHC1.PMES))\r
- {\r
- If(LNotEqual(OSEL, 1))\r
- {\r
- Store(1, \_SB.PCI0.EHC1.PMES) //Clear PME status\r
- Store(0, \_SB.PCI0.EHC1.PMEE) //Disable PME\r
- }\r
- Notify(\_SB.PCI0.EHC1, 0x02)\r
- }\r
- If(LAnd(\_SB.PCI0.XHC1.PMEE, \_SB.PCI0.XHC1.PMES))\r
- {\r
- If(LNotEqual(OSEL, 1))\r
- {\r
- Store(1, \_SB.PCI0.XHC1.PMES) //Clear PME status\r
- Store(0, \_SB.PCI0.XHC1.PMEE) //Disable PME\r
- }\r
- Notify(\_SB.PCI0.XHC1, 0x02)\r
- }\r
- If(LAnd(\_SB.PCI0.HDEF.PMEE, \_SB.PCI0.HDEF.PMES))\r
- {\r
- If(LNotEqual(OSEL, 1))\r
- {\r
- Store(1, \_SB.PCI0.HDEF.PMES) //Clear PME status\r
- Store(0, \_SB.PCI0.HDEF.PMEE) //Disable PME\r
- }\r
- Notify(\_SB.PCI0.HDEF, 0x02)\r
- }\r
- }\r
-}\r