#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include "cdns2-gadget.h"
#define PCI_DRIVER_NAME …
#define CDNS_VENDOR_ID …
#define CDNS_DEVICE_ID …
#define PCI_BAR_DEV …
#define PCI_DEV_FN_DEVICE …
static int cdns2_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{ … }
static void cdns2_pci_remove(struct pci_dev *pdev)
{ … }
static int cdns2_pci_suspend(struct device *dev)
{ … }
static int cdns2_pci_resume(struct device *dev)
{ … }
static const struct dev_pm_ops cdns2_pci_pm_ops = …;
static const struct pci_device_id cdns2_pci_ids[] = …;
static struct pci_driver cdns2_pci_driver = …;
module_pci_driver(…) …;
MODULE_DEVICE_TABLE(pci, cdns2_pci_ids);
MODULE_ALIAS(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;