#include <linux/fpga-dfl.h>
#include <linux/uaccess.h>
#include "dfl.h"
#include "dfl-fme.h"
#define FME_ERROR_MASK …
#define FME_ERROR …
#define MBP_ERROR …
#define PCIE0_ERROR_MASK …
#define PCIE0_ERROR …
#define PCIE1_ERROR_MASK …
#define PCIE1_ERROR …
#define FME_FIRST_ERROR …
#define FME_NEXT_ERROR …
#define RAS_NONFAT_ERROR_MASK …
#define RAS_NONFAT_ERROR …
#define RAS_CATFAT_ERROR_MASK …
#define RAS_CATFAT_ERROR …
#define RAS_ERROR_INJECT …
#define INJECT_ERROR_MASK …
#define ERROR_MASK …
static ssize_t pcie0_errors_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t pcie0_errors_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(pcie0_errors);
static ssize_t pcie1_errors_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t pcie1_errors_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(pcie1_errors);
static ssize_t nonfatal_errors_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(nonfatal_errors);
static ssize_t catfatal_errors_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(catfatal_errors);
static ssize_t inject_errors_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t inject_errors_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(inject_errors);
static ssize_t fme_errors_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static ssize_t fme_errors_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(fme_errors);
static ssize_t first_error_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(first_error);
static ssize_t next_error_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(next_error);
static struct attribute *fme_global_err_attrs[] = …;
static umode_t fme_global_err_attrs_visible(struct kobject *kobj,
struct attribute *attr, int n)
{ … }
const struct attribute_group fme_global_err_group = …;
static void fme_err_mask(struct device *dev, bool mask)
{ … }
static int fme_global_err_init(struct platform_device *pdev,
struct dfl_feature *feature)
{ … }
static void fme_global_err_uinit(struct platform_device *pdev,
struct dfl_feature *feature)
{ … }
static long
fme_global_error_ioctl(struct platform_device *pdev,
struct dfl_feature *feature,
unsigned int cmd, unsigned long arg)
{ … }
const struct dfl_feature_id fme_global_err_id_table[] = …;
const struct dfl_feature_ops fme_global_err_ops = …;