linux/drivers/crypto/ccp/ccp-debugfs.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * AMD Cryptographic Coprocessor (CCP) driver
 *
 * Copyright (C) 2017 Advanced Micro Devices, Inc.
 *
 * Author: Gary R Hook <[email protected]>
 */

#include <linux/debugfs.h>
#include <linux/ccp.h>

#include "ccp-dev.h"

/* DebugFS helpers */
#define OBUFP
#define OBUFLEN
#define OBUFSPC
#define OSCNPRINTF(fmt, ...)

#define BUFLEN

#define RI_VERSION_NUM
#define RI_AES_PRESENT
#define RI_3DES_PRESENT
#define RI_SHA_PRESENT
#define RI_RSA_PRESENT
#define RI_ECC_PRESENT
#define RI_ZDE_PRESENT
#define RI_ZCE_PRESENT
#define RI_TRNG_PRESENT
#define RI_ELFC_PRESENT
#define RI_ELFC_SHIFT
#define RI_NUM_VQM
#define RI_NVQM_SHIFT
#define RI_NVQM(r)
#define RI_LSB_ENTRIES
#define RI_NLSB_SHIFT
#define RI_NLSB(r)

static ssize_t ccp5_debugfs_info_read(struct file *filp, char __user *ubuf,
				      size_t count, loff_t *offp)
{}

/* Return a formatted buffer containing the current
 * statistics across all queues for a CCP.
 */
static ssize_t ccp5_debugfs_stats_read(struct file *filp, char __user *ubuf,
				       size_t count, loff_t *offp)
{}

/* Reset the counters in a queue
 */
static void ccp5_debugfs_reset_queue_stats(struct ccp_cmd_queue *cmd_q)
{}

/* A value was written to the stats variable, which
 * should be used to reset the queue counters across
 * that device.
 */
static ssize_t ccp5_debugfs_stats_write(struct file *filp,
					const char __user *ubuf,
					size_t count, loff_t *offp)
{}

/* Return a formatted buffer containing the current information
 * for that queue
 */
static ssize_t ccp5_debugfs_queue_read(struct file *filp, char __user *ubuf,
				       size_t count, loff_t *offp)
{}

/* A value was written to the stats variable for a
 * queue. Reset the queue counters to this value.
 */
static ssize_t ccp5_debugfs_queue_write(struct file *filp,
					const char __user *ubuf,
					size_t count, loff_t *offp)
{}

static const struct file_operations ccp_debugfs_info_ops =;

static const struct file_operations ccp_debugfs_queue_ops =;

static const struct file_operations ccp_debugfs_stats_ops =;

static struct dentry *ccp_debugfs_dir;
static DEFINE_MUTEX(ccp_debugfs_lock);

#define MAX_NAME_LEN

void ccp5_debugfs_setup(struct ccp_device *ccp)
{}

void ccp5_debugfs_destroy(void)
{}