1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2021 Marvell.
5 #ifndef _ROC_DPI_PRIV_H_
6 #define _ROC_DPI_PRIV_H_
10 /* DPI PF DBDF information macros */
11 #define DPI_PF_DBDF_DEVICE 0
12 #define DPI_PF_DBDF_FUNCTION 0
14 #define DPI_QUEUE_OPEN 0x1
15 #define DPI_QUEUE_CLOSE 0x2
16 #define DPI_REG_DUMP 0x3
17 #define DPI_GET_REG_CFG 0x4
19 #define DPI_CMD_QUEUE_SIZE 4096
20 #define DPI_CMD_QUEUE_BUFS 1024
22 typedef union dpi_mbox_msg_t {
24 struct dpi_mbox_message_s {
25 /* VF ID to configure */
29 /* Command buffer size in 8-byte words */
31 /* aura of the command buffer */
34 uint64_t sso_pf_func : 16;
36 uint64_t npa_pf_func : 16;