#include <linux/acpi.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/sched.h>
#include <linux/suspend.h>
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#define CREATE_TRACE_POINTS
#include <trace/events/intel_ish.h>
#include "ishtp-dev.h"
#include "hw-ish.h"
enum ishtp_driver_data_index { … };
#define ISH_FW_FILENAME_LNL_M …
static struct ishtp_driver_data ishtp_driver_data[] = …;
static const struct pci_device_id ish_pci_tbl[] = …;
MODULE_DEVICE_TABLE(pci, ish_pci_tbl);
static __printf(2, 3)
void ish_event_tracer(struct ishtp_device *dev, const char *format, ...)
{ … }
static int ish_init(struct ishtp_device *dev)
{ … }
static const struct pci_device_id ish_invalid_pci_ids[] = …;
static inline bool ish_should_enter_d0i3(struct pci_dev *pdev)
{ … }
static inline bool ish_should_leave_d0i3(struct pci_dev *pdev)
{ … }
static int ish_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{ … }
static void ish_remove(struct pci_dev *pdev)
{ … }
static void ish_shutdown(struct pci_dev *pdev)
{ … }
static struct device __maybe_unused *ish_resume_device;
#define WAIT_FOR_RESUME_ACK_MS …
static void __maybe_unused ish_resume_handler(struct work_struct *work)
{ … }
static int __maybe_unused ish_suspend(struct device *device)
{ … }
static __maybe_unused DECLARE_WORK(resume_work, ish_resume_handler);
static int __maybe_unused ish_resume(struct device *device)
{ … }
static SIMPLE_DEV_PM_OPS(ish_pm_ops, ish_suspend, ish_resume);
static struct pci_driver ish_driver = …;
module_pci_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_FIRMWARE(…);