summaryrefslogtreecommitdiff
path: root/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Bxt.asl
diff options
context:
space:
mode:
authorGuo Mang <mang.guo@intel.com>2016-12-23 13:37:43 +0800
committerGuo Mang <mang.guo@intel.com>2017-05-09 13:02:59 +0800
commit370d1ebea6e55b2f463748a069f997e209e9df3f (patch)
treebd95d26f0614f3593326c4a788d2372e9abee869 /Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Bxt.asl
parent5f7e96419eba9dae61a6fc1efe4dbad2de9b862a (diff)
downloadedk2-platforms-370d1ebea6e55b2f463748a069f997e209e9df3f.tar.xz
BroxtonPlatformPkg: Add AcpiTablesPCAT
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Mang <mang.guo@intel.com>
Diffstat (limited to 'Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Bxt.asl')
-rw-r--r--Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Bxt.asl64
1 files changed, 64 insertions, 0 deletions
diff --git a/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Bxt.asl b/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Bxt.asl
new file mode 100644
index 0000000000..aa06bda436
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/Bxt.asl
@@ -0,0 +1,64 @@
+/** @file
+ Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>
+
+ This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which accompanies this distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php.
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+Scope (\_SB.PCI0) {
+ //
+ // Integrated Sensor Hub - Device 17, Function 0
+ //
+ Device(ISH0) {
+ Name(_ADR, 0x00110000)
+ Method (_STA, 0, NotSerialized) {
+ Return (0x0F)
+ }
+
+ //--------------------
+ // Intel Proprietary Wake up Event solution
+ //--------------------
+ Method(_DSM, 0x4, Serialized)
+ {
+ If (LEqual(Arg0, ToUUID("1730E71D-E5DD-4A34-BE57-4D76B6A2FE37"))) {
+ // Function 0 : Query Function
+ If (LEqual(Arg2, Zero)) {
+ // Revision 0
+ If (LEqual(Arg1, Zero)) {
+ Return(Buffer(One) { 0x03 }) // There are 1 function defined other than Query.
+ } Else {
+ Return(0) // Revision mismatch
+ }
+ }
+ // Function 1 :
+ If (LEqual(Arg2, One)) {
+ Store(DerefOf(Index(Arg3, Zero)), Local0)
+ If (LEqual(Local0, Zero)) {
+
+ } Else {
+ //Handle sleep, dock, un-dock events here
+ }
+ Return(0)
+ } Else {
+ Return(0) // Function number mismatch but normal return.
+ }
+ } Else {
+ Return(Buffer(One) { 0x00 }) // Guid mismatch
+ }
+ }
+
+ Method (_PS0, 0, NotSerialized) { // _PS0: Power State 0
+ }
+
+ Method (_PS3, 0, NotSerialized) { // _PS3: Power State 3
+ }
+ }
+
+}//end scope
+