diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-09-10 10:51:26 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-09-16 08:37:36 +0000 |
commit | 936dbe1d064b24bb5f38889d50795e68a2309e62 (patch) | |
tree | a36e952beca9a575d9272fd0c2dce1f084d9db7e /util/sconfig/sconfig.h | |
parent | c1dc7932b5ad3fe1f7a67f167b202c9019714466 (diff) | |
download | coreboot-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 'util/sconfig/sconfig.h')
-rw-r--r-- | util/sconfig/sconfig.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h index 78c44d64da..389d697a33 100644 --- a/util/sconfig/sconfig.h +++ b/util/sconfig/sconfig.h @@ -102,8 +102,9 @@ struct device { /* Monotonically increasing ID for the device. */ int id; - /* Indicates whether this device is enabled. */ + /* Indicates device status (enabled / hidden or not). */ int enabled; + int hidden; /* Subsystem IDs for the device. */ int subsystem_vendor; @@ -147,7 +148,7 @@ extern struct bus *root_parent; struct device *new_device(struct bus *parent, struct chip_instance *chip_instance, const int bustype, const char *devnum, - int enabled); + int status); void add_resource(struct bus *bus, int type, int index, int base); |