summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-06-08 16:31:57 +0200
committerNico Huber <nico.h@gmx.de>2017-10-28 19:45:15 +0000
commit18228168a5e5ada33390ca96ef4b6ee80a509a89 (patch)
tree9037023974b2c5caff0273727d7b7e8b96db4498 /src/drivers
parent625160fd6acb8a638c512a71b8c1aa7986c2d68e (diff)
drivers/intel/gma: Put gma_gfxinit() into its own header
The current header `i915.h` is too invasive to be used everywhere where we want to use *libgfxinit*. Change-Id: Iba57256d536e301e598d98182448d2daa1bf9a89 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/20112 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/intel/gma/i915.h3
-rw-r--r--src/drivers/intel/gma/libgfxinit.h19
2 files changed, 19 insertions, 3 deletions
diff --git a/src/drivers/intel/gma/i915.h b/src/drivers/intel/gma/i915.h
index a4ae3069fa..0ddb2dea85 100644
--- a/src/drivers/intel/gma/i915.h
+++ b/src/drivers/intel/gma/i915.h
@@ -107,7 +107,4 @@ void
generate_fake_intel_oprom(const struct i915_gpu_controller_info *conf,
struct device *dev, const char *idstr);
-/* interface to libgfxinit (gma.adb) */
-void gma_gfxinit(u64 mmio_base, u64 linear_fb, u32 phys_fb, int *success);
-
#endif
diff --git a/src/drivers/intel/gma/libgfxinit.h b/src/drivers/intel/gma/libgfxinit.h
new file mode 100644
index 0000000000..9b28f80b5f
--- /dev/null
+++ b/src/drivers/intel/gma/libgfxinit.h
@@ -0,0 +1,19 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * 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_INTEL_GMA_LIBGFXINIT_H
+#define DRIVERS_INTEL_GMA_LIBGFXINIT_H
+
+void gma_gfxinit(u64 mmio_base, u64 linear_fb, u32 phys_fb, int *success);
+
+#endif