/* SPDX-License-Identifier: GPL-2.0-only */ /**************************************************************************** * Driver for Solarflare network controllers and boards * Copyright 2007-2013 Solarflare Communications Inc. */ #ifndef EFX_ENUM_H #define EFX_ENUM_H /** * enum efx_loopback_mode - loopback modes * @LOOPBACK_NONE: no loopback * @LOOPBACK_DATA: data path loopback * @LOOPBACK_GMAC: loopback within GMAC * @LOOPBACK_XGMII: loopback after XMAC * @LOOPBACK_XGXS: loopback within BPX after XGXS * @LOOPBACK_XAUI: loopback within BPX before XAUI serdes * @LOOPBACK_GMII: loopback within BPX after GMAC * @LOOPBACK_SGMII: loopback within BPX within SGMII * @LOOPBACK_XGBR: loopback within BPX within XGBR * @LOOPBACK_XFI: loopback within BPX before XFI serdes * @LOOPBACK_XAUI_FAR: loopback within BPX after XAUI serdes * @LOOPBACK_GMII_FAR: loopback within BPX before SGMII * @LOOPBACK_SGMII_FAR: loopback within BPX after SGMII * @LOOPBACK_XFI_FAR: loopback after XFI serdes * @LOOPBACK_GPHY: loopback within 1G PHY at unspecified level * @LOOPBACK_PHYXS: loopback within 10G PHY at PHYXS level * @LOOPBACK_PCS: loopback within 10G PHY at PCS level * @LOOPBACK_PMAPMD: loopback within 10G PHY at PMAPMD level * @LOOPBACK_XPORT: cross port loopback * @LOOPBACK_XGMII_WS: wireside loopback excluding XMAC * @LOOPBACK_XAUI_WS: wireside loopback within BPX within XAUI serdes * @LOOPBACK_XAUI_WS_FAR: wireside loopback within BPX including XAUI serdes * @LOOPBACK_XAUI_WS_NEAR: wireside loopback within BPX excluding XAUI serdes * @LOOPBACK_GMII_WS: wireside loopback excluding GMAC * @LOOPBACK_XFI_WS: wireside loopback excluding XFI serdes * @LOOPBACK_XFI_WS_FAR: wireside loopback including XFI serdes * @LOOPBACK_PHYXS_WS: wireside loopback within 10G PHY at PHYXS level */ /* Please keep up-to-date w.r.t the following two #defines */ enum efx_loopback_mode { … }; #define LOOPBACK_TEST_MAX … /* These loopbacks occur within the controller */ #define LOOPBACKS_INTERNAL … #define LOOPBACKS_WS … #define LOOPBACKS_EXTERNAL(_efx) … #define LOOPBACK_MASK(_efx) … #define LOOPBACK_INTERNAL(_efx) … #define LOOPBACK_EXTERNAL(_efx) … #define LOOPBACK_CHANGED(_from, _to, _mask) … #define LOOPBACK_OUT_OF(_from, _to, _mask) … /*****************************************************************************/ /** * enum reset_type - reset types * * %RESET_TYPE_INVSIBLE, %RESET_TYPE_ALL, %RESET_TYPE_WORLD and * %RESET_TYPE_DISABLE specify the method/scope of the reset. The * other valuesspecify reasons, which efx_siena_schedule_reset() will choose * a method for. * * Reset methods are numbered in order of increasing scope. * * @RESET_TYPE_INVISIBLE: Reset datapath and MAC (Falcon only) * @RESET_TYPE_RECOVER_OR_ALL: Try to recover. Apply RESET_TYPE_ALL * if unsuccessful. * @RESET_TYPE_ALL: Reset datapath, MAC and PHY * @RESET_TYPE_WORLD: Reset as much as possible * @RESET_TYPE_RECOVER_OR_DISABLE: Try to recover. Apply RESET_TYPE_DISABLE if * unsuccessful. * @RESET_TYPE_DATAPATH: Reset datapath only. * @RESET_TYPE_MC_BIST: MC entering BIST mode. * @RESET_TYPE_DISABLE: Reset datapath, MAC and PHY; leave NIC disabled * @RESET_TYPE_TX_WATCHDOG: reset due to TX watchdog * @RESET_TYPE_INT_ERROR: reset due to internal error * @RESET_TYPE_DMA_ERROR: DMA error * @RESET_TYPE_TX_SKIP: hardware completed empty tx descriptors * @RESET_TYPE_MC_FAILURE: MC reboot/assertion * @RESET_TYPE_MCDI_TIMEOUT: MCDI timeout. */ enum reset_type { … }; #endif /* EFX_ENUM_H */