xref: /dpdk/drivers/crypto/bcmfs/bcmfs_dev_msg.h (revision d5a7873c09ac4712ee9ad98d725eafbaee8f4a76)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2020 Broadcom
3  * All rights reserved.
4  */
5 
6 #ifndef _BCMFS_DEV_MSG_H_
7 #define _BCMFS_DEV_MSG_H_
8 
9 #define MAX_SRC_ADDR_BUFFERS    8
10 #define MAX_DST_ADDR_BUFFERS    3
11 
12 struct bcmfs_qp_message {
13 	/** Physical address of each source */
14 	uint64_t srcs_addr[MAX_SRC_ADDR_BUFFERS];
15 	/** Length of each sources */
16 	uint32_t srcs_len[MAX_SRC_ADDR_BUFFERS];
17 	/** Total number of sources */
18 	unsigned int srcs_count;
19 	/** Physical address of each destination */
20 	uint64_t dsts_addr[MAX_DST_ADDR_BUFFERS];
21 	/** Length of each destination */
22 	uint32_t dsts_len[MAX_DST_ADDR_BUFFERS];
23 	/** Total number of destinations */
24 	unsigned int dsts_count;
25 
26 	void *ctx;
27 };
28 
29 #endif /* _BCMFS_DEV_MSG_H_ */
30