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 299320 2016-05-10 07:01:06Z arybchik $"); |
33 34#include "efx.h" 35#include "efx_impl.h" |
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) { |
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 --- |