New upstream version 18.08
[deb_dpdk.git] / drivers / net / sfc / base / medford2_impl.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright (c) 2015-2018 Solarflare Communications Inc.
4  * All rights reserved.
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 #ifndef ER_EZ_TX_PIOBUF_SIZE
16 #define ER_EZ_TX_PIOBUF_SIZE    4096
17 #endif
18
19
20 #define MEDFORD2_PIOBUF_NBUFS   (16)
21 #define MEDFORD2_PIOBUF_SIZE    (ER_EZ_TX_PIOBUF_SIZE)
22
23 #define MEDFORD2_MIN_PIO_ALLOC_SIZE     (MEDFORD2_PIOBUF_SIZE / 32)
24
25
26 extern  __checkReturn   efx_rc_t
27 medford2_board_cfg(
28         __in            efx_nic_t *enp);
29
30
31 #ifdef  __cplusplus
32 }
33 #endif
34
35 #endif  /* _SYS_MEDFORD2_IMPL_H */