xref: /dpdk/drivers/common/sfc_efx/base/medford2_impl.h (revision 672386c1e9e1f64f7aa3b1360ad22dc737ea8d72)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2019-2021 Xilinx, Inc.
4  * Copyright(c) 2015-2019 Solarflare Communications Inc.
5  */
6 
7 #ifndef	_SYS_MEDFORD2_IMPL_H
8 #define	_SYS_MEDFORD2_IMPL_H
9 
10 #ifdef	__cplusplus
11 extern "C" {
12 #endif
13 
14 
15 #define	MEDFORD2_TXQ_MAXNDESCS	2048
16 
17 #define	MEDFORD2_EVQ_MAXNBUFS	(64)
18 
19 #ifndef	ER_EZ_TX_PIOBUF_SIZE
20 #define	ER_EZ_TX_PIOBUF_SIZE	4096
21 #endif
22 
23 
24 #define	MEDFORD2_PIOBUF_NBUFS	(16)
25 #define	MEDFORD2_PIOBUF_SIZE	(ER_EZ_TX_PIOBUF_SIZE)
26 
27 #define	MEDFORD2_MIN_PIO_ALLOC_SIZE	(MEDFORD2_PIOBUF_SIZE / 32)
28 
29 
30 LIBEFX_INTERNAL
31 extern	__checkReturn	efx_rc_t
32 medford2_board_cfg(
33 	__in		efx_nic_t *enp);
34 
35 
36 #ifdef	__cplusplus
37 }
38 #endif
39 
40 #endif	/* _SYS_MEDFORD2_IMPL_H */
41