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

/*
 * RNG driver for AMD RNGs
 *
 * Copyright 2005 (c) MontaVista Software, Inc.
 *
 * with the majority of the code coming from:
 *
 * Hardware driver for the Intel/AMD/VIA Random Number Generators (RNG)
 * (c) Copyright 2003 Red Hat Inc <[email protected]>
 *
 * derived from
 *
 * Hardware driver for the AMD 768 Random Number Generator (RNG)
 * (c) Copyright 2001 Red Hat Inc
 *
 * derived from
 *
 * Hardware driver for Intel i810 Random Number Generator (RNG)
 * Copyright 2000,2001 Jeff Garzik <[email protected]>
 * Copyright 2000,2001 Philipp Rumpf <[email protected]>
 *
 * This file is licensed under  the terms of the GNU General Public
 * License version 2. This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 */

#include <linux/delay.h>
#include <linux/hw_random.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>

#define DRV_NAME

#define RNGDATA
#define RNGDONE
#define PMBASE_OFFSET
#define PMBASE_SIZE

/*
 * Data for PCI driver interface
 *
 * This data only exists for exporting the supported
 * PCI ids via MODULE_DEVICE_TABLE.  We do not actually
 * register a pci_driver, because someone else might one day
 * want to register another driver on the same PCI id.
 */
static const struct pci_device_id pci_tbl[] =;
MODULE_DEVICE_TABLE(pci, pci_tbl);

struct amd768_priv {};

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

static int amd_rng_init(struct hwrng *rng)
{}

static void amd_rng_cleanup(struct hwrng *rng)
{}

static struct hwrng amd_rng =;

static int __init amd_rng_mod_init(void)
{}

static void __exit amd_rng_mod_exit(void)
{}

module_init();
module_exit(amd_rng_mod_exit);

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