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

/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
/* Copyright(c) 2014 - 2020 Intel Corporation */
#ifndef ADF_TRANSPORT_ACCESS_MACROS_H
#define ADF_TRANSPORT_ACCESS_MACROS_H

#include "adf_accel_devices.h"
#define ADF_RING_CONFIG_NEAR_FULL_WM
#define ADF_RING_CONFIG_NEAR_EMPTY_WM
#define ADF_COALESCING_MIN_TIME
#define ADF_COALESCING_MAX_TIME
#define ADF_COALESCING_DEF_TIME
#define ADF_RING_NEAR_WATERMARK_512
#define ADF_RING_NEAR_WATERMARK_0
#define ADF_RING_EMPTY_SIG

/* Valid internal ring size values */
#define ADF_RING_SIZE_128
#define ADF_RING_SIZE_256
#define ADF_RING_SIZE_512
#define ADF_RING_SIZE_4K
#define ADF_RING_SIZE_16K
#define ADF_RING_SIZE_4M
#define ADF_MIN_RING_SIZE
#define ADF_MAX_RING_SIZE
#define ADF_DEFAULT_RING_SIZE

/* Valid internal msg size values */
#define ADF_MSG_SIZE_32
#define ADF_MSG_SIZE_64
#define ADF_MSG_SIZE_128
#define ADF_MIN_MSG_SIZE
#define ADF_MAX_MSG_SIZE

/* Size to bytes conversion macros for ring and msg size values */
#define ADF_MSG_SIZE_TO_BYTES(SIZE)
#define ADF_BYTES_TO_MSG_SIZE(SIZE)
#define ADF_SIZE_TO_RING_SIZE_IN_BYTES(SIZE)
#define ADF_RING_SIZE_IN_BYTES_TO_SIZE(SIZE)

/* Minimum ring buffer size for memory allocation */
#define ADF_RING_SIZE_BYTES_MIN(SIZE)
#define ADF_RING_SIZE_MODULO(SIZE)
#define ADF_SIZE_TO_POW(SIZE)
/* Max outstanding requests */
#define ADF_MAX_INFLIGHTS(RING_SIZE, MSG_SIZE)
#define BUILD_RING_CONFIG(size)
#define BUILD_RESP_RING_CONFIG(size, watermark_nf, watermark_ne)
#endif