diff options
author | Andrew Rybchenko <arybchik@FreeBSD.org> | 2018-11-29 06:43:00 +0000 |
---|---|---|
committer | Andrew Rybchenko <arybchik@FreeBSD.org> | 2018-11-29 06:43:00 +0000 |
commit | 87a67e180f3574cf1744f7db4c83e7022b1e683e (patch) | |
tree | 63186355b68070d840077d6a8880098fea0f10e9 /sys/dev/sfxge/common/efx.h | |
parent | 2d2d812352a1d0aab30e5886c55a26cf90d3eb5d (diff) | |
download | src-87a67e180f3574cf1744f7db4c83e7022b1e683e.tar.gz src-87a67e180f3574cf1744f7db4c83e7022b1e683e.zip |
sfxge(4): support choosing firmware variant
Submitted by: Gautam Dawar <gdawar at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18222
Notes
Notes:
svn path=/head/; revision=341191
Diffstat (limited to 'sys/dev/sfxge/common/efx.h')
-rw-r--r-- | sys/dev/sfxge/common/efx.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/dev/sfxge/common/efx.h b/sys/dev/sfxge/common/efx.h index 9e663a0d062f..f8a756fc0d62 100644 --- a/sys/dev/sfxge/common/efx.h +++ b/sys/dev/sfxge/common/efx.h @@ -157,9 +157,22 @@ efx_nic_create( __in efsys_lock_t *eslp, __deref_out efx_nic_t **enpp); +/* EFX_FW_VARIANT codes map one to one on MC_CMD_FW codes */ +typedef enum efx_fw_variant_e { + EFX_FW_VARIANT_FULL_FEATURED, + EFX_FW_VARIANT_LOW_LATENCY, + EFX_FW_VARIANT_PACKED_STREAM, + EFX_FW_VARIANT_HIGH_TX_RATE, + EFX_FW_VARIANT_PACKED_STREAM_HASH_MODE_1, + EFX_FW_VARIANT_RULES_ENGINE, + EFX_FW_VARIANT_DPDK, + EFX_FW_VARIANT_DONT_CARE = 0xffffffff +} efx_fw_variant_t; + extern __checkReturn efx_rc_t efx_nic_probe( - __in efx_nic_t *enp); + __in efx_nic_t *enp, + __in efx_fw_variant_t efv); extern __checkReturn efx_rc_t efx_nic_init( |