hwrng: Add QRNG driver snapshot for kona

This is a snapshot of the qrng driver as of msm-4.19
commit e74173d56eb2c869 ("hwrng: Add QRNG driver
snapshot for kona") with changes to comply with
msm-5.4 format requirement.

Change-Id: I930b0dfd70db8b2c1ffcb98965aabe45bffbd0ba
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
This commit is contained in:
Zhen Kong 2019-02-20 11:58:58 -08:00
commit a064eb98a7
4 changed files with 512 additions and 0 deletions

13
include/uapi/linux/qrng.h Normal file
View file

@ -0,0 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
#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_ */