efx_phy.c (295467) | efx_phy.c (299320) |
---|---|
1/*- 2 * Copyright (c) 2007-2015 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 15 unchanged lines hidden (view full) --- 24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * The views and conclusions contained in the software and documentation are 27 * those of the authors and should not be interpreted as representing official 28 * policies, either expressed or implied, of the FreeBSD Project. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007-2015 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 15 unchanged lines hidden (view full) --- 24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * The views and conclusions contained in the software and documentation are 27 * those of the authors and should not be interpreted as representing official 28 * policies, either expressed or implied, of the FreeBSD Project. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_phy.c 295467 2016-02-10 12:14:56Z arybchik $"); | 32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_phy.c 299320 2016-05-10 07:01:06Z arybchik $"); |
33 34#include "efx.h" 35#include "efx_impl.h" | 33 34#include "efx.h" 35#include "efx_impl.h" |
36#if EFSYS_OPT_FALCON 37#include "falcon_nvram.h" 38#endif 39 | |
40#if EFSYS_OPT_MAC_FALCON_XMAC 41#include "falcon_xmac.h" 42#endif 43 44#if EFSYS_OPT_MAC_FALCON_GMAC 45#include "falcon_gmac.h" 46#endif 47 --- 257 unchanged lines hidden (view full) --- 305 306 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); 307 308 epp->ep_port = encp->enc_port; 309 epp->ep_phy_type = encp->enc_phy_type; 310 311 /* Hook in operations structure */ 312 switch (enp->en_family) { | 36#if EFSYS_OPT_MAC_FALCON_XMAC 37#include "falcon_xmac.h" 38#endif 39 40#if EFSYS_OPT_MAC_FALCON_GMAC 41#include "falcon_gmac.h" 42#endif 43 --- 257 unchanged lines hidden (view full) --- 301 302 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC); 303 304 epp->ep_port = encp->enc_port; 305 epp->ep_phy_type = encp->enc_phy_type; 306 307 /* Hook in operations structure */ 308 switch (enp->en_family) { |
313#if EFSYS_OPT_FALCON 314 case EFX_FAMILY_FALCON: 315 switch (epp->ep_phy_type) { 316#if EFSYS_OPT_PHY_NULL 317 case PHY_TYPE_NONE_DECODE: 318 epop = (efx_phy_ops_t *)&__efx_phy_null_ops; 319 break; 320#endif 321#if EFSYS_OPT_PHY_QT2022C2 322 case PHY_TYPE_QT2022C2_DECODE: 323 epop = (efx_phy_ops_t *)&__efx_phy_qt2022c2_ops; 324 break; 325#endif 326#if EFSYS_OPT_PHY_SFX7101 327 case PHY_TYPE_SFX7101_DECODE: 328 epop = (efx_phy_ops_t *)&__efx_phy_sfx7101_ops; 329 break; 330#endif 331#if EFSYS_OPT_PHY_TXC43128 332 case PHY_TYPE_TXC43128_DECODE: 333 epop = (efx_phy_ops_t *)&__efx_phy_txc43128_ops; 334 break; 335#endif 336#if EFSYS_OPT_PHY_SFT9001 337 case PHY_TYPE_SFT9001A_DECODE: 338 case PHY_TYPE_SFT9001B_DECODE: 339 epop = (efx_phy_ops_t *)&__efx_phy_sft9001_ops; 340 break; 341#endif 342#if EFSYS_OPT_PHY_QT2025C 343 case EFX_PHY_QT2025C: 344 epop = (efx_phy_ops_t *)&__efx_phy_qt2025c_ops; 345 break; 346#endif 347 default: 348 rc = ENOTSUP; 349 goto fail1; 350 } 351 break; 352#endif /* EFSYS_OPT_FALCON */ | |
353#if EFSYS_OPT_SIENA 354 case EFX_FAMILY_SIENA: 355 epop = (efx_phy_ops_t *)&__efx_phy_siena_ops; 356 break; 357#endif /* EFSYS_OPT_SIENA */ 358#if EFSYS_OPT_HUNTINGTON 359 case EFX_FAMILY_HUNTINGTON: 360 epop = (efx_phy_ops_t *)&__efx_phy_ef10_ops; --- 514 unchanged lines hidden --- | 309#if EFSYS_OPT_SIENA 310 case EFX_FAMILY_SIENA: 311 epop = (efx_phy_ops_t *)&__efx_phy_siena_ops; 312 break; 313#endif /* EFSYS_OPT_SIENA */ 314#if EFSYS_OPT_HUNTINGTON 315 case EFX_FAMILY_HUNTINGTON: 316 epop = (efx_phy_ops_t *)&__efx_phy_ef10_ops; --- 514 unchanged lines hidden --- |