summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/acpi/pci_osc.asl
blob: 229dd35461c8e6cf50fd434e36c25a2116a61c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#define PCI_OSC_UUID "33DB4D5B-1FF7-401C-9657-7441C03DD766"

Scope (\_SB.PCI0) {
	Method (_OSC, 4) {
		/* Check for proper GUID */
		If (LEqual (Arg0, ToUUID (PCI_OSC_UUID))) {
			/* Let OS control everything */
			Return (Arg3)
		} Else {
			/* Unrecognized UUID */
			CreateDWordField (Arg3, 0, CDW1)
			Or (CDW1, 4, CDW1)
			Return (Arg3)
		}
	}
}