linux/drivers/crypto/intel/qat/qat_common/adf_tl_debugfs.h

/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2023 Intel Corporation. */
#ifndef ADF_TL_DEBUGFS_H
#define ADF_TL_DEBUGFS_H

#include <linux/types.h>

struct adf_accel_dev;

#define MAX_COUNT_NAME_SIZE
#define SNAPSHOT_CNT_MSG
#define RP_NUM_INDEX
#define PCI_TRANS_CNT_NAME
#define MAX_RD_LAT_NAME
#define RD_LAT_ACC_NAME
#define MAX_LAT_NAME
#define LAT_ACC_NAME
#define BW_IN_NAME
#define BW_OUT_NAME
#define PAGE_REQ_LAT_NAME
#define AT_TRANS_LAT_NAME
#define AT_MAX_UTLB_USED_NAME
#define AT_GLOB_DTLB_HIT_NAME
#define AT_GLOB_DTLB_MISS_NAME
#define AT_PAYLD_DTLB_HIT_NAME
#define AT_PAYLD_DTLB_MISS_NAME
#define RP_SERVICE_TYPE

#define ADF_TL_DBG_RP_ALPHA_INDEX(index)
#define ADF_TL_DBG_RP_INDEX_ALPHA(alpha)

#define ADF_TL_RP_REGS_FNAME
#define ADF_TL_RP_REGS_FNAME_SIZE

#define ADF_TL_DATA_REG_OFF(reg, qat_gen)

#define ADF_TL_DEV_REG_OFF(reg, qat_gen)

#define ADF_TL_SLICE_REG_OFF(slice, reg, qat_gen)

#define ADF_TL_RP_REG_OFF(reg, qat_gen)

/**
 * enum adf_tl_counter_type - telemetry counter types
 * @ADF_TL_COUNTER_UNSUPPORTED: unsupported counter
 * @ADF_TL_SIMPLE_COUNT: simple counter
 * @ADF_TL_COUNTER_NS: latency counter, value in ns
 * @ADF_TL_COUNTER_NS_AVG: accumulated average latency counter, value in ns
 * @ADF_TL_COUNTER_MBPS: bandwidth, value in MBps
 */
enum adf_tl_counter_type {};

/**
 * struct adf_tl_dbg_counter - telemetry counter definition
 * @name: name of the counter as printed in the report
 * @adf_tl_counter_type: type of the counter
 * @offset1: offset of 1st register
 * @offset2: offset of 2nd optional register
 */
struct adf_tl_dbg_counter {};

#define ADF_TL_COUNTER(_name, _type, _offset)

#define ADF_TL_COUNTER_LATENCY(_name, _type, _offset1, _offset2)

/* Telemetry counter aggregated values. */
struct adf_tl_dbg_aggr_values {};

/**
 * adf_tl_dbgfs_add() - Add telemetry's debug fs entries.
 * @accel_dev: Pointer to acceleration device.
 *
 * Creates telemetry's debug fs folder and attributes in QAT debug fs root.
 */
void adf_tl_dbgfs_add(struct adf_accel_dev *accel_dev);

/**
 * adf_tl_dbgfs_rm() - Remove telemetry's debug fs entries.
 * @accel_dev: Pointer to acceleration device.
 *
 * Removes telemetry's debug fs folder and attributes from QAT debug fs root.
 */
void adf_tl_dbgfs_rm(struct adf_accel_dev *accel_dev);

#endif /* ADF_TL_DEBUGFS_H */