#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/hw_random.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#define TRNG_CR …
#define TRNG_MR …
#define TRNG_ISR …
#define TRNG_ISR_DATRDY …
#define TRNG_ODATA …
#define TRNG_KEY …
#define TRNG_HALFR …
struct atmel_trng_data { … };
struct atmel_trng { … };
static bool atmel_trng_wait_ready(struct atmel_trng *trng, bool wait)
{ … }
static int atmel_trng_read(struct hwrng *rng, void *buf, size_t max,
bool wait)
{ … }
static int atmel_trng_init(struct atmel_trng *trng)
{ … }
static void atmel_trng_cleanup(struct atmel_trng *trng)
{ … }
static int atmel_trng_probe(struct platform_device *pdev)
{ … }
static void atmel_trng_remove(struct platform_device *pdev)
{ … }
static int __maybe_unused atmel_trng_runtime_suspend(struct device *dev)
{ … }
static int __maybe_unused atmel_trng_runtime_resume(struct device *dev)
{ … }
static const struct dev_pm_ops __maybe_unused atmel_trng_pm_ops = …;
static const struct atmel_trng_data at91sam9g45_config = …;
static const struct atmel_trng_data sam9x60_config = …;
static const struct of_device_id atmel_trng_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, atmel_trng_dt_ids);
static struct platform_driver atmel_trng_driver = …;
module_platform_driver(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;