efx_mon.c (299324) | efx_mon.c (299325) |
---|---|
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 299324 2016-05-10 07:08:40Z arybchik $"); | 32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_mon.c 299325 2016-05-10 07:09:18Z 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_MAX6647 42#include "max6647.h" 43#endif 44 | |
45#if EFSYS_OPT_MON_MCDI 46#include "mcdi_mon.h" 47#endif 48 49#if EFSYS_OPT_NAMES 50 51static const char *__efx_mon_name[] = { 52 "", --- 25 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 | 41#if EFSYS_OPT_MON_MCDI 42#include "mcdi_mon.h" 43#endif 44 45#if EFSYS_OPT_NAMES 46 47static const char *__efx_mon_name[] = { 48 "", --- 25 unchanged lines hidden (view full) --- 74 nullmon_reset, /* emo_reset */ 75 nullmon_reconfigure, /* emo_reconfigure */ 76#if EFSYS_OPT_MON_STATS 77 nullmon_stats_update /* emo_stats_update */ 78#endif /* EFSYS_OPT_MON_STATS */ 79}; 80#endif 81 |
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}; 94#endif 95 | |
96#if EFSYS_OPT_MON_MCDI 97static efx_mon_ops_t __efx_mon_mcdi_ops = { 98 NULL, /* emo_reset */ 99 NULL, /* emo_reconfigure */ 100#if EFSYS_OPT_MON_STATS 101 mcdi_mon_stats_update /* emo_stats_update */ 102#endif /* EFSYS_OPT_MON_STATS */ 103}; --- 23 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 | 82#if EFSYS_OPT_MON_MCDI 83static efx_mon_ops_t __efx_mon_mcdi_ops = { 84 NULL, /* emo_reset */ 85 NULL, /* emo_reconfigure */ 86#if EFSYS_OPT_MON_STATS 87 mcdi_mon_stats_update /* emo_stats_update */ 88#endif /* EFSYS_OPT_MON_STATS */ 89}; --- 23 unchanged lines hidden (view full) --- 113 114 EFSYS_ASSERT(encp->enc_mon_type != EFX_MON_INVALID); 115 switch (emp->em_type) { 116#if EFSYS_OPT_MON_NULL 117 case EFX_MON_NULL: 118 emop = &__efx_mon_null_ops; 119 break; 120#endif |
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: 143 case EFX_MON_SFC92X0: 144 emop = &__efx_mon_mcdi_ops; 145 break; 146#endif 147 default: --- 178 unchanged lines hidden --- | 121#if EFSYS_OPT_MON_MCDI 122 case EFX_MON_SFC90X0: 123 case EFX_MON_SFC91X0: 124 case EFX_MON_SFC92X0: 125 emop = &__efx_mon_mcdi_ops; 126 break; 127#endif 128 default: --- 178 unchanged lines hidden --- |