crypto/bcmfs: add crypto HW module
[dpdk.git] / drivers / crypto / bcmfs / bcmfs_hw_defs.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2020 Broadcom
3  * All rights reserved.
4  */
5
6 #ifndef _BCMFS_HW_DEFS_H_
7 #define _BCMFS_HW_DEFS_H_
8
9 #include <rte_atomic.h>
10 #include <rte_byteorder.h>
11 #include <rte_common.h>
12 #include <rte_io.h>
13
14 #ifndef BIT
15 #define BIT(nr)         (1UL << (nr))
16 #endif
17
18 #define FS_RING_REGS_SIZE               0x10000
19 #define FS_RING_DESC_SIZE               8
20 #define FS_RING_BD_ALIGN_ORDER          12
21 #define FS_RING_BD_DESC_PER_REQ         32
22 #define FS_RING_CMPL_ALIGN_ORDER        13
23 #define FS_RING_CMPL_SIZE               (1024 * FS_RING_DESC_SIZE)
24 #define FS_RING_MAX_REQ_COUNT           1024
25 #define FS_RING_PAGE_SHFT               12
26 #define FS_RING_PAGE_SIZE               BIT(FS_RING_PAGE_SHFT)
27
28 /* Minimum and maximum number of requests supported */
29 #define FS_RM_MAX_REQS                  4096
30 #define FS_RM_MIN_REQS                  32
31
32 #endif /* BCMFS_HW_DEFS_H_ */