efx_phy.c (299334) | efx_phy.c (299335) |
---|---|
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 299334 2016-05-10 07:19:15Z arybchik $"); | 32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_phy.c 299335 2016-05-10 07:20:18Z arybchik $"); |
33 34#include "efx.h" 35#include "efx_impl.h" 36 | 33 34#include "efx.h" 35#include "efx_impl.h" 36 |
37#if EFSYS_OPT_PHY_SFX7101 38#include "sfx7101.h" 39#endif 40 | |
41#if EFSYS_OPT_PHY_TXC43128 42#include "txc43128.h" 43#endif 44 | 37#if EFSYS_OPT_PHY_TXC43128 38#include "txc43128.h" 39#endif 40 |
45#if EFSYS_OPT_PHY_SFX7101 46static efx_phy_ops_t __efx_phy_sfx7101_ops = { 47 sfx7101_power, /* epo_power */ 48 sfx7101_reset, /* epo_reset */ 49 sfx7101_reconfigure, /* epo_reconfigure */ 50 sfx7101_verify, /* epo_verify */ 51 sfx7101_uplink_check, /* epo_uplink_check */ 52 sfx7101_downlink_check, /* epo_downlink_check */ 53 sfx7101_oui_get, /* epo_oui_get */ 54#if EFSYS_OPT_PHY_STATS 55 sfx7101_stats_update, /* epo_stats_update */ 56#endif /* EFSYS_OPT_PHY_STATS */ 57#if EFSYS_OPT_PHY_PROPS 58#if EFSYS_OPT_NAMES 59 sfx7101_prop_name, /* epo_prop_name */ 60#endif 61 sfx7101_prop_get, /* epo_prop_get */ 62 sfx7101_prop_set, /* epo_prop_set */ 63#endif /* EFSYS_OPT_PHY_PROPS */ 64#if EFSYS_OPT_BIST 65 NULL, /* epo_bist_enable_offline */ 66 NULL, /* epo_bist_start */ 67 NULL, /* epo_bist_poll */ 68 NULL, /* epo_bist_stop */ 69#endif /* EFSYS_OPT_BIST */ 70}; 71#endif /* EFSYS_OPT_PHY_SFX7101 */ 72 | |
73#if EFSYS_OPT_PHY_TXC43128 74static efx_phy_ops_t __efx_phy_txc43128_ops = { 75 NULL, /* epo_power */ 76 txc43128_reset, /* epo_reset */ 77 txc43128_reconfigure, /* epo_reconfigure */ 78 txc43128_verify, /* epo_verify */ 79 txc43128_uplink_check, /* epo_uplink_check */ 80 txc43128_downlink_check, /* epo_downlink_check */ --- 615 unchanged lines hidden --- | 41#if EFSYS_OPT_PHY_TXC43128 42static efx_phy_ops_t __efx_phy_txc43128_ops = { 43 NULL, /* epo_power */ 44 txc43128_reset, /* epo_reset */ 45 txc43128_reconfigure, /* epo_reconfigure */ 46 txc43128_verify, /* epo_verify */ 47 txc43128_uplink_check, /* epo_uplink_check */ 48 txc43128_downlink_check, /* epo_downlink_check */ --- 615 unchanged lines hidden --- |