#include <linux/debugfs.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/pci.h>
#include "cxlmem.h"
#include "cxlpci.h"
static void enable_suspend(void *data)
{ … }
static void remove_debugfs(void *dentry)
{ … }
static int cxl_mem_dpa_show(struct seq_file *file, void *data)
{ … }
static int devm_cxl_add_endpoint(struct device *host, struct cxl_memdev *cxlmd,
struct cxl_dport *parent_dport)
{ … }
static int cxl_debugfs_poison_inject(void *data, u64 dpa)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static int cxl_debugfs_poison_clear(void *data, u64 dpa)
{ … }
DEFINE_DEBUGFS_ATTRIBUTE(…);
static int cxl_mem_probe(struct device *dev)
{ … }
static ssize_t trigger_poison_list_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t len)
{ … }
static DEVICE_ATTR_WO(trigger_poison_list);
static umode_t cxl_mem_visible(struct kobject *kobj, struct attribute *a, int n)
{ … }
static struct attribute *cxl_mem_attrs[] = …;
static struct attribute_group cxl_mem_group = …;
__ATTRIBUTE_GROUPS(…);
static struct cxl_driver cxl_mem_driver = …;
module_cxl_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);
MODULE_ALIAS_CXL(…);
MODULE_SOFTDEP(…) …;