efx_mon.c (293814) | efx_mon.c (299324) |
---|---|
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_mon.c 293814 2016-01-13 07:25:51Z arybchik $"); | 32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_mon.c 299324 2016-05-10 07:08:40Z arybchik $"); |
33 34#include "efx.h" 35#include "efx_impl.h" 36 37#if EFSYS_OPT_MON_NULL 38#include "nullmon.h" 39#endif 40 | 33 34#include "efx.h" 35#include "efx_impl.h" 36 37#if EFSYS_OPT_MON_NULL 38#include "nullmon.h" 39#endif 40 |
41#if EFSYS_OPT_MON_LM87 42#include "lm87.h" 43#endif 44 | |
45#if EFSYS_OPT_MON_MAX6647 46#include "max6647.h" 47#endif 48 49#if EFSYS_OPT_MON_MCDI 50#include "mcdi_mon.h" 51#endif 52 --- 29 unchanged lines hidden (view full) --- 82 nullmon_reset, /* emo_reset */ 83 nullmon_reconfigure, /* emo_reconfigure */ 84#if EFSYS_OPT_MON_STATS 85 nullmon_stats_update /* emo_stats_update */ 86#endif /* EFSYS_OPT_MON_STATS */ 87}; 88#endif 89 | 41#if EFSYS_OPT_MON_MAX6647 42#include "max6647.h" 43#endif 44 45#if EFSYS_OPT_MON_MCDI 46#include "mcdi_mon.h" 47#endif 48 --- 29 unchanged lines hidden (view full) --- 78 nullmon_reset, /* emo_reset */ 79 nullmon_reconfigure, /* emo_reconfigure */ 80#if EFSYS_OPT_MON_STATS 81 nullmon_stats_update /* emo_stats_update */ 82#endif /* EFSYS_OPT_MON_STATS */ 83}; 84#endif 85 |
90#if EFSYS_OPT_MON_LM87 91static efx_mon_ops_t __efx_mon_lm87_ops = { 92 lm87_reset, /* emo_reset */ 93 lm87_reconfigure, /* emo_reconfigure */ 94#if EFSYS_OPT_MON_STATS 95 lm87_stats_update /* emo_stats_update */ 96#endif /* EFSYS_OPT_MON_STATS */ 97}; 98#endif 99 | |
100#if EFSYS_OPT_MON_MAX6647 101static efx_mon_ops_t __efx_mon_max6647_ops = { 102 max6647_reset, /* emo_reset */ 103 max6647_reconfigure, /* emo_reconfigure */ 104#if EFSYS_OPT_MON_STATS 105 max6647_stats_update /* emo_stats_update */ 106#endif /* EFSYS_OPT_MON_STATS */ 107}; --- 33 unchanged lines hidden (view full) --- 141 142 EFSYS_ASSERT(encp->enc_mon_type != EFX_MON_INVALID); 143 switch (emp->em_type) { 144#if EFSYS_OPT_MON_NULL 145 case EFX_MON_NULL: 146 emop = &__efx_mon_null_ops; 147 break; 148#endif | 86#if EFSYS_OPT_MON_MAX6647 87static efx_mon_ops_t __efx_mon_max6647_ops = { 88 max6647_reset, /* emo_reset */ 89 max6647_reconfigure, /* emo_reconfigure */ 90#if EFSYS_OPT_MON_STATS 91 max6647_stats_update /* emo_stats_update */ 92#endif /* EFSYS_OPT_MON_STATS */ 93}; --- 33 unchanged lines hidden (view full) --- 127 128 EFSYS_ASSERT(encp->enc_mon_type != EFX_MON_INVALID); 129 switch (emp->em_type) { 130#if EFSYS_OPT_MON_NULL 131 case EFX_MON_NULL: 132 emop = &__efx_mon_null_ops; 133 break; 134#endif |
149#if EFSYS_OPT_MON_LM87 150 case EFX_MON_LM87: 151 emop = &__efx_mon_lm87_ops; 152 break; 153#endif | |
154#if EFSYS_OPT_MON_MAX6647 155 case EFX_MON_MAX6647: 156 emop = &__efx_mon_max6647_ops; 157 break; 158#endif 159#if EFSYS_OPT_MON_MCDI 160 case EFX_MON_SFC90X0: 161 case EFX_MON_SFC91X0: --- 183 unchanged lines hidden --- | 135#if EFSYS_OPT_MON_MAX6647 136 case EFX_MON_MAX6647: 137 emop = &__efx_mon_max6647_ops; 138 break; 139#endif 140#if EFSYS_OPT_MON_MCDI 141 case EFX_MON_SFC90X0: 142 case EFX_MON_SFC91X0: --- 183 unchanged lines hidden --- |