Path: blob/master/drivers/crypto/marvell/octeontx/otx_cpt_common.h
26285 views
/* SPDX-License-Identifier: GPL-2.01* Marvell OcteonTX CPT driver2*3* Copyright (C) 2019 Marvell International Ltd.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*/910#ifndef __OTX_CPT_COMMON_H11#define __OTX_CPT_COMMON_H1213#include <linux/types.h>14#include <linux/delay.h>15#include <linux/device.h>1617#define OTX_CPT_MAX_MBOX_DATA_STR_SIZE 641819enum otx_cptpf_type {20OTX_CPT_AE = 2,21OTX_CPT_SE = 3,22BAD_OTX_CPTPF_TYPE,23};2425enum otx_cptvf_type {26OTX_CPT_AE_TYPES = 1,27OTX_CPT_SE_TYPES = 2,28BAD_OTX_CPTVF_TYPE,29};3031/* VF-PF message opcodes */32enum otx_cpt_mbox_opcode {33OTX_CPT_MSG_VF_UP = 1,34OTX_CPT_MSG_VF_DOWN,35OTX_CPT_MSG_READY,36OTX_CPT_MSG_QLEN,37OTX_CPT_MSG_QBIND_GRP,38OTX_CPT_MSG_VQ_PRIORITY,39OTX_CPT_MSG_PF_TYPE,40OTX_CPT_MSG_ACK,41OTX_CPT_MSG_NACK42};4344/* OcteonTX CPT mailbox structure */45struct otx_cpt_mbox {46u64 msg; /* Message type MBOX[0] */47u64 data;/* Data MBOX[1] */48};4950#endif /* __OTX_CPT_COMMON_H */515253