]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/dpdk/drivers/net/sfc/base/medford2_impl.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / drivers / net / sfc / base / medford2_impl.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2019-2020 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 extern __checkReturn efx_rc_t
31 medford2_board_cfg(
32 __in efx_nic_t *enp);
33
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif /* _SYS_MEDFORD2_IMPL_H */