diff options
Diffstat (limited to 'roms/u-boot/arch/x86/include/asm/acpi/pci_osc.asl')
-rw-r--r-- | roms/u-boot/arch/x86/include/asm/acpi/pci_osc.asl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roms/u-boot/arch/x86/include/asm/acpi/pci_osc.asl b/roms/u-boot/arch/x86/include/asm/acpi/pci_osc.asl new file mode 100644 index 000000000..864556fa8 --- /dev/null +++ b/roms/u-boot/arch/x86/include/asm/acpi/pci_osc.asl @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2016 Intel Corp. + */ + +#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) + } + } +} |