blob: 7b2786ebc6b568f10d5e034e9263507a88bd3a8b [file] [log] [blame]
Angel Pons0612b272020-04-05 15:46:56 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Hannah Williamsf2a50d12016-05-18 13:45:20 -07002
3#define PCI_OSC_UUID "33DB4D5B-1FF7-401C-9657-7441C03DD766"
4
5Scope (\_SB.PCI0) {
6 Method (_OSC, 4) {
7 /* Check for proper GUID */
Alexey Buyanov03248032020-06-01 21:41:14 -07008 If (Arg0 == ToUUID (PCI_OSC_UUID)) {
Hannah Williamsf2a50d12016-05-18 13:45:20 -07009 /* Let OS control everything */
10 Return (Arg3)
11 } Else {
12 /* Unrecognized UUID */
13 CreateDWordField (Arg3, 0, CDW1)
Alexey Buyanov03248032020-06-01 21:41:14 -070014 CDW1 |= 4
Hannah Williamsf2a50d12016-05-18 13:45:20 -070015 Return (Arg3)
16 }
17 }
18}