#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#include <linux/pm_domain.h>
#include <linux/pm_runtime.h>
#include <linux/mei.h>
#include "mei_dev.h"
#include "hw-txe.h"
static const struct pci_device_id mei_txe_pci_tbl[] = …;
MODULE_DEVICE_TABLE(pci, mei_txe_pci_tbl);
#ifdef CONFIG_PM
static inline void mei_txe_set_pm_domain(struct mei_device *dev);
static inline void mei_txe_unset_pm_domain(struct mei_device *dev);
#else
static inline void mei_txe_set_pm_domain(struct mei_device *dev) {}
static inline void mei_txe_unset_pm_domain(struct mei_device *dev) {}
#endif
static int mei_txe_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{ … }
static void mei_txe_shutdown(struct pci_dev *pdev)
{ … }
static void mei_txe_remove(struct pci_dev *pdev)
{ … }
#ifdef CONFIG_PM_SLEEP
static int mei_txe_pci_suspend(struct device *device)
{ … }
static int mei_txe_pci_resume(struct device *device)
{ … }
#endif
#ifdef CONFIG_PM
static int mei_txe_pm_runtime_idle(struct device *device)
{ … }
static int mei_txe_pm_runtime_suspend(struct device *device)
{ … }
static int mei_txe_pm_runtime_resume(struct device *device)
{ … }
static inline void mei_txe_set_pm_domain(struct mei_device *dev)
{ … }
static inline void mei_txe_unset_pm_domain(struct mei_device *dev)
{ … }
static const struct dev_pm_ops mei_txe_pm_ops = …;
#define MEI_TXE_PM_OPS …
#else
#define MEI_TXE_PM_OPS …
#endif
static struct pci_driver mei_txe_driver = …;
module_pci_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;