linux/drivers/fpga/dfl-afu-error.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Driver for FPGA Accelerated Function Unit (AFU) Error Reporting
 *
 * Copyright 2019 Intel Corporation, Inc.
 *
 * Authors:
 *   Wu Hao <[email protected]>
 *   Xiao Guangrong <[email protected]>
 *   Joseph Grecco <[email protected]>
 *   Enno Luebbers <[email protected]>
 *   Tim Whisonant <[email protected]>
 *   Ananda Ravuri <[email protected]>
 *   Mitchel Henry <[email protected]>
 */

#include <linux/fpga-dfl.h>
#include <linux/uaccess.h>

#include "dfl-afu.h"

#define PORT_ERROR_MASK
#define PORT_ERROR
#define PORT_FIRST_ERROR
#define PORT_MALFORMED_REQ0
#define PORT_MALFORMED_REQ1

#define ERROR_MASK

/* mask or unmask port errors by the error mask register. */
static void __afu_port_err_mask(struct device *dev, bool mask)
{}

static void afu_port_err_mask(struct device *dev, bool mask)
{}

/* clear port errors. */
static int afu_port_err_clear(struct device *dev, u64 err)
{}

static ssize_t errors_show(struct device *dev, struct device_attribute *attr,
			   char *buf)
{}

static ssize_t errors_store(struct device *dev, struct device_attribute *attr,
			    const char *buff, size_t count)
{}
static DEVICE_ATTR_RW(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 first_malformed_req_show(struct device *dev,
					struct device_attribute *attr,
					char *buf)
{}
static DEVICE_ATTR_RO(first_malformed_req);

static struct attribute *port_err_attrs[] =;

static umode_t port_err_attrs_visible(struct kobject *kobj,
				      struct attribute *attr, int n)
{}

const struct attribute_group port_err_group =;

static int port_err_init(struct platform_device *pdev,
			 struct dfl_feature *feature)
{}

static void port_err_uinit(struct platform_device *pdev,
			   struct dfl_feature *feature)
{}

static long
port_err_ioctl(struct platform_device *pdev, struct dfl_feature *feature,
	       unsigned int cmd, unsigned long arg)
{}

const struct dfl_feature_id port_err_id_table[] =;

const struct dfl_feature_ops port_err_ops =;