summaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2018-09-10 10:51:26 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-09-16 08:37:36 +0000
commit936dbe1d064b24bb5f38889d50795e68a2309e62 (patch)
treea36e952beca9a575d9272fd0c2dce1f084d9db7e /src/include/device
parentc1dc7932b5ad3fe1f7a67f167b202c9019714466 (diff)
downloadcoreboot-936dbe1d064b24bb5f38889d50795e68a2309e62.tar.xz
sconfig: Allow setting device status in device tree
For devices supporting both Linux and Windows, we may find some ACPI devices that only need drivers in Linux and should not even be shown in Windows Device Manager UI. The new 'hidden' keyword in device tree 'device' statement allows devices sharing same driver to call acpi_gen_writeSTA with different values. BUG=b:72200466 BRANCH=eve TEST=Builds and boots properly on device eve Change-Id: Iae881a294b122d3a581b456285d2992ab637fb8e Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://review.coreboot.org/28566 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 1c8f1db3c0..6713c9492c 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -133,6 +133,7 @@ struct device {
unsigned int initialized : 1; /* 1 if we have initialized the device */
unsigned int on_mainboard : 1;
unsigned int disable_pcie_aspm : 1;
+ unsigned int hidden : 1; /* set if we should hide from UI */
struct pci_irq_info pci_irq_info[4];
u8 command;