1 /* SPDX-License-Identifier: GPL-2.0
2 * Marvell OcteonTX CPT driver
4 * Copyright (C) 2019 Marvell International Ltd.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #ifndef __OTX_CPT_COMMON_H
12 #define __OTX_CPT_COMMON_H
14 #include <linux/types.h>
15 #include <linux/delay.h>
16 #include <linux/device.h>
18 #define OTX_CPT_MAX_MBOX_DATA_STR_SIZE 64
32 /* VF-PF message opcodes */
33 enum otx_cpt_mbox_opcode
{
34 OTX_CPT_MSG_VF_UP
= 1,
38 OTX_CPT_MSG_QBIND_GRP
,
39 OTX_CPT_MSG_VQ_PRIORITY
,
45 /* OcteonTX CPT mailbox structure */
47 u64 msg
; /* Message type MBOX[0] */
48 u64 data
;/* Data MBOX[1] */
51 #endif /* __OTX_CPT_COMMON_H */