2018-01-08 13:35:34 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2016-11-29 16:18:43 +00:00
|
|
|
*
|
2020-03-30 10:27:26 +00:00
|
|
|
* Copyright(c) 2019-2020 Xilinx, Inc.
|
|
|
|
* Copyright(c) 2015-2019 Solarflare Communications Inc.
|
2016-11-29 16:18:43 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_MEDFORD_IMPL_H
|
|
|
|
#define _SYS_MEDFORD_IMPL_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2019-02-07 16:29:11 +00:00
|
|
|
#define MEDFORD_TXQ_MAXNDESCS 2048
|
|
|
|
|
2019-02-07 16:29:25 +00:00
|
|
|
#define MEDFORD_EVQ_MAXNBUFS (64)
|
|
|
|
|
2016-11-29 16:18:43 +00:00
|
|
|
#ifndef ER_EZ_TX_PIOBUF_SIZE
|
|
|
|
#define ER_EZ_TX_PIOBUF_SIZE 4096
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define MEDFORD_PIOBUF_NBUFS (16)
|
|
|
|
#define MEDFORD_PIOBUF_SIZE (ER_EZ_TX_PIOBUF_SIZE)
|
|
|
|
|
|
|
|
#define MEDFORD_MIN_PIO_ALLOC_SIZE (MEDFORD_PIOBUF_SIZE / 32)
|
|
|
|
|
|
|
|
|
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
medford_board_cfg(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _SYS_MEDFORD_IMPL_H */
|