linux/drivers/char/hw_random/ingenic-rng.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Ingenic Random Number Generator driver
 * Copyright (c) 2017 PrasannaKumar Muralidharan <[email protected]>
 * Copyright (c) 2020 周琰杰 (Zhou Yanjie) <[email protected]>
 */

#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/hw_random.h>
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

/* RNG register offsets */
#define RNG_REG_ERNG_OFFSET
#define RNG_REG_RNG_OFFSET

/* bits within the ERND register */
#define ERNG_READY
#define ERNG_ENABLE

enum ingenic_rng_version {};

/* Device associated memory */
struct ingenic_rng {};

static int ingenic_rng_init(struct hwrng *rng)
{}

static void ingenic_rng_cleanup(struct hwrng *rng)
{}

static int ingenic_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
{}

static int ingenic_rng_probe(struct platform_device *pdev)
{}

static void ingenic_rng_remove(struct platform_device *pdev)
{}

static const struct of_device_id ingenic_rng_of_match[] =;
MODULE_DEVICE_TABLE(of, ingenic_rng_of_match);

static struct platform_driver ingenic_rng_driver =;

module_platform_driver();

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_DESCRIPTION();