[Intel-gfx] [PATCH 18/53] drm/i915/bdw: New header file for LRs, LRCs and Execlists

oscar.mateo at intel.com oscar.mateo at intel.com
Fri Jun 13 17:37:36 CEST 2014


From: Oscar Mateo <oscar.mateo at intel.com>

Things are starting to get messy, and this helps a little.

And some point in time, it would be a good idea to split
intel_lrc.c/.h even further, but for the moment just shove
everything together.

Signed-off-by: Oscar Mateo <oscar.mateo at intel.com>
---
 drivers/gpu/drm/i915/i915_drv.h  |  9 +--------
 drivers/gpu/drm/i915/intel_lrc.h | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 8 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/intel_lrc.h

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 66d233f..65a85ee 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -35,6 +35,7 @@
 #include "i915_reg.h"
 #include "intel_bios.h"
 #include "intel_ringbuffer.h"
+#include "intel_lrc.h"
 #include "i915_gem_gtt.h"
 #include <linux/io-mapping.h>
 #include <linux/i2c.h>
@@ -2424,14 +2425,6 @@ struct intel_context *
 i915_gem_context_validate(struct drm_device *dev, struct drm_file *file,
 			  struct intel_engine_cs *ring, const u32 ctx_id);
 
-/* intel_lrc.c */
-bool intel_enable_execlists(struct drm_device *dev);
-void intel_logical_ring_cleanup(struct intel_engine_cs *ring);
-int intel_logical_rings_init(struct drm_device *dev);
-void intel_lr_context_free(struct intel_context *ctx);
-int intel_lr_context_deferred_create(struct intel_context *ctx,
-				     struct intel_engine_cs *ring);
-
 /* i915_gem_render_state.c */
 int i915_gem_render_state_init(struct intel_engine_cs *ring);
 /* i915_gem_evict.c */
diff --git a/drivers/gpu/drm/i915/intel_lrc.h b/drivers/gpu/drm/i915/intel_lrc.h
new file mode 100644
index 0000000..26b0949
--- /dev/null
+++ b/drivers/gpu/drm/i915/intel_lrc.h
@@ -0,0 +1,16 @@
+#ifndef _INTEL_LRC_H_
+#define _INTEL_LRC_H_
+
+/* Logical Rings */
+void intel_logical_ring_cleanup(struct intel_engine_cs *ring);
+int intel_logical_rings_init(struct drm_device *dev);
+
+/* Logical Ring Contexts */
+void intel_lr_context_free(struct intel_context *ctx);
+int intel_lr_context_deferred_create(struct intel_context *ctx,
+				     struct intel_engine_cs *ring);
+
+/* Execlists */
+bool intel_enable_execlists(struct drm_device *dev);
+
+#endif /* _INTEL_LRC_H_ */
-- 
1.9.0




More information about the Intel-gfx mailing list