Simon Glass | c052918 | 2020-09-22 12:44:47 -0600 | [diff] [blame] | 1 | /* 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 | |||||
8 | Scope (\_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 | } |