From 0294e5b0283f5ee75f95b641de9f0789ab6663a3 Mon Sep 17 00:00:00 2001 From: Luc Verhaegen Date: Tue, 30 Oct 2012 16:46:50 +0100 Subject: [PATCH] video:sunxi:disp: add version ioctl * introduce some version macros to the ioctl header. * introduce a new versioning ioctl. * pr_info the version on load. * verbosely warn when user application is not using the version ioctl before doing anything else with /dev/disp * verbosely warn about the bumpy road ahead, and point to the wiki when doing so. Signed-off-by: Luc Verhaegen --- Documentation/sunxi/disp/version.c | 67 +++++++++++++++++++++++ drivers/video/sunxi/disp/dev_disp.c | 85 +++++++++++++++++++++++++++-- include/video/sunxi_disp_ioctl.h | 10 +++- 3 files changed, 155 insertions(+), 7 deletions(-) create mode 100644 Documentation/sunxi/disp/version.c diff --git a/Documentation/sunxi/disp/version.c b/Documentation/sunxi/disp/version.c new file mode 100644 index 00000000000000..8524dd946950a9 --- /dev/null +++ b/Documentation/sunxi/disp/version.c @@ -0,0 +1,67 @@ +/* + * Simple example to ease users of /dev/disp into using the new but mandatory + * versioning handshake ioctl. No license or copyright claims made. + * + * Use + * gcc -Wall -I../../../include -o disp_version version.c + * to compile this. + * + * Author: Luc Verhaegen + */ + +#include +#include +#include +#include +#include +#include + +#include