summaryrefslogtreecommitdiffstats
path: root/include/drm/i915_drm.h
diff options
context:
space:
mode:
authorRamalingam C <ramalingam.c@intel.com>2019-02-15 09:34:57 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2019-02-15 18:56:35 +0100
commit8605a1366015afb0ec7dd486262d0b4088e3c75f (patch)
treee67807b877219c0b0bf35d526c6fad45602795e6 /include/drm/i915_drm.h
parenti915/snd_hdac: I915 subcomponent for the snd_hdac (diff)
downloadlinux-8605a1366015afb0ec7dd486262d0b4088e3c75f.tar.xz
linux-8605a1366015afb0ec7dd486262d0b4088e3c75f.zip
drm/i915: enum port definition is moved into i915_drm.h
For the reusability of the enum port in other driver modules (like mei_hdcp), enum port definition is moved from I915 local header intel_display.h to drm/i915_drm.h Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> [danvet: Fix subject prefix.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/1550219730-17734-3-git-send-email-ramalingam.c@intel.com
Diffstat (limited to 'include/drm/i915_drm.h')
-rw-r--r--include/drm/i915_drm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index c44703f471b3..7523e9a7b6e2 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -100,4 +100,19 @@ extern struct resource intel_graphics_stolen_res;
#define INTEL_GEN11_BSM_DW1 0xc4
#define INTEL_BSM_MASK (-(1u << 20))
+enum port {
+ PORT_NONE = -1,
+
+ PORT_A = 0,
+ PORT_B,
+ PORT_C,
+ PORT_D,
+ PORT_E,
+ PORT_F,
+
+ I915_MAX_PORTS
+};
+
+#define port_name(p) ((p) + 'A')
+
#endif /* _I915_DRM_H_ */