diff options
author | Furquan Shaikh <furquan@google.com> | 2020-02-21 09:57:54 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-02-24 12:52:49 +0000 |
commit | a0b0d42d691f163b0a5a8268da1087c9c5f28eaa (patch) | |
tree | 3745ca1055ce6affefe6f1e8e62f8f21d7fe5873 /src/drivers/generic/gfx/chip.h | |
parent | 4684dc0c638ea0debe9ec1aa736d119d58626424 (diff) | |
download | coreboot-a0b0d42d691f163b0a5a8268da1087c9c5f28eaa.tar.xz |
gfx: Move drivers/generic/gfx to drivers/gfx/generic
This change creates gfx directory under drivers/ so that all drivers
handling gfx devices can be located in the same place. In follow-up
CLs, we will be adding another driver that handles gfx devices.
This change also updates the names used within the driver from
*generic_gfx* to *gfx_generic*. In addition to that, mainboard
drallion using this driver is updated to match the correct path and
Kconfig name.
TEST=Verified that drallion still builds.
Change-Id: I377743e0f6d770eed143c7b6041dab2a101e6252
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39047
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Mathew King <mathewk@chromium.org>
Diffstat (limited to 'src/drivers/generic/gfx/chip.h')
-rw-r--r-- | src/drivers/generic/gfx/chip.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/drivers/generic/gfx/chip.h b/src/drivers/generic/gfx/chip.h deleted file mode 100644 index ee5bd1ff88..0000000000 --- a/src/drivers/generic/gfx/chip.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2019 Google LLC - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#ifndef __DRIVERS_GENERIC_GFX_CHIP_H__ -#define __DRIVERS_GENERIC_GFX_CHIP_H__ - -/* Config for electronic privacy screen */ -struct drivers_generic_gfx_privacy_screen_config { - /* Is privacy screen available on this graphics device */ - int enabled; - /* ACPI namespace path to privacy screen detection function */ - const char *detect_function; - /* ACPI namespace path to privacy screen status function */ - const char *status_function; - /* ACPI namespace path to privacy screen enable function */ - const char *enable_function; - /* ACPI namespace path to privacy screen disable function */ - const char *disable_function; -}; - -/* Config for an output device as defined in section A.5 of the ACPI spec */ -struct drivers_generic_gfx_device_config { - /* ACPI device name of the output device */ - const char *name; - /* The address of the output device. See section A.3.2 */ - unsigned int addr; - /* Electronic privacy screen specific config */ - struct drivers_generic_gfx_privacy_screen_config privacy; -}; - -/* Config for an ACPI video device defined in Appendix A of the ACPI spec */ -struct drivers_generic_gfx_config { - /* - * ACPI device name of the graphics card, "GFX0" will be used if name is - * not set - */ - const char *name; - /* The number of output devices defined */ - int device_count; - /* Config for output devices */ - struct drivers_generic_gfx_device_config device[5]; -}; - -#endif /* __DRIVERS_GENERIC_GFX_CHIP_H__ */ |