linux/drivers/gpio/gpio-amd8111.c

// SPDX-License-Identifier: GPL-2.0
/*
 * GPIO driver for AMD 8111 south bridges
 *
 * Copyright (c) 2012 Dmitry Eremin-Solenikov
 *
 * Based on the AMD RNG driver:
 * 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]>
 */
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/gpio/driver.h>
#include <linux/pci.h>
#include <linux/spinlock.h>

#define PMBASE_OFFSET
#define PMBASE_SIZE

#define AMD_REG_GPIO(i)

#define AMD_GPIO_LTCH_STS
#define AMD_GPIO_RTIN
#define AMD_GPIO_DEBOUNCE
#define AMD_GPIO_MODE_MASK
#define AMD_GPIO_MODE_IN
#define AMD_GPIO_MODE_OUT
/* Enable alternative (e.g. clkout, IRQ, etc) function of the pin */
#define AMD_GPIO_MODE_ALTFN
#define AMD_GPIO_X_MASK
#define AMD_GPIO_X_IN_ACTIVEHI
#define AMD_GPIO_X_IN_LATCH
#define AMD_GPIO_X_OUT_LOW
#define AMD_GPIO_X_OUT_HI
#define AMD_GPIO_X_OUT_CLK0
#define AMD_GPIO_X_OUT_CLK1

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

static int amd_gpio_request(struct gpio_chip *chip, unsigned offset)
{}

static void amd_gpio_free(struct gpio_chip *chip, unsigned offset)
{}

static void amd_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
{}

static int amd_gpio_get(struct gpio_chip *chip, unsigned offset)
{}

static int amd_gpio_dirout(struct gpio_chip *chip, unsigned offset, int value)
{}

static int amd_gpio_dirin(struct gpio_chip *chip, unsigned offset)
{}

static struct amd_gpio gp =;

static int __init amd_gpio_init(void)
{}

static void __exit amd_gpio_exit(void)
{}

module_init();
module_exit(amd_gpio_exit);

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