1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Broadcom
6 #ifndef _BCMFS_HW_DEFS_H_
7 #define _BCMFS_HW_DEFS_H_
9 #include <rte_atomic.h>
10 #include <rte_byteorder.h>
11 #include <rte_common.h>
15 #define BIT(nr) (1UL << (nr))
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)
28 /* Minimum and maximum number of requests supported */
29 #define FS_RM_MAX_REQS 4096
30 #define FS_RM_MIN_REQS 32
32 #endif /* BCMFS_HW_DEFS_H_ */