]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/AcpiTablesPCAT/UsbSbd.asl
ArmPkg/CompilerIntrinsicsLib: Add uread, uwrite GCC assembly sources
[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
7ede8060 11;* ThSPDX-License-Identifier: BSD-2-Clause-Patent\r
3cbfba02
DW
12;* *;\r
13;* *;\r
14;* This program has been developed by Intel Corporation. *;\r
15;* Licensee has Intel's permission to incorporate this source code *;\r
16;* into their product, royalty free. This source code may NOT be *;\r
17;* redistributed to anyone without Intel's written permission. *;\r
18;* *;\r
19;* Intel specifically disclaims all warranties, express or *;\r
20;* implied, and all liability, including consequential and other *;\r
21;* indirect damages, for the use of this code, including liability *;\r
22;* for infringement of any proprietary rights, and including the *;\r
23;* warranties of merchantability and fitness for a particular *;\r
24;* purpose. Intel does not assume any responsibility for any *;\r
25;* errors which may appear in this code nor any responsibility to *;\r
26;* update it. *;\r
27;* *;\r
28;* Version: See README.TXT *;\r
29;* *;\r
30;************************************************************************************/\r
31\r
32//\r
33// _DSM : Device Specific Method supporting USB Sideband Deferring function\r
34//\r
35// Arg0: UUID Unique function identifier\r
36// Arg1: Integer Revision Level\r
37// Arg2: Integer Function Index\r
38// Arg3: Package Parameters\r
39//\r
40Method (_DSM, 4, Serialized, 0, UnknownObj, {BuffObj, IntObj, IntObj, PkgObj})\r
41{\r
42\r
43 If (LEqual(Arg0, ToUUID ("A5FC708F-8775-4BA6-BD0C-BA90A1EC72F8")))\r
44 {\r
45 //\r
46 // Switch by function index\r
47 //\r
48 Switch (ToInteger(Arg2))\r
49 {\r
50 //\r
51 // Standard query - A bitmask of functions supported\r
52 // Supports function 0-2\r
53 //\r
54 Case (0)\r
55 {\r
56 if (LEqual(Arg1, 1)) // test Arg1 for the revision\r
57 {\r
58 Return (Buffer () {0x07})\r
59 }\r
60 else\r
61 {\r
62 Return (Buffer () {0})\r
63 }\r
64 }\r
65 //\r
66 // USB Sideband Deferring Support\r
67 // 0: USB Sideband Deferring not supported on this device\r
68 // 1: USB Sideband Deferring supported\r
69 //\r
70 Case (1)\r
71 {\r
72 if (LEqual(SDGV,0xFF)) // check for valid GPE vector\r
73 {\r
74 Return (0)\r
75 }\r
76 else\r
77 {\r
78 Return (1)\r
79 }\r
80 }\r
81 //\r
82 // GPE Vector\r
83 // Return the bit offset within the GPE block of the GPIO (HOST_ALERT) driven by this device\r
84 //\r
85 Case (2)\r
86 {\r
87 Return (SDGV)\r
88 }\r
89 }\r
90 }\r
91\r
92 Return (0)\r
93}\r