diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-23 11:08:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-24 13:59:04 -0500 |
commit | c459302db655c1a7fd05fd4266b18990854e8386 (patch) | |
tree | 94adde79f8c3a5a447305cf425a5caa1c7091df7 /drivers/net/sfc/enum.h | |
parent | f5e7adc3d4aa8edab63bb63f0ce5fe92c3dd7604 (diff) |
sfc: Log interrupt and reset type names, not numbers
Define name tables for these enumerations in a similar way as for
loopback. Move the loopback name table together with them.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/enum.h')
-rw-r--r-- | drivers/net/sfc/enum.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/sfc/enum.h b/drivers/net/sfc/enum.h index 60cbc6e1e66b..fcd14b73f24d 100644 --- a/drivers/net/sfc/enum.h +++ b/drivers/net/sfc/enum.h | |||
@@ -40,12 +40,6 @@ enum efx_loopback_mode { | |||
40 | 40 | ||
41 | #define LOOPBACK_TEST_MAX LOOPBACK_PMAPMD | 41 | #define LOOPBACK_TEST_MAX LOOPBACK_PMAPMD |
42 | 42 | ||
43 | extern const char *efx_loopback_mode_names[]; | ||
44 | #define LOOPBACK_MODE_NAME(mode) \ | ||
45 | STRING_TABLE_LOOKUP(mode, efx_loopback_mode) | ||
46 | #define LOOPBACK_MODE(efx) \ | ||
47 | LOOPBACK_MODE_NAME(efx->loopback_mode) | ||
48 | |||
49 | /* These loopbacks occur within the controller */ | 43 | /* These loopbacks occur within the controller */ |
50 | #define LOOPBACKS_INTERNAL ((1 << LOOPBACK_GMAC) | \ | 44 | #define LOOPBACKS_INTERNAL ((1 << LOOPBACK_GMAC) | \ |
51 | (1 << LOOPBACK_XGMII)| \ | 45 | (1 << LOOPBACK_XGMII)| \ |