#include <linux/debugfs.h>
#include <linux/errno.h>
#include <linux/export.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/kstrtox.h>
#include <linux/types.h>
#include "adf_admin.h"
#include "adf_cfg.h"
#include "adf_common_drv.h"
#include "adf_heartbeat.h"
#include "adf_heartbeat_dbgfs.h"
#define HB_OK …
#define HB_ERROR …
#define HB_STATUS_MAX_STRLEN …
#define HB_STATS_MAX_STRLEN …
static ssize_t adf_hb_stats_read(struct file *file, char __user *user_buffer,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations adf_hb_stats_fops = …;
static ssize_t adf_hb_status_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations adf_hb_status_fops = …;
static ssize_t adf_hb_cfg_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t adf_hb_cfg_write(struct file *file, const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations adf_hb_cfg_fops = …;
static ssize_t adf_hb_error_inject_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations adf_hb_error_inject_fops = …;
void adf_heartbeat_dbgfs_add(struct adf_accel_dev *accel_dev)
{ … }
EXPORT_SYMBOL_GPL(…);
void adf_heartbeat_dbgfs_rm(struct adf_accel_dev *accel_dev)
{ … }
EXPORT_SYMBOL_GPL(…);