linux/drivers/soundwire/debugfs.c

// SPDX-License-Identifier: GPL-2.0-only
// Copyright(c) 2017-2019 Intel Corporation.

#include <linux/cleanup.h>
#include <linux/device.h>
#include <linux/debugfs.h>
#include <linux/firmware.h>
#include <linux/mod_devicetable.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <linux/soundwire/sdw.h>
#include <linux/soundwire/sdw_registers.h>
#include "bus.h"

static struct dentry *sdw_debugfs_root;

void sdw_bus_debugfs_init(struct sdw_bus *bus)
{}

void sdw_bus_debugfs_exit(struct sdw_bus *bus)
{}

#define RD_BUF

static ssize_t sdw_sprintf(struct sdw_slave *slave,
			   char *buf, size_t pos, unsigned int reg)
{}

static int sdw_slave_reg_show(struct seq_file *s_file, void *data)
{}
DEFINE_SHOW_ATTRIBUTE();

#define MAX_CMD_BYTES

static int cmd;
static u32 start_addr;
static size_t num_bytes;
static u8 read_buffer[MAX_CMD_BYTES];
static char *firmware_file;

static int set_command(void *data, u64 value)
{}
DEFINE_DEBUGFS_ATTRIBUTE();

static int set_start_address(void *data, u64 value)
{}
DEFINE_DEBUGFS_ATTRIBUTE();

static int set_num_bytes(void *data, u64 value)
{}
DEFINE_DEBUGFS_ATTRIBUTE();

static int cmd_go(void *data, u64 value)
{}
DEFINE_DEBUGFS_ATTRIBUTE();

#define MAX_LINE_LEN

static int read_buffer_show(struct seq_file *s_file, void *data)
{}
DEFINE_SHOW_ATTRIBUTE();

void sdw_slave_debugfs_init(struct sdw_slave *slave)
{}

void sdw_slave_debugfs_exit(struct sdw_slave *slave)
{}

void sdw_debugfs_init(void)
{}

void sdw_debugfs_exit(void)
{}