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

/*
 * RNG driver for AMD Geode 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 PFX

#define GEODE_RNG_DATA_REG
#define GEODE_RNG_STATUS_REG

/*
 * 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 amd_geode_priv {};

static int geode_rng_data_read(struct hwrng *rng, u32 *data)
{}

static int geode_rng_data_present(struct hwrng *rng, int wait)
{}


static struct hwrng geode_rng =;


static int __init geode_rng_init(void)
{}

static void __exit geode_rng_exit(void)
{}

module_init();
module_exit(geode_rng_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();