blob: 864556fa831e95a344b5c017e0a1cee89226292c [file] [log] [blame]
Simon Glassc0529182020-09-22 12:44:47 -06001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2016 Intel Corp.
4 */
5
6#define PCI_OSC_UUID "33DB4D5B-1FF7-401C-9657-7441C03DD766"
7
8Scope (\_SB.PCI0) {
9 Method (_OSC, 4) {
10 /* Check for proper GUID */
11 If (LEqual (Arg0, ToUUID (PCI_OSC_UUID))) {
12 /* Let OS control everything */
13 Return (Arg3)
14 } Else {
15 /* Unrecognized UUID */
16 CreateDWordField (Arg3, 0, CDW1)
17 Or (CDW1, 4, CDW1)
18 Return (Arg3)
19 }
20 }
21}