diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2006-12-19 16:09:08 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-05 16:58:47 -0500 |
commit | bc63eb9c7ec0eb7b091db2d82d46d1e68ff9e231 (patch) | |
tree | dfcbc44d49a516eb2c95ac2f724fbee52427d0fd /drivers/net/skfp/smt.c | |
parent | 079ca7da1e6d05c7cb82e9c4f2e1d98839332664 (diff) |
net: use bitrev8
Use bitrev8 for bmac, mace, macmace, macsonic, and skfp drivers.
[akpm@osdl.org: use the API, not the array]
Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mirko Lindner <mlindner@syskonnect.de>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/skfp/smt.c')
-rw-r--r-- | drivers/net/skfp/smt.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/skfp/smt.c b/drivers/net/skfp/smt.c index 99a776a51fb5..fe847800acdc 100644 --- a/drivers/net/skfp/smt.c +++ b/drivers/net/skfp/smt.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "h/fddi.h" | 18 | #include "h/fddi.h" |
19 | #include "h/smc.h" | 19 | #include "h/smc.h" |
20 | #include "h/smt_p.h" | 20 | #include "h/smt_p.h" |
21 | #include <linux/bitrev.h> | ||
21 | 22 | ||
22 | #define KERNEL | 23 | #define KERNEL |
23 | #include "h/smtstate.h" | 24 | #include "h/smtstate.h" |
@@ -26,8 +27,6 @@ | |||
26 | static const char ID_sccs[] = "@(#)smt.c 2.43 98/11/23 (C) SK " ; | 27 | static const char ID_sccs[] = "@(#)smt.c 2.43 98/11/23 (C) SK " ; |
27 | #endif | 28 | #endif |
28 | 29 | ||
29 | extern const u_char canonical[256] ; | ||
30 | |||
31 | /* | 30 | /* |
32 | * FC in SMbuf | 31 | * FC in SMbuf |
33 | */ | 32 | */ |
@@ -180,7 +179,7 @@ void smt_agent_init(struct s_smc *smc) | |||
180 | driver_get_bia(smc,&smc->mib.fddiSMTStationId.sid_node) ; | 179 | driver_get_bia(smc,&smc->mib.fddiSMTStationId.sid_node) ; |
181 | for (i = 0 ; i < 6 ; i ++) { | 180 | for (i = 0 ; i < 6 ; i ++) { |
182 | smc->mib.fddiSMTStationId.sid_node.a[i] = | 181 | smc->mib.fddiSMTStationId.sid_node.a[i] = |
183 | canonical[smc->mib.fddiSMTStationId.sid_node.a[i]] ; | 182 | bitrev8(smc->mib.fddiSMTStationId.sid_node.a[i]); |
184 | } | 183 | } |
185 | smc->mib.fddiSMTManufacturerData[0] = | 184 | smc->mib.fddiSMTManufacturerData[0] = |
186 | smc->mib.fddiSMTStationId.sid_node.a[0] ; | 185 | smc->mib.fddiSMTStationId.sid_node.a[0] ; |
@@ -2049,9 +2048,8 @@ static void hwm_conv_can(struct s_smc *smc, char *data, int len) | |||
2049 | 2048 | ||
2050 | SK_UNUSED(smc) ; | 2049 | SK_UNUSED(smc) ; |
2051 | 2050 | ||
2052 | for (i = len; i ; i--, data++) { | 2051 | for (i = len; i ; i--, data++) |
2053 | *data = canonical[*(u_char *)data] ; | 2052 | *data = bitrev8(*data); |
2054 | } | ||
2055 | } | 2053 | } |
2056 | #endif | 2054 | #endif |
2057 | 2055 | ||