summaryrefslogtreecommitdiff
path: root/include/uapi/linux/qrng.h
diff options
context:
space:
mode:
authorZhen Kong <zkong@codeaurora.org>2016-02-24 17:24:06 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:58:34 -0700
commitdf53b6783a275a59bfe38f721970ed55b191645e (patch)
treeb2222a2aebf8650ee61f756210653853fd8461df /include/uapi/linux/qrng.h
parent960dbb1751f3c266daf79466b35dc3c95bf09990 (diff)
hw_random: add snapshot of msm_rng driver
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of kernel.lnx.3.18-151201.) Acked-by: Shabnam Aboughadareh <shabnama@qti.qualcomm.com> Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Diffstat (limited to 'include/uapi/linux/qrng.h')
-rw-r--r--include/uapi/linux/qrng.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/uapi/linux/qrng.h b/include/uapi/linux/qrng.h
new file mode 100644
index 000000000000..5efe16d0ccfc
--- /dev/null
+++ b/include/uapi/linux/qrng.h
@@ -0,0 +1,12 @@
+#ifndef _UAPI_QRNG_H_
+#define _UAPI_QRNG_H_
+
+#include <linux/types.h>
+#include <linux/ioctl.h>
+
+#define QRNG_IOC_MAGIC 0x100
+
+#define QRNG_IOCTL_RESET_BUS_BANDWIDTH\
+ _IO(QRNG_IOC_MAGIC, 1)
+
+#endif /* _UAPI_QRNG_H_ */