summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorYogish Kulkarni <yogishk@nvidia.com>2019-12-20 02:25:44 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2019-12-23 18:38:41 -0500
commitcda3f78dc40d0f21b1108a4087b6198fb53bde02 (patch)
tree24e702ff136a1212c6b4413dc438b425c2041203 /include/uapi
parenta05d634d4fcf34797d9cc3234e8f1425a163e965 (diff)
tegra_udrm: add SEND_CONNECTOR_STATUS_EVENT ioctl
Add DRM_TEGRA_UDRM_SEND_CONNECTOR_STATUS_EVENT ioctl to generate a uevent for connector status property change. user space calls this ioctl with connector id and property id related to the status change. Bug 200577678 Change-Id: I079a7ebbc2c11ad6e6c7003df6eab57817161e26 Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2266101 GVS: Gerrit_Virtual_Submit Reviewed-by: Sai Kiran K <skirank@nvidia.com> Tested-by: Sai Kiran K <skirank@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/tegra_udrm.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/uapi/drm/tegra_udrm.h b/include/uapi/drm/tegra_udrm.h
index 9ef02ffb7..2930bdfed 100644
--- a/include/uapi/drm/tegra_udrm.h
+++ b/include/uapi/drm/tegra_udrm.h
@@ -29,6 +29,7 @@ extern "C" {
29#define DRM_TEGRA_UDRM_SEND_VBLANK_EVENT 0x03 29#define DRM_TEGRA_UDRM_SEND_VBLANK_EVENT 0x03
30#define DRM_TEGRA_UDRM_DROP_MASTER_NOTIFY 0x04 30#define DRM_TEGRA_UDRM_DROP_MASTER_NOTIFY 0x04
31#define DRM_TEGRA_UDRM_SET_MASTER_NOTIFY 0x05 31#define DRM_TEGRA_UDRM_SET_MASTER_NOTIFY 0x05
32#define DRM_TEGRA_UDRM_SEND_CONNECTOR_STATUS_EVENT 0x06
32 33
33struct drm_tegra_udrm_dmabuf_mmap { 34struct drm_tegra_udrm_dmabuf_mmap {
34 int fd; 35 int fd;
@@ -58,6 +59,11 @@ struct drm_tegra_udrm_set_master_notify {
58 int clear; 59 int clear;
59}; 60};
60 61
62struct drm_tegra_udrm_connector_status_event {
63 uint32_t conn_id;
64 uint32_t prop_id;
65};
66
61#define TEGRA_UDRM_IOCTL(dir, name, str) \ 67#define TEGRA_UDRM_IOCTL(dir, name, str) \
62 DRM_##dir(DRM_COMMAND_BASE + DRM_TEGRA_UDRM_##name, \ 68 DRM_##dir(DRM_COMMAND_BASE + DRM_TEGRA_UDRM_##name, \
63 struct drm_tegra_udrm_##str) 69 struct drm_tegra_udrm_##str)
@@ -121,6 +127,17 @@ struct drm_tegra_udrm_set_master_notify {
121#define DRM_IOCTL_TEGRA_UDRM_SET_MASTER_NOTIFY \ 127#define DRM_IOCTL_TEGRA_UDRM_SET_MASTER_NOTIFY \
122 TEGRA_UDRM_IOCTL(IOW, SET_MASTER_NOTIFY, set_master_notify) 128 TEGRA_UDRM_IOCTL(IOW, SET_MASTER_NOTIFY, set_master_notify)
123 129
130/* UMD issues this ioctl to generate a uevent for connector status
131 * property change.
132 *
133 * In parameters -
134 * conn_id: connector id related to the status change.
135 * prop_id: property id related to the status change.
136 */
137#define DRM_IOCTL_TEGRA_UDRM_SEND_CONNECTOR_STATUS_EVENT \
138 TEGRA_UDRM_IOCTL(IOW, SEND_CONNECTOR_STATUS_EVENT, \
139 connector_status_event)
140
124#if defined(__cplusplus) 141#if defined(__cplusplus)
125} 142}
126#endif 143#endif