drm/i915/dpio: move dpio_channel and dpio_phy enums to intel_dpio_phy.h
authorJani Nikula <jani.nikula@intel.com>
Wed, 2 Nov 2022 10:08:14 +0000 (12:08 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 3 Nov 2022 14:20:53 +0000 (16:20 +0200)
Reduce the size of intel_display.h by moving out the dpio_channel and
dpio_phy enums.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/7c3ee7a6482540a0267f7b2974d22cab8188707a.1667383630.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_display_power_well.h
drivers/gpu/drm/i915/display/intel_dpio_phy.h
drivers/gpu/drm/i915/gvt/display.c
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/gvt/mmio.c
drivers/gpu/drm/i915/intel_gvt_mmio_table.c
drivers/gpu/drm/i915/vlv_sideband.c

index 3cc85ef3b111dbb477cf7d6c74ec65633442d456..d9c8b8447f9e827b9b5900cb8bf6badc4ee9f955 100644 (file)
@@ -261,17 +261,6 @@ enum tc_port_mode {
        TC_PORT_LEGACY,
 };
 
-enum dpio_channel {
-       DPIO_CH0,
-       DPIO_CH1
-};
-
-enum dpio_phy {
-       DPIO_PHY0,
-       DPIO_PHY1,
-       DPIO_PHY2,
-};
-
 enum aux_ch {
        AUX_CH_A,
        AUX_CH_B,
index e13b521e322a99ee7693141f4cd5213d08e3500f..ba7cb977e7c7f7e51fdad42bb99a46b07ca009a8 100644 (file)
@@ -7,8 +7,8 @@
 
 #include <linux/types.h>
 
-#include "intel_display.h"
 #include "intel_display_power.h"
+#include "intel_dpio_phy.h"
 
 struct drm_i915_private;
 struct i915_power_well;
index 828ad58624d8561c1ba649d2cbb611f88208118e..9c7725dacb4706e0f5e8563cb57fdfa3d7fa4910 100644 (file)
@@ -8,8 +8,6 @@
 
 #include <linux/types.h>
 
-enum dpio_channel;
-enum dpio_phy;
 enum pipe;
 enum port;
 struct drm_i915_private;
@@ -17,6 +15,17 @@ struct intel_crtc_state;
 struct intel_digital_port;
 struct intel_encoder;
 
+enum dpio_channel {
+       DPIO_CH0,
+       DPIO_CH1,
+};
+
+enum dpio_phy {
+       DPIO_PHY0,
+       DPIO_PHY1,
+       DPIO_PHY2,
+};
+
 void bxt_port_to_phy_channel(struct drm_i915_private *dev_priv, enum port port,
                             enum dpio_phy *phy, enum dpio_channel *ch);
 void bxt_ddi_phy_set_signal_levels(struct intel_encoder *encoder,
index c7722c818b4d55a7e74364348d136548501288ab..c033249e73f4ec23330147e513c50c821b2c58d2 100644 (file)
@@ -36,6 +36,8 @@
 #include "i915_reg.h"
 #include "gvt.h"
 
+#include "display/intel_dpio_phy.h"
+
 static int get_edp_pipe(struct intel_vgpu *vgpu)
 {
        u32 data = vgpu_vreg(vgpu, _TRANS_DDI_FUNC_CTL_EDP);
index e7e33f95cc5159aa30390c6bd01e38d897b44c1f..a2439a009cad9cb83cc8958eb7ae96724ec3e3dc 100644 (file)
@@ -43,6 +43,7 @@
 #include "intel_mchbar_regs.h"
 #include "display/intel_display_types.h"
 #include "display/intel_dmc_regs.h"
+#include "display/intel_dpio_phy.h"
 #include "display/intel_fbc.h"
 #include "display/vlv_dsi_pll_regs.h"
 #include "gt/intel_gt_regs.h"
index 9acc00505fde1e3af499f4cc39786c512a2ec41b..5b5def6ddef7ae6041958bde1064183bc95ef0fd 100644 (file)
@@ -37,6 +37,7 @@
 #include "i915_reg.h"
 #include "gvt.h"
 
+#include "display/intel_dpio_phy.h"
 #include "gt/intel_gt_regs.h"
 
 /**
index e015bc91a26f6da28a135e64352466b7836af444..26f6418af2f7faf007e403f621c92e8c9a1d5e48 100644 (file)
@@ -6,6 +6,7 @@
 #include "display/intel_audio_regs.h"
 #include "display/intel_backlight_regs.h"
 #include "display/intel_dmc_regs.h"
+#include "display/intel_dpio_phy.h"
 #include "display/vlv_dsi_pll_regs.h"
 #include "gt/intel_gt_regs.h"
 #include "gvt/gvt.h"
index c26001300ebd88f2377dda2df8e9158432add502..6eea6e1a99c082e17825cbc80c914bab972085c6 100644 (file)
@@ -8,6 +8,8 @@
 #include "i915_reg.h"
 #include "vlv_sideband.h"
 
+#include "display/intel_dpio_phy.h"
+
 /*
  * IOSF sideband, see VLV2_SidebandMsg_HAS.docx and
  * VLV_VLV2_PUNIT_HAS_0.8.docx