]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/AcpiTablesPCAT/UsbSbd.asl
Vlv2DeviceRefCodePkg: Fixed thermal issue.
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / AcpiTablesPCAT / UsbSbd.asl
CommitLineData
3cbfba02
DW
1/************************************************************************************;\r
2;* *;\r
3;* *;\r
4;* Intel Corporation - ACPI Reference Code for the Baytrail *;\r
5;* Family of Customer Reference Boards. *;\r
6;* *;\r
7;* MPG-MSAE *;\r
8;* *;\r
9;* Copyright (c) 1999 - 2014, Intel Corporation. *;\r
10;* *;\r
11;* This program and the accompanying materials are licensed and made available under*;\r
12;* the terms and conditions of the BSD License that accompanies this distribution. *;\r
13;* The full text of the license may be found at *;\r
14;* http://opensource.org/licenses/bsd-license.php. *;\r
15;* *;\r
16;* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, *;\r
17;* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. *;\r
18;* *;\r
19;* *;\r
20;* This program has been developed by Intel Corporation. *;\r
21;* Licensee has Intel's permission to incorporate this source code *;\r
22;* into their product, royalty free. This source code may NOT be *;\r
23;* redistributed to anyone without Intel's written permission. *;\r
24;* *;\r
25;* Intel specifically disclaims all warranties, express or *;\r
26;* implied, and all liability, including consequential and other *;\r
27;* indirect damages, for the use of this code, including liability *;\r
28;* for infringement of any proprietary rights, and including the *;\r
29;* warranties of merchantability and fitness for a particular *;\r
30;* purpose. Intel does not assume any responsibility for any *;\r
31;* errors which may appear in this code nor any responsibility to *;\r
32;* update it. *;\r
33;* *;\r
34;* Version: See README.TXT *;\r
35;* *;\r
36;************************************************************************************/\r
37\r
38//\r
39// _DSM : Device Specific Method supporting USB Sideband Deferring function\r
40//\r
41// Arg0: UUID Unique function identifier\r
42// Arg1: Integer Revision Level\r
43// Arg2: Integer Function Index\r
44// Arg3: Package Parameters\r
45//\r
46Method (_DSM, 4, Serialized, 0, UnknownObj, {BuffObj, IntObj, IntObj, PkgObj})\r
47{\r
48\r
49 If (LEqual(Arg0, ToUUID ("A5FC708F-8775-4BA6-BD0C-BA90A1EC72F8")))\r
50 {\r
51 //\r
52 // Switch by function index\r
53 //\r
54 Switch (ToInteger(Arg2))\r
55 {\r
56 //\r
57 // Standard query - A bitmask of functions supported\r
58 // Supports function 0-2\r
59 //\r
60 Case (0)\r
61 {\r
62 if (LEqual(Arg1, 1)) // test Arg1 for the revision\r
63 {\r
64 Return (Buffer () {0x07})\r
65 }\r
66 else\r
67 {\r
68 Return (Buffer () {0})\r
69 }\r
70 }\r
71 //\r
72 // USB Sideband Deferring Support\r
73 // 0: USB Sideband Deferring not supported on this device\r
74 // 1: USB Sideband Deferring supported\r
75 //\r
76 Case (1)\r
77 {\r
78 if (LEqual(SDGV,0xFF)) // check for valid GPE vector\r
79 {\r
80 Return (0)\r
81 }\r
82 else\r
83 {\r
84 Return (1)\r
85 }\r
86 }\r
87 //\r
88 // GPE Vector\r
89 // Return the bit offset within the GPE block of the GPIO (HOST_ALERT) driven by this device\r
90 //\r
91 Case (2)\r
92 {\r
93 Return (SDGV)\r
94 }\r
95 }\r
96 }\r
97\r
98 Return (0)\r
99}\r