+++ /dev/null
-/************************************************************************************;\r
-;* *;\r
-;* *;\r
-;* Intel Corporation - ACPI Reference Code for the Baytrail *;\r
-;* Family of Customer Reference Boards. *;\r
-;* *;\r
-;* MPG-MSAE *;\r
-;* *;\r
-;* Copyright (c) 1999 - 2014, Intel Corporation. *;\r
-;* *;\r
-;* ThSPDX-License-Identifier: BSD-2-Clause-Patent\r
-;* *;\r
-;* *;\r
-;* This program has been developed by Intel Corporation. *;\r
-;* Licensee has Intel's permission to incorporate this source code *;\r
-;* into their product, royalty free. This source code may NOT be *;\r
-;* redistributed to anyone without Intel's written permission. *;\r
-;* *;\r
-;* Intel specifically disclaims all warranties, express or *;\r
-;* implied, and all liability, including consequential and other *;\r
-;* indirect damages, for the use of this code, including liability *;\r
-;* for infringement of any proprietary rights, and including the *;\r
-;* warranties of merchantability and fitness for a particular *;\r
-;* purpose. Intel does not assume any responsibility for any *;\r
-;* errors which may appear in this code nor any responsibility to *;\r
-;* update it. *;\r
-;* *;\r
-;* Version: See README.TXT *;\r
-;* *;\r
-;************************************************************************************/\r
-\r
-//\r
-// _DSM : Device Specific Method supporting USB Sideband Deferring function\r
-//\r
-// Arg0: UUID Unique function identifier\r
-// Arg1: Integer Revision Level\r
-// Arg2: Integer Function Index\r
-// Arg3: Package Parameters\r
-//\r
-Method (_DSM, 4, Serialized, 0, UnknownObj, {BuffObj, IntObj, IntObj, PkgObj})\r
-{\r
-\r
- If (LEqual(Arg0, ToUUID ("A5FC708F-8775-4BA6-BD0C-BA90A1EC72F8")))\r
- {\r
- //\r
- // Switch by function index\r
- //\r
- Switch (ToInteger(Arg2))\r
- {\r
- //\r
- // Standard query - A bitmask of functions supported\r
- // Supports function 0-2\r
- //\r
- Case (0)\r
- {\r
- if (LEqual(Arg1, 1)) // test Arg1 for the revision\r
- {\r
- Return (Buffer () {0x07})\r
- }\r
- else\r
- {\r
- Return (Buffer () {0})\r
- }\r
- }\r
- //\r
- // USB Sideband Deferring Support\r
- // 0: USB Sideband Deferring not supported on this device\r
- // 1: USB Sideband Deferring supported\r
- //\r
- Case (1)\r
- {\r
- if (LEqual(SDGV,0xFF)) // check for valid GPE vector\r
- {\r
- Return (0)\r
- }\r
- else\r
- {\r
- Return (1)\r
- }\r
- }\r
- //\r
- // GPE Vector\r
- // Return the bit offset within the GPE block of the GPIO (HOST_ALERT) driven by this device\r
- //\r
- Case (2)\r
- {\r
- Return (SDGV)\r
- }\r
- }\r
- }\r
-\r
- Return (0)\r
-}\r