#include <linux/pci.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>
#include <linux/module.h>
#include "spi-dw.h"
#define DRIVER_NAME …
#define MRST_SPI_CLK_BASE …
#define MRST_CLK_SPI_REG …
#define CLK_SPI_BDIV_OFFSET …
#define CLK_SPI_BDIV_MASK …
#define CLK_SPI_CDIV_OFFSET …
#define CLK_SPI_CDIV_MASK …
#define CLK_SPI_DISABLE_OFFSET …
struct dw_spi_pci_desc { … };
static int dw_spi_pci_mid_init(struct dw_spi *dws)
{ … }
static int dw_spi_pci_generic_init(struct dw_spi *dws)
{ … }
static struct dw_spi_pci_desc dw_spi_pci_mid_desc_1 = …;
static struct dw_spi_pci_desc dw_spi_pci_mid_desc_2 = …;
static struct dw_spi_pci_desc dw_spi_pci_ehl_desc = …;
static int dw_spi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{ … }
static void dw_spi_pci_remove(struct pci_dev *pdev)
{ … }
#ifdef CONFIG_PM_SLEEP
static int dw_spi_pci_suspend(struct device *dev)
{ … }
static int dw_spi_pci_resume(struct device *dev)
{ … }
#endif
static SIMPLE_DEV_PM_OPS(dw_spi_pci_pm_ops, dw_spi_pci_suspend, dw_spi_pci_resume);
static const struct pci_device_id dw_spi_pci_ids[] = …;
MODULE_DEVICE_TABLE(pci, dw_spi_pci_ids);
static struct pci_driver dw_spi_pci_driver = …;
module_pci_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);