#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/mfd/core.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/alcor_pci.h>
#define DRV_NAME_ALCOR_PCI …
static DEFINE_IDA(alcor_pci_idr);
static struct mfd_cell alcor_pci_cells[] = …;
static const struct alcor_dev_cfg alcor_cfg = …;
static const struct alcor_dev_cfg au6621_cfg = …;
static const struct alcor_dev_cfg au6625_cfg = …;
static const struct pci_device_id pci_ids[] = …;
MODULE_DEVICE_TABLE(pci, pci_ids);
void alcor_write8(struct alcor_pci_priv *priv, u8 val, unsigned int addr)
{ … }
EXPORT_SYMBOL_GPL(…);
void alcor_write16(struct alcor_pci_priv *priv, u16 val, unsigned int addr)
{ … }
EXPORT_SYMBOL_GPL(…);
void alcor_write32(struct alcor_pci_priv *priv, u32 val, unsigned int addr)
{ … }
EXPORT_SYMBOL_GPL(…);
void alcor_write32be(struct alcor_pci_priv *priv, u32 val, unsigned int addr)
{ … }
EXPORT_SYMBOL_GPL(…);
u8 alcor_read8(struct alcor_pci_priv *priv, unsigned int addr)
{ … }
EXPORT_SYMBOL_GPL(…);
u32 alcor_read32(struct alcor_pci_priv *priv, unsigned int addr)
{ … }
EXPORT_SYMBOL_GPL(…);
u32 alcor_read32be(struct alcor_pci_priv *priv, unsigned int addr)
{ … }
EXPORT_SYMBOL_GPL(…);
static int alcor_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{ … }
static void alcor_pci_remove(struct pci_dev *pdev)
{ … }
#ifdef CONFIG_PM_SLEEP
static int alcor_suspend(struct device *dev)
{ … }
static int alcor_resume(struct device *dev)
{ … }
#endif
static SIMPLE_DEV_PM_OPS(alcor_pci_pm_ops, alcor_suspend, alcor_resume);
static struct pci_driver alcor_driver = …;
module_pci_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;