1 /**************************************************************************;
4 ;* Intel Corporation - ACPI Reference Code for the Baytrail *;
5 ;* Family of Customer Reference Boards. *;
8 ;* Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved *;
10 ; This program and the accompanying materials are licensed and made available under
11 ; the terms and conditions of the BSD License that accompanies this distribution.
12 ; The full text of the license may be found at
13 ; http://opensource.org/licenses/bsd-license.php.
15 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 ;**************************************************************************/
23 // General Purpose Events. This Scope handles the Run-time and
24 // Wake-time SCIs. The specific method called will be determined by
25 // the _Lxx value, where xx equals the bit location in the General
26 // Purpose Event register(s).
31 // Software GPE caused the event.
35 // Clear GPE status bit.
38 // Handle DTS Thermal Events.
40 External(DTSE, IntObj)
43 If(LGreaterEqual(DTSE, 0x01))
45 Notify(\_TZ.TZ01,0x80)
55 // Clear the PUNIT Status Bit.
61 // IGD OpRegion SCI event (see IGD OpRegion/Software SCI BIOS SPEC).
65 If(LAnd(\_SB.PCI0.GFX0.GSSE, LNot(GSMI))) // Graphics software SCI event?
67 \_SB.PCI0.GFX0.GSCI() // Handle the SWSCI
72 // This PME event (PCH's GPE #13) is received when any PCH internal device with PCI Power Management capabilities
73 // on bus 0 asserts the equivalent of the PME# signal.
77 If(LAnd(\_SB.PCI0.EHC1.PMEE, \_SB.PCI0.EHC1.PMES))
79 If(LNotEqual(OSEL, 1))
81 Store(1, \_SB.PCI0.EHC1.PMES) //Clear PME status
82 Store(0, \_SB.PCI0.EHC1.PMEE) //Disable PME
84 Notify(\_SB.PCI0.EHC1, 0x02)
86 If(LAnd(\_SB.PCI0.XHC1.PMEE, \_SB.PCI0.XHC1.PMES))
88 If(LNotEqual(OSEL, 1))
90 Store(1, \_SB.PCI0.XHC1.PMES) //Clear PME status
91 Store(0, \_SB.PCI0.XHC1.PMEE) //Disable PME
93 Notify(\_SB.PCI0.XHC1, 0x02)
95 If(LAnd(\_SB.PCI0.HDEF.PMEE, \_SB.PCI0.HDEF.PMES))
97 If(LNotEqual(OSEL, 1))
99 Store(1, \_SB.PCI0.HDEF.PMES) //Clear PME status
100 Store(0, \_SB.PCI0.HDEF.PMEE) //Disable PME
102 Notify(\_SB.PCI0.HDEF, 0x02)