summaryrefslogtreecommitdiff
path: root/v4l2-mfc-example/drm.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-mfc-example/drm.h')
-rw-r--r--v4l2-mfc-example/drm.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/v4l2-mfc-example/drm.h b/v4l2-mfc-example/drm.h
index 1cd31e4..ab2e4f0 100644
--- a/v4l2-mfc-example/drm.h
+++ b/v4l2-mfc-example/drm.h
@@ -4,7 +4,7 @@
*
* DRM operations header file
*
- * Copyright 2014 Samsung Electronics Co., Ltd.
+ * Copyright 2014 - 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,10 +26,22 @@
#ifdef DRM
/* Open and mmap DRM buffer. Also read its properties */
-int drm_open(struct instance *i, char *name);
+int drm_open(struct instance *i);
/* Unmap and close the buffer */
void drm_close(struct instance *i);
+struct connector {
+ uint32_t id;
+ char mode_str[64];
+ drmModeModeInfo *mode;
+ drmModeEncoder *encoder;
+ int crtc;
+ unsigned int fb_id[2], current_fb_id;
+ struct timeval start;
+
+ int swap_count;
+};
+
#endif /* DRM */
#endif /* INCLUDE_DRM_H */