1 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2012-2018 Solarflare Communications Inc.
7 #ifndef _SYS_HUNT_IMPL_H
8 #define _SYS_HUNT_IMPL_H
12 #include "efx_regs_ef10.h"
19 #define HUNT_TXQ_MAXNDESCS 4096
20 #define HUNT_TXQ_MAXNDESCS_BUG35388_WORKAROUND 2048
22 #define HUNT_EVQ_MAXNBUFS (64)
24 /* Missing register definitions */
25 #ifndef ER_DZ_TX_PIOBUF_OFST
26 #define ER_DZ_TX_PIOBUF_OFST 0x00001000
28 #ifndef ER_DZ_TX_PIOBUF_STEP
29 #define ER_DZ_TX_PIOBUF_STEP 8192
31 #ifndef ER_DZ_TX_PIOBUF_ROWS
32 #define ER_DZ_TX_PIOBUF_ROWS 2048
35 #ifndef ER_DZ_TX_PIOBUF_SIZE
36 #define ER_DZ_TX_PIOBUF_SIZE 2048
39 #define HUNT_PIOBUF_NBUFS (16)
40 #define HUNT_PIOBUF_SIZE (ER_DZ_TX_PIOBUF_SIZE)
42 #define HUNT_MIN_PIO_ALLOC_SIZE (HUNT_PIOBUF_SIZE / 32)
47 extern __checkReturn efx_rc_t
55 #endif /* _SYS_HUNT_IMPL_H */