sfxge(4): remove EFSYS_OPT_PCIE_TUNE

With the removal of Falcon support, this is now dead code.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
This commit is contained in:
Andrew Rybchenko 2016-05-09 08:38:56 +00:00
parent 5af774cbaf
commit ca738e7a95
4 changed files with 3 additions and 40 deletions

View File

@ -149,15 +149,6 @@ extern __checkReturn efx_rc_t
efx_nic_probe(
__in efx_nic_t *enp);
#if EFSYS_OPT_PCIE_TUNE
extern __checkReturn efx_rc_t
efx_nic_pcie_tune(
__in efx_nic_t *enp,
unsigned int nlanes);
#endif /* EFSYS_OPT_PCIE_TUNE */
extern __checkReturn efx_rc_t
efx_nic_init(
__in efx_nic_t *enp);

View File

@ -61,8 +61,6 @@
#define EFSYS_OPT_NVRAM_SFT9001 (0)
#define EFSYS_OPT_NVRAM_SFX7101 (0)
#define EFSYS_OPT_PCIE_TUNE (0)
#define EFSYS_OPT_PHY_NULL (0)
#define EFSYS_OPT_PHY_QT2022C2 (0)
#define EFSYS_OPT_PHY_QT2025C (0)
@ -280,12 +278,9 @@
# endif
#endif /* EFSYS_OPT_NVRAM_SFX7101 */
/* Support PCIe interface tuning */
#if EFSYS_OPT_PCIE_TUNE
# if !EFSYS_OPT_FALCON
# error "PCIE_TUNE requires FALCON"
# endif
#endif /* EFSYS_OPT_PCIE_TUNE */
#ifdef EFSYS_OPT_PCIE_TUNE
# error "PCIE_TUNE is obsolete and is not supported."
#endif
/* Obsolete option */
#ifdef EFSYS_OPT_PHY_BIST

View File

@ -667,9 +667,6 @@ struct efx_nic_s {
const uint8_t *enu_forced_cfg;
#endif /* EFSYS_OPT_FALCON_NIC_CFG_OVERRIDE */
uint8_t enu_mon_devid;
#if EFSYS_OPT_PCIE_TUNE
unsigned int enu_nlanes;
#endif /* EFSYS_OPT_PCIE_TUNE */
uint16_t enu_board_rev;
boolean_t enu_internal_sram;
uint8_t enu_sram_num_bank;

View File

@ -467,26 +467,6 @@ efx_nic_probe(
return (rc);
}
#if EFSYS_OPT_PCIE_TUNE
__checkReturn efx_rc_t
efx_nic_pcie_tune(
__in efx_nic_t *enp,
unsigned int nlanes)
{
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
EFSYS_ASSERT(!(enp->en_mod_flags & EFX_MOD_NIC));
#if EFSYS_OPT_FALCON
if (enp->en_family == EFX_FAMILY_FALCON)
return (falcon_nic_pcie_tune(enp, nlanes));
#endif
return (ENOTSUP);
}
#endif /* EFSYS_OPT_PCIE_TUNE */
__checkReturn efx_rc_t
efx_nic_set_drv_limits(
__inout efx_nic_t *enp,