From 5af774cbafeba7b7ebda97c67d40073220cb0192 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Mon, 9 May 2016 08:37:42 +0000 Subject: [PATCH] sfxge(4): disable common code support for Falcon This patch ensures that client code will fail to build with Falcon support. Following patches remove Falcon support code entirely. sfxge(4) has never supported Falcon. Submitted by: Andy Moreton Sponsored by: Solarflare Communications, Inc. MFC after: 1 week --- sys/dev/sfxge/common/efsys.h | 17 ----------------- sys/dev/sfxge/common/efx.h | 1 + sys/dev/sfxge/common/efx_check.h | 28 ++++++++++++++++++++++++++++ sys/dev/sfxge/common/efx_impl.h | 3 +-- 4 files changed, 30 insertions(+), 19 deletions(-) diff --git a/sys/dev/sfxge/common/efsys.h b/sys/dev/sfxge/common/efsys.h index 07d5bbe34553..f0191396ee5a 100644 --- a/sys/dev/sfxge/common/efsys.h +++ b/sys/dev/sfxge/common/efsys.h @@ -236,8 +236,6 @@ sfxge_map_mbuf_fast(bus_dma_tag_t tag, bus_dmamap_t map, #define EFSYS_OPT_NAMES 1 -#define EFSYS_OPT_FALCON 0 -#define EFSYS_OPT_FALCON_NIC_CFG_OVERRIDE 0 #define EFSYS_OPT_SIENA 1 #define EFSYS_OPT_HUNTINGTON 1 #define EFSYS_OPT_MEDFORD 0 @@ -251,24 +249,13 @@ sfxge_map_mbuf_fast(bus_dma_tag_t tag, bus_dmamap_t map, #define EFSYS_OPT_MCDI_LOGGING 0 #define EFSYS_OPT_MCDI_PROXY_AUTH 0 -#define EFSYS_OPT_MAC_FALCON_GMAC 0 -#define EFSYS_OPT_MAC_FALCON_XMAC 0 #define EFSYS_OPT_MAC_STATS 1 #define EFSYS_OPT_LOOPBACK 0 -#define EFSYS_OPT_MON_NULL 0 -#define EFSYS_OPT_MON_LM87 0 -#define EFSYS_OPT_MON_MAX6647 0 #define EFSYS_OPT_MON_MCDI 0 #define EFSYS_OPT_MON_STATS 0 -#define EFSYS_OPT_PHY_NULL 0 -#define EFSYS_OPT_PHY_QT2022C2 0 -#define EFSYS_OPT_PHY_SFX7101 0 -#define EFSYS_OPT_PHY_TXC43128 0 -#define EFSYS_OPT_PHY_SFT9001 0 -#define EFSYS_OPT_PHY_QT2025C 0 #define EFSYS_OPT_PHY_STATS 1 #define EFSYS_OPT_PHY_PROPS 0 #define EFSYS_OPT_BIST 1 @@ -277,12 +264,8 @@ sfxge_map_mbuf_fast(bus_dma_tag_t tag, bus_dmamap_t map, #define EFSYS_OPT_VPD 1 #define EFSYS_OPT_NVRAM 1 -#define EFSYS_OPT_NVRAM_FALCON_BOOTROM 0 -#define EFSYS_OPT_NVRAM_SFT9001 0 -#define EFSYS_OPT_NVRAM_SFX7101 0 #define EFSYS_OPT_BOOTCFG 0 -#define EFSYS_OPT_PCIE_TUNE 0 #define EFSYS_OPT_DIAG 0 #define EFSYS_OPT_WOL 1 #define EFSYS_OPT_RX_SCALE 1 diff --git a/sys/dev/sfxge/common/efx.h b/sys/dev/sfxge/common/efx.h index 6788913f4c0c..70be9778dea2 100644 --- a/sys/dev/sfxge/common/efx.h +++ b/sys/dev/sfxge/common/efx.h @@ -34,6 +34,7 @@ #define _SYS_EFX_H #include "efsys.h" +#include "efx_check.h" #include "efx_phy_ids.h" #ifdef __cplusplus diff --git a/sys/dev/sfxge/common/efx_check.h b/sys/dev/sfxge/common/efx_check.h index effe6d76d633..e5c7c2e9c30a 100644 --- a/sys/dev/sfxge/common/efx_check.h +++ b/sys/dev/sfxge/common/efx_check.h @@ -43,6 +43,34 @@ * from client code (and do not reappear in merges from other branches). */ +#ifdef EFSYS_OPT_FALCON +# error "FALCON is obsolete and is not supported." +#else +/* FIXME: remove this after Falcon support has been removed */ +#define EFSYS_OPT_FALCON (0) +#define EFSYS_OPT_FALCON_NIC_CFG_OVERRIDE (0) + +#define EFSYS_OPT_MAC_FALCON_GMAC (0) +#define EFSYS_OPT_MAC_FALCON_XMAC (0) + +#define EFSYS_OPT_MON_LM87 (0) +#define EFSYS_OPT_MON_MAX6647 (0) +#define EFSYS_OPT_MON_NULL (0) + +#define EFSYS_OPT_NVRAM_FALCON_BOOTROM (0) +#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) +#define EFSYS_OPT_PHY_SFT9001 (0) +#define EFSYS_OPT_PHY_SFX7101 (0) +#define EFSYS_OPT_PHY_TXC43128 (0) +#endif + /* Support NVRAM based boot config */ #if EFSYS_OPT_BOOTCFG # if !EFSYS_OPT_NVRAM diff --git a/sys/dev/sfxge/common/efx_impl.h b/sys/dev/sfxge/common/efx_impl.h index 5495b15f5a5e..9e831c707630 100644 --- a/sys/dev/sfxge/common/efx_impl.h +++ b/sys/dev/sfxge/common/efx_impl.h @@ -34,6 +34,7 @@ #define _SYS_EFX_IMPL_H #include "efsys.h" +#include "efx_check.h" #include "efx.h" #include "efx_regs.h" #include "efx_regs_ef10.h" @@ -43,8 +44,6 @@ #define ESE_DZ_EV_CODE_DRV_GEN_EV FSE_AZ_EV_CODE_DRV_GEN_EV #endif -#include "efx_check.h" - #if EFSYS_OPT_FALCON #include "falcon_impl.h"