1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* Audio Controller - Device 31, Function 3 */
7 Name (_ADR, 0x001f0003)
8 Name (_DDN, "Audio Controller")
9 Name (UUID, ToUUID ("A69F886E-6CEB-4594-A41F-7B5DCE24C553"))
11 /* Device is D3 wake capable */
14 /* NHLT Table Address populated from GNVS values */
15 Name (NBUF, ResourceTemplate () {
16 QWordMemory (ResourceConsumer, PosDecode, MinFixed,
17 MaxFixed, NonCacheable, ReadOnly,
18 0, 0, 0, 0, 1,,, NHLT, AddressRangeACPI)
22 * Device Specific Method
25 * Arg2 - Function Index
31 * Function 0: Function Support Query
32 * Returns a bitmask of functions supported.
36 * NHLT Query only supported for revision 1 and
37 * if NHLT address and length are set in NVS.
39 If ((Arg1 == 1) && (NHLA != 0) && (NHLL != 0)) {
40 Return (Buffer (1) { 0x03 })
42 Return (Buffer (1) { 0x01 })
47 * Function 1: Query NHLT memory address used by
48 * Intel Offload Engine Driver to discover any non-HDA
49 * devices that are supported by the DSP.
51 * Returns a pointer to NHLT table in memory.
54 CreateQWordField (NBUF, ^NHLT._MIN, NBAS)
55 CreateQWordField (NBUF, ^NHLT._MAX, NMAS)
56 CreateQWordField (NBUF, ^NHLT._LEN, NLEN)
66 Return (Buffer (1) { 0x00 })