Deleted Added
full compact
efx_phy.c (299331) efx_phy.c (299332)
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 299331 2016-05-10 07:15:57Z arybchik $");
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_phy.c 299332 2016-05-10 07:17:08Z 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_QT2022C2
38#include "qt2022c2.h"
39#endif
40
41#if EFSYS_OPT_PHY_SFX7101
42#include "sfx7101.h"
43#endif
44
45#if EFSYS_OPT_PHY_TXC43128
46#include "txc43128.h"
47#endif
48
49#if EFSYS_OPT_PHY_SFT9001
50#include "sft9001.h"
51#endif
52
53#if EFSYS_OPT_PHY_QT2025C
54#include "qt2025c.h"
55#endif
56
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
45#if EFSYS_OPT_PHY_SFT9001
46#include "sft9001.h"
47#endif
48
49#if EFSYS_OPT_PHY_QT2025C
50#include "qt2025c.h"
51#endif
52
57#if EFSYS_OPT_PHY_QT2022C2
58static efx_phy_ops_t __efx_phy_qt2022c2_ops = {
59 NULL, /* epo_power */
60 qt2022c2_reset, /* epo_reset */
61 qt2022c2_reconfigure, /* epo_reconfigure */
62 qt2022c2_verify, /* epo_verify */
63 qt2022c2_uplink_check, /* epo_uplink_check */
64 qt2022c2_downlink_check, /* epo_downlink_check */
65 qt2022c2_oui_get, /* epo_oui_get */
66#if EFSYS_OPT_PHY_STATS
67 qt2022c2_stats_update, /* epo_stats_update */
68#endif /* EFSYS_OPT_PHY_STATS */
69#if EFSYS_OPT_PHY_PROPS
70#if EFSYS_OPT_NAMES
71 qt2022c2_prop_name, /* epo_prop_name */
72#endif
73 qt2022c2_prop_get, /* epo_prop_get */
74 qt2022c2_prop_set, /* epo_prop_set */
75#endif /* EFSYS_OPT_PHY_PROPS */
76#if EFSYS_OPT_BIST
77 NULL, /* epo_bist_enable_offline */
78 NULL, /* epo_bist_start */
79 NULL, /* epo_bist_poll */
80 NULL, /* epo_bist_stop */
81#endif /* EFSYS_OPT_BIST */
82};
83#endif /* EFSYS_OPT_PHY_QT2022C2 */
84
85#if EFSYS_OPT_PHY_SFX7101
86static efx_phy_ops_t __efx_phy_sfx7101_ops = {
87 sfx7101_power, /* epo_power */
88 sfx7101_reset, /* epo_reset */
89 sfx7101_reconfigure, /* epo_reconfigure */
90 sfx7101_verify, /* epo_verify */
91 sfx7101_uplink_check, /* epo_uplink_check */
92 sfx7101_downlink_check, /* epo_downlink_check */

--- 699 unchanged lines hidden ---
53#if EFSYS_OPT_PHY_SFX7101
54static efx_phy_ops_t __efx_phy_sfx7101_ops = {
55 sfx7101_power, /* epo_power */
56 sfx7101_reset, /* epo_reset */
57 sfx7101_reconfigure, /* epo_reconfigure */
58 sfx7101_verify, /* epo_verify */
59 sfx7101_uplink_check, /* epo_uplink_check */
60 sfx7101_downlink_check, /* epo_downlink_check */

--- 699 unchanged lines hidden ---