drm/i915: Only include i915_reg.h from .c files
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 27 Jan 2022 23:43:34 +0000 (15:43 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 2 Feb 2022 15:59:54 +0000 (07:59 -0800)
Several of our i915 header files, have been including i915_reg.h.  This
means that any change to i915_reg.h will trigger a full rebuild of
pretty much every file of the driver, even those that don't have any
kind of register access.  Let's delete the i915_reg.h include from all
headers and add an explicit include from the .c files that truly
need the register definitions; those that need a definition of
i915_reg_t for a function definition can get it from i915_reg_defs.h
instead.

We also remove two non-register #define's (VLV_DISPLAY_BASE and
GEN12_SFC_DONE_MAX) into i915_reg_defs.h to allow us to drop the
i915_reg.h include from a couple of headers.

There's probably a lot more header dependency optimization possible, but
the changes here roughly cut the number of files compiled after 'touch
i915_reg.h' in half --- a good first step.

Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220127234334.4016964-7-matthew.d.roper@intel.com
56 files changed:
drivers/gpu/drm/i915/display/g4x_hdmi.h
drivers/gpu/drm/i915/display/intel_atomic.c
drivers/gpu/drm/i915/display/intel_bios.c
drivers/gpu/drm/i915/display/intel_bw.c
drivers/gpu/drm/i915/display/intel_crt.h
drivers/gpu/drm/i915/display/intel_ddi.h
drivers/gpu/drm/i915/display/intel_de.h
drivers/gpu/drm/i915/display/intel_display_power.h
drivers/gpu/drm/i915/display/intel_dmc.h
drivers/gpu/drm/i915/display/intel_dp.h
drivers/gpu/drm/i915/display/intel_dsb.h
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
drivers/gpu/drm/i915/display/intel_dvo_dev.h
drivers/gpu/drm/i915/display/intel_hdmi.h
drivers/gpu/drm/i915/display/intel_lvds.h
drivers/gpu/drm/i915/display/intel_sdvo.h
drivers/gpu/drm/i915/display/intel_tc.c
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
drivers/gpu/drm/i915/gem/i915_gem_tiling.c
drivers/gpu/drm/i915/gt/gen2_engine_cs.c
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c
drivers/gpu/drm/i915/gt/intel_gt_clock_utils.c
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c
drivers/gpu/drm/i915/gt/intel_llc.c
drivers/gpu/drm/i915/gt/intel_rc6.c
drivers/gpu/drm/i915/gt/intel_rc6.h
drivers/gpu/drm/i915/gt/intel_region_lmem.c
drivers/gpu/drm/i915/gt/intel_workarounds_types.h
drivers/gpu/drm/i915/gt/uc/abi/guc_actions_slpc_abi.h
drivers/gpu/drm/i915/gt/uc/intel_guc_reg.h
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
drivers/gpu/drm/i915/gt/uc/intel_huc.h
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
drivers/gpu/drm/i915/gvt/aperture_gm.c
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/dmabuf.c
drivers/gpu/drm/i915/gvt/edid.c
drivers/gpu/drm/i915/gvt/fb_decoder.c
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/gvt/interrupt.c
drivers/gpu/drm/i915/gvt/interrupt.h
drivers/gpu/drm/i915/gvt/mmio.c
drivers/gpu/drm/i915/gvt/mmio_context.h
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/i915_perf_types.h
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/i915_reg_defs.h
drivers/gpu/drm/i915/intel_dram.c
drivers/gpu/drm/i915/intel_pcode.c
drivers/gpu/drm/i915/intel_pm.h
drivers/gpu/drm/i915/intel_sbi.c
drivers/gpu/drm/i915/intel_uncore.h
drivers/gpu/drm/i915/vlv_sideband.c

index 7aca14b602c6babc39b65bc7e53ed8ebbcad7c39..db9a93bc9321efedb320d8eb966e8281cadc4f9c 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <linux/types.h>
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 enum port;
 struct drm_i915_private;
index 1080741d15613a58dd9a2cd461914c9506f5a696..0939040651120e40428dbb0d3391280cf17df41e 100644 (file)
@@ -35,6 +35,7 @@
 #include <drm/drm_plane_helper.h>
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_atomic.h"
 #include "intel_cdclk.h"
 #include "intel_display_types.h"
index 60386298d7994df318e9261613dddde9a72fd032..3eb7777c6766d8347cbe5fef3d28009db2b5f276 100644 (file)
@@ -32,6 +32,7 @@
 #include "display/intel_gmbus.h"
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 
 #define _INTEL_BIOS_PRIVATE
 #include "intel_vbt_defs.h"
index c35bad21b657dd69943d8eb5c1fe5402df1d6bb3..5dce3cf0ed124dbec1defa2b125d1a0447df5c82 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <drm/drm_atomic_state_helper.h>
 
+#include "i915_reg.h"
 #include "intel_atomic.h"
 #include "intel_bw.h"
 #include "intel_cdclk.h"
index 6c5c44600cbdaacda4fb6d5795f3da4cdb4766c3..c6071efd93cefa4f0f91dd54c9599002234de080 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __INTEL_CRT_H__
 #define __INTEL_CRT_H__
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 enum pipe;
 struct drm_encoder;
index c2fea656291793804f1f0d509525cb3fb017551f..d39076facdced0e68af00fde7e4265310975ef26 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __INTEL_DDI_H__
 #define __INTEL_DDI_H__
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 struct drm_connector_state;
 struct drm_i915_private;
index 9d8c177aa228bff932089ea36d8466425657ffa3..9c104f65e4c88c35cb55478554a19ee9abb29b28 100644 (file)
@@ -7,7 +7,6 @@
 #define __INTEL_DE_H__
 
 #include "i915_drv.h"
-#include "i915_reg.h"
 #include "i915_trace.h"
 #include "intel_uncore.h"
 
index 686d18eaa24c878bef5b0e15968ec1f6d9bc2572..930be3a0f8ef95f07ad1e5379c38365cea07e556 100644 (file)
@@ -7,7 +7,6 @@
 #define __INTEL_DISPLAY_POWER_H__
 
 #include "intel_runtime_pm.h"
-#include "i915_reg.h"
 
 enum dpio_channel;
 enum dpio_phy;
index b20f3441ca606e4cd58cd59c4057f354ee3c901c..7c590309a3a9280ee6191c879a61b256919e8e5b 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __INTEL_DMC_H__
 #define __INTEL_DMC_H__
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 #include "intel_wakeref.h"
 #include <linux/workqueue.h>
 
index b64145a3869a9eb5d14edbc20721415f8eb32638..d457e17bdc57ed009dc432e62f0aec8fe7f6abeb 100644 (file)
@@ -8,8 +8,6 @@
 
 #include <linux/types.h>
 
-#include "i915_reg.h"
-
 enum intel_output_format;
 enum pipe;
 enum port;
index 654a11f24b8098f66f70d3f3fc190f0816b34d2d..6cb9c580cdcaf6dcdc43190e0656008a65b915bb 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <linux/types.h>
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 struct intel_crtc_state;
 struct i915_vma;
index da0bd056f3d3a8e442424153a2a4c89f2847b925..a85574c413e831f4824e3f5e46674edd80b9e517 100644 (file)
@@ -39,6 +39,7 @@
 #include <video/mipi_display.h>
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_display_types.h"
 #include "intel_dsi.h"
 #include "intel_dsi_vbt.h"
index 94a6ae1e029285bca5eb93cf31311dbd30aea8d2..d96c3cc46e50876c07982734a856cc6adfabd7f8 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <drm/drm_crtc.h>
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 struct intel_dvo_device {
        const char *name;
index b577c38fa90c746fb454755eb40d9ff6f8070bf7..b0804b862a898cfb320c9a429b898d50954dc4aa 100644 (file)
@@ -9,8 +9,6 @@
 #include <linux/hdmi.h>
 #include <linux/types.h>
 
-#include "i915_reg.h"
-
 struct drm_connector;
 struct drm_encoder;
 struct drm_i915_private;
index bc9c8b84ba2f3e07b8ef8309f06961285ec3e30e..9d3372dc503f397ca4453dcc32b658924f82e9e0 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <linux/types.h>
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 enum pipe;
 struct drm_i915_private;
index 72065e4360d519e56a742d9e2bd10f1a2d0d53a9..2868852c85f233009131ad2a93b52a22e132fb63 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <linux/types.h>
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 struct drm_i915_private;
 enum pipe;
index 3291124a99e5a8ad00fcff91eb7bd7b4b0fb6f56..feead08ddf8fffce5d125f4d9a7e944bc29f8b28 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_display.h"
 #include "intel_display_types.h"
 #include "intel_dp_mst.h"
index 7df50fd6cc7b9a31662ab52a4fdbb71a4f7632f5..4dfed34191c67e538583539c2c534aaba75a2ce3 100644 (file)
@@ -14,6 +14,7 @@
 #include "gem/i915_gem_region.h"
 #include "i915_drv.h"
 #include "i915_gem_stolen.h"
+#include "i915_reg.h"
 #include "i915_vgpu.h"
 
 /*
index cf324329703f8aede65c45c29ba7c907bf4f6d3b..0e0e4805161a80cfbe6506e29f4477b7868d28ed 100644 (file)
@@ -13,6 +13,7 @@
 #include "i915_gem_mman.h"
 #include "i915_gem_object.h"
 #include "i915_gem_tiling.h"
+#include "i915_reg.h"
 
 /**
  * DOC: buffer object tiling
index e0e8d228b31fce788687d87358c43bf2b959af85..1c82caf525c34664cb9f27d65efe4e097c7a6a34 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "gen2_engine_cs.h"
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_engine.h"
 #include "intel_engine_regs.h"
 #include "intel_gpu_commands.h"
index 08559ace0ada709b39784235a0e9862560726f7b..0e353d8c2bc8ac52eb5da67b61b6125fa1f8a0c0 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/seqlock.h>
 
 #include "i915_pmu.h"
-#include "i915_reg.h"
 #include "i915_request.h"
 #include "i915_selftest.h"
 #include "intel_engine_types.h"
index 3fd478912d7e53f86a4039611e1806c20837d5c0..95c9145232f5ab8bc09c3bf75b2424450d7abb0c 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "i915_scatterlist.h"
 #include "i915_pvinfo.h"
 #include "i915_vgpu.h"
index c7321c94b9566f5e6e21c3e07828919c22d3614d..0db822c3b7e50f3bb4282c7fafb067583dae55c9 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_gt.h"
 #include "intel_gt_clock_utils.h"
 #include "intel_gt_regs.h"
index 47ec4b2043e8998e683e902a1ab08a33a2ae6a98..4e448c13a64c879cdfce60063de106f406ddf382 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/seq_file.h>
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_gt.h"
 #include "intel_gt_clock_utils.h"
 #include "intel_gt_debugfs.h"
index 63f18830c61175ffc3133615ed364cb1dcd49e48..335c65758d6f58e4f99c87b94db407fbf7b8514f 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/cpufreq.h>
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_gt.h"
 #include "intel_llc.h"
 #include "intel_pcode.h"
index 5458e66063012032148e8a779febc011e1968653..6df359c534fe11aead71672a1858e95b81270db8 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/pm_runtime.h>
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "i915_vgpu.h"
 #include "intel_engine_regs.h"
 #include "intel_gt.h"
index e119ec4a0bcc9ac31d6849928abc04be7bf0e7db..b6fea71afc223cc2ab4f7cf5498a95fcb38ff898 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef INTEL_RC6_H
 #define INTEL_RC6_H
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 struct intel_engine_cs;
 struct intel_rc6;
index fde2dcb59809d6602fde5fd17b663783c1fcab8f..cb5a67c98f300d8c7ee31dd4650a1860b1b07699 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_memory_region.h"
 #include "intel_region_lmem.h"
 #include "intel_region_ttm.h"
index 1e873681795d55f40e0ad63ae63958419b356045..8a4b6de4e754854166167efbfff54b8cb03fa675 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <linux/types.h>
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 struct i915_wa {
        i915_reg_t      reg;
index 7a8d4bfc5f6a71bf8b4af03115b791cdde53c260..62cb4254a77af37b327f42cfbb48de286af8dddd 100644 (file)
@@ -7,7 +7,6 @@
 #define _GUC_ACTIONS_SLPC_ABI_H_
 
 #include <linux/types.h>
-#include "i915_reg.h"
 
 /**
  * DOC: SLPC SHARED DATA STRUCTURE
index b37fc2ffaef25e9797b9d690884ee1de85de7902..85846c5570c52189443d963fbe8315ac616470ba 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/compiler.h>
 #include <linux/types.h>
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 /* Definitions of GuC H/W registers, bits, etc */
 
index 57ae9ac9850506dc58510983de28bc4412272759..ddbea939b1dc3f9126ea771f294ef1403b2c40d3 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_guc_slpc.h"
 #include "gt/intel_gt.h"
 #include "gt/intel_gt_regs.h"
index ae8c8a6c8cc85994b65359dcecb41a0a5d36f6b2..73ec670800f2b55f6266370f5173dae17f546e93 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef _INTEL_HUC_H_
 #define _INTEL_HUC_H_
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 #include "intel_uc_fw.h"
 #include "intel_huc_fw.h"
 
index a5af05bde6f2be7577f9f44879b0c93de0faf8a4..dd588ecf048a32d68bcb28629b70c91817187474 100644 (file)
@@ -11,6 +11,7 @@
 #include "intel_uc_fw.h"
 #include "intel_uc_fw_abi.h"
 #include "i915_drv.h"
+#include "i915_reg.h"
 
 static inline struct intel_gt *
 ____uc_fw_to_gt(struct intel_uc_fw *uc_fw, enum intel_uc_fw_type type)
index 0d6d5987130821926002fbbf9d1f85bf43196788..6b3dedd321bb00a1e6c5995ea9ae3617df020a60 100644 (file)
@@ -35,6 +35,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "gt/intel_ggtt_fencing.h"
 #include "gvt.h"
 
index 3ce88dea525cdde49019359788cf8bb7340f5ac9..c7722c818b4d55a7e74364348d136548501288ab 100644 (file)
@@ -33,6 +33,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "gvt.h"
 
 static int get_edp_pipe(struct intel_vgpu *vgpu)
index ebe1ecd54ef87f481e0c32a7956e58da439479e2..d02a48a5335a6047265956b79e26dd94974e59a8 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/vfio.h>
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "gvt.h"
 
 #define GEN8_DECODE_PTE(pte) (pte & GENMASK_ULL(63, 12))
index 22247805c3457580544c2f55d3464f93291e75e4..a30ba2d7b7ba1ac64b2657d039fea1f5166f750f 100644 (file)
@@ -33,6 +33,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "gvt.h"
 
 #define GMBUS1_TOTAL_BYTES_SHIFT 16
index f2a216347d77d7fbce54340f0e7ca34bf6f2ee31..835c3fde8a202d1c05c692a8af484c76d981b745 100644 (file)
@@ -37,6 +37,7 @@
 #include "i915_drv.h"
 #include "gvt.h"
 #include "i915_pvinfo.h"
+#include "i915_reg.h"
 
 #define PRIMARY_FORMAT_NUM     16
 struct pixel_format {
index 02271b920843ad0c2303b7c6f877829fc6f301fa..c2ae79092b14fd9aa4ff3b7f273c74f3ee5e1413 100644 (file)
@@ -37,6 +37,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "gvt.h"
 #include "i915_pvinfo.h"
 #include "display/intel_display_types.h"
index 9ccc6b1ecc28f59b131529b9d15b2ece0173c67e..228f623d466d02e1d8c8722085904af0cbab968e 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "gvt.h"
 #include "trace.h"
 
index 0989e180ed544cbadb72bb27c1ede09d9edad9a2..b62f04ab47cb561b7b70aae8df2dce7060ed95b8 100644 (file)
@@ -35,7 +35,7 @@
 #include <linux/hrtimer.h>
 #include <linux/kernel.h>
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 enum intel_gvt_event_type {
        RCS_MI_USER_INTERRUPT = 0,
index 0215e1ea621d9e6108daf38379d3cef330f8c9ec..5db0ef83d52276ddc71bc5b267a23047d2b9ba90 100644 (file)
@@ -34,6 +34,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "gvt.h"
 
 #include "gt/intel_gt_regs.h"
index 128fd7f4d5091078db7f2bb250a252537dc9356f..9540813b88e5b0c96a57f23375243fad7e6f09d0 100644 (file)
@@ -41,7 +41,6 @@
 #include "gt/intel_engine_regs.h"
 #include "gt/intel_engine_types.h"
 #include "gt/intel_lrc_reg.h"
-#include "i915_reg.h"
 
 struct i915_request;
 struct intel_context;
index b394b3c3e073f2a32c2e53c5160cf8e5badedc32..aea4c30645ff99787120d5aff1b085bc62848043 100644 (file)
@@ -33,6 +33,7 @@
 #include "i915_cmd_parser.h"
 #include "i915_drv.h"
 #include "i915_memcpy.h"
+#include "i915_reg.h"
 
 /**
  * DOC: batch buffer command parser
index 512ba039a8f59b20bbde3c9b107d50a3869a3e73..f7bdb973c880dab04142591b25c227a4e6d9c33c 100644 (file)
@@ -61,7 +61,6 @@
 #include <drm/ttm/ttm_device.h>
 
 #include "i915_params.h"
-#include "i915_reg.h"
 #include "i915_utils.h"
 
 #include "display/intel_bios.h"
index 8261b6455747235714af386335a8afc3579b8c98..189d3bb8955a0ca3c6011d788371e934b5125092 100644 (file)
@@ -28,6 +28,7 @@
 #include "i915_driver.h"
 #include "i915_drv.h"
 #include "i915_pci.h"
+#include "i915_reg.h"
 
 #define PLATFORM(x) .platform = (x)
 #define GEN(x) \
index aa14354a51203e2c53f4bfff93c542a15119f856..473a3c0544bb8ff558ae629c5d1875571a746b4c 100644 (file)
@@ -18,7 +18,7 @@
 #include <uapi/drm/i915_drm.h>
 
 #include "gt/intel_sseu.h"
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 #include "intel_wakeref.h"
 
 struct drm_i915_private;
index 33aa005d59aa9684f851c60f5f44624c18a78901..081aad5beefaee685ca3f688c5b44cb641880ab8 100644 (file)
  *  #define GEN8_BAR                    _MMIO(0xb888)
  */
 
-#define VLV_DISPLAY_BASE               0x180000
 #define VLV_MIPI_BASE                  VLV_DISPLAY_BASE
 #define BXT_MIPI_BASE                  0x60000
 
 #define _MASKED_BIT_ENABLE(a)  ({ typeof(a) _a = (a); _MASKED_FIELD(_a, _a); })
 #define _MASKED_BIT_DISABLE(a) (_MASKED_FIELD((a), 0))
 
-#define GEN12_SFC_DONE_MAX             4
-
 #define GU_CNTL                                _MMIO(0x101010)
 #define   LMEM_INIT                    REG_BIT(7)
 
index 6ee51d4a233aaf3803e001aab0c40277f67f1eeb..34d37bbf08cdebf80634e64594d23cfe8740d89e 100644 (file)
@@ -94,4 +94,8 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
        return !i915_mmio_reg_equal(reg, INVALID_MMIO_REG);
 }
 
+#define VLV_DISPLAY_BASE               0x180000
+
+#define GEN12_SFC_DONE_MAX             4
+
 #endif /* __I915_REG_DEFS__ */
index 3e26ccabf7f9372c478c54a851794d67279fce93..723bd0411a0e7be007b0b781482c452ec155757a 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_dram.h"
 #include "intel_pcode.h"
 
index db4403f63cac78c34acd564d2c1e9e99526f67f7..391a37492ce59c5a6a5403343a753541bb1eb11b 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "i915_drv.h"
+#include "i915_reg.h"
 #include "intel_pcode.h"
 
 static int gen6_check_mailbox_status(u32 mbox)
index 990cdcaf85cec5d9c90c507bbc5d7dfdf2af82bc..ae821e35d5fca74a78e1b84e2a67b76123b60fcb 100644 (file)
@@ -12,7 +12,6 @@
 #include "display/intel_global_state.h"
 
 #include "i915_drv.h"
-#include "i915_reg.h"
 
 struct drm_device;
 struct drm_i915_private;
index 5ba8490a31e640bc12d46ca9619964dd9c0f5ded..5c6e517c73f499d706e734d23751b1846aaaab9d 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "i915_drv.h"
 #include "intel_sbi.h"
+#include "i915_reg.h"
 
 /* SBI access */
 static int intel_sbi_rw(struct drm_i915_private *i915, u16 reg,
index 2a15b2b2e2fcb9aae8e6c9d73c9fb74ffe579387..6ff56d673e2ba3fd27a42f84ee573f082ffd7017 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/hrtimer.h>
 #include <linux/io-64-nonatomic-lo-hi.h>
 
-#include "i915_reg.h"
+#include "i915_reg_defs.h"
 
 struct drm_i915_private;
 struct intel_runtime_pm;
index ed2ac5752ac4d146802bf49ddbc1ef63b21b5f07..c26001300ebd88f2377dda2df8e9158432add502 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "i915_drv.h"
 #include "i915_iosf_mbi.h"
+#include "i915_reg.h"
 #include "vlv_sideband.h"
 
 /*