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

// SPDX-License-Identifier: GPL-2.0
/*
 * Microchip PolarFire SoC (MPFS) hardware random driver
 *
 * Copyright (c) 2020-2022 Microchip Corporation. All rights reserved.
 *
 * Author: Conor Dooley <[email protected]>
 */

#include <linux/module.h>
#include <linux/hw_random.h>
#include <linux/platform_device.h>
#include <soc/microchip/mpfs.h>

#define CMD_OPCODE
#define CMD_DATA_SIZE
#define CMD_DATA
#define MBOX_OFFSET
#define RESP_OFFSET
#define RNG_RESP_BYTES

struct mpfs_rng {};

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

static int mpfs_rng_probe(struct platform_device *pdev)
{}

static struct platform_driver mpfs_rng_driver =;
module_platform_driver();

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