summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/display/xe_display_misc.c
diff options
context:
space:
mode:
authorUma Shankar <uma.shankar@intel.com>2023-10-06 14:56:45 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:44:32 +0300
commitc79802d100d1dd8b1748ea7dc232f5e059bdc7c5 (patch)
treebf566e7d319b875c8c360c6396ad97f7ad90e68a /drivers/gpu/drm/xe/display/xe_display_misc.c
parent08ea5ea2e890e8fbc9875294e6087179574a3057 (diff)
downloadlinux-c79802d100d1dd8b1748ea7dc232f5e059bdc7c5.tar.xz
drm/xe/display: Create a dummy version for vga decode
This introduces an exclusive version of vga decode for xe. Rest of the display changes will be re-used from i915. Currently it adds just a dummy implementation. VGA decode needs to be handled correctly in i915, proper implementation will be adopted once the i915 changes are finalized and merged in upstream. v2: Addressed Arun's review comments Signed-off-by: Uma Shankar <uma.shankar@intel.com> Reviewed-by: Arun R Murthy <arun.r.mruthy@intel.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/display/xe_display_misc.c')
-rw-r--r--drivers/gpu/drm/xe/display/xe_display_misc.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/display/xe_display_misc.c b/drivers/gpu/drm/xe/display/xe_display_misc.c
new file mode 100644
index 000000000000..242c2ef4ca93
--- /dev/null
+++ b/drivers/gpu/drm/xe/display/xe_display_misc.c
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2023 Intel Corporation
+ */
+
+#include "intel_display_types.h"
+
+struct pci_dev;
+
+unsigned int intel_gmch_vga_set_decode(struct pci_dev *pdev, bool enable_decode);
+
+unsigned int intel_gmch_vga_set_decode(struct pci_dev *pdev, bool enable_decode)
+{
+ /* ToDo: Implement the actual handling of vga decode */
+ return 0;
+}