summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/acpi/osc.asl
blob: 22175caa456a6edebf5567017cd8eaefb1e68563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-only */

#include <acpi/acpi_osc.h>

/*
 * Platform-Wide _OSC Operating System Capabilities
 *
 * Arg0: A Buffer containing a UUID
 * Arg1: An Integer containing a Revision ID of the buffer format
 * Arg2: An Integer containing a count of entries in Arg3
 * Arg3: A Buffer containing a list of DWORD capabilities
 */
Method (_OSC, 4, NotSerialized) {
	CreateDWordField (Arg3, 0, CDW1)
	If (Arg0 == ToUUID (OSC_SB_UUID)) {
		/* Don't mask any capability bits off. */
		Return (Arg3)
	} Else {
		CDW1 |= OSC_CDW1_UNRECOGNIZED_UUID
		Return (Arg3)
	}
}