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

// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/*
 * Copyright (c) 2016 BayLibre, SAS.
 * Author: Neil Armstrong <[email protected]>
 * Copyright (C) 2014 Amlogic, Inc.
 */
#include <linux/err.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/hw_random.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/of.h>
#include <linux/clk.h>
#include <linux/iopoll.h>

#define RNG_DATA
#define RNG_S4_DATA
#define RNG_S4_CFG

#define RUN_BIT
#define SEED_READY_STS_BIT

struct meson_rng_priv {};

struct meson_rng_data {};

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

static int meson_rng_wait_status(void __iomem *cfg_addr, int bit)
{}

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

static int meson_rng_probe(struct platform_device *pdev)
{}

static const struct meson_rng_priv meson_rng_priv =;

static const struct meson_rng_priv meson_rng_priv_s4 =;

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

static struct platform_driver meson_rng_driver =;

module_platform_driver();

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