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