summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2015-04-28 20:56:52 -0400
committerTao Huang <huangtao@rock-chips.com>2018-08-15 17:28:40 +0800
commit244b82e20e9b2cb06e3acde16d5a185fb4171d59 (patch)
tree4ca069f68a5c237c6ee60a8aa745a99533a029f1 /include/uapi
parent6b1bb8ae1e94c1161f88a9a00e30b1fab903e4ee (diff)
FROMLIST: drm: Add Content Protection properties to drm
Add new standard connector properties to track whether content protection (ex: hdcp) is desired by userspace. There are two properties involved, "Content Protection" and "Content Protection KSV". The "Content Protection" property allows userspace to request protection on a connector. Set "Desired" to enable, "Undesired" to disable. The "Content Protection KSV" property reflects the current state of protection. If the KSV is 0, the connection is not protected. Once the driver has enabled protection, it will update the the value with the KSV (or similarly unique identifier, if not using HDCP) of the first-hop device (sink or repeater). (am from https://patchwork.kernel.org/patch/5439871/) BUG=chrome-os-partner:56883 TEST=Tested on kevin, ensured the sysfs file showed up, and reflected the correct Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Yakir Yang <ykk@rock-chips.com> Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Reviewed-on: https://chromium-review.googlesource.com/403973 Reviewed-by: Sean Paul <seanpaul@google.com> Change-Id: I6bef13729f77de6e37d2da5e12fc69f810a2e286 Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/drm_mode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h
index 68ca0e734ea1..d3366250a60a 100644
--- a/include/uapi/drm/drm_mode.h
+++ b/include/uapi/drm/drm_mode.h
@@ -95,6 +95,10 @@
#define DRM_MODE_DPMS_SUSPEND 2
#define DRM_MODE_DPMS_OFF 3
+/* Content Protection Flags */
+#define DRM_MODE_CONTENT_PROTECTION_UNDESIRED 0
+#define DRM_MODE_CONTENT_PROTECTION_DESIRED 1
+
/* Scaling mode options */
#define DRM_MODE_SCALE_NONE 0 /* Unmodified timing (display or
software can still scale) */