diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-08-23 00:43:22 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:00 -0400 |
commit | c559a5bc9417c00ba2df59397a27eaf8d8e52aec (patch) | |
tree | d3f0896f675bb98824d87090423f49f5eb3204b2 /drivers/net/tulip/de4x5.c | |
parent | 701181ac1d9ac465a3614061cb60ded4033c4d07 (diff) |
tulip: endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/tulip/de4x5.c')
-rw-r--r-- | drivers/net/tulip/de4x5.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c index 4633cc6dd412..9b9cd83fb8b6 100644 --- a/drivers/net/tulip/de4x5.c +++ b/drivers/net/tulip/de4x5.c | |||
@@ -482,7 +482,7 @@ | |||
482 | static char version[] __devinitdata = "de4x5.c:V0.546 2001/02/22 davies@maniac.ultranet.com\n"; | 482 | static char version[] __devinitdata = "de4x5.c:V0.546 2001/02/22 davies@maniac.ultranet.com\n"; |
483 | 483 | ||
484 | #define c_char const char | 484 | #define c_char const char |
485 | #define TWIDDLE(a) (u_short)le16_to_cpu(get_unaligned((u_short *)(a))) | 485 | #define TWIDDLE(a) (u_short)le16_to_cpu(get_unaligned((__le16 *)(a))) |
486 | 486 | ||
487 | /* | 487 | /* |
488 | ** MII Information | 488 | ** MII Information |
@@ -756,10 +756,10 @@ struct de4x5_srom { | |||
756 | /* Multiple of 4 for DC21040 */ | 756 | /* Multiple of 4 for DC21040 */ |
757 | /* Allows 512 byte alignment */ | 757 | /* Allows 512 byte alignment */ |
758 | struct de4x5_desc { | 758 | struct de4x5_desc { |
759 | volatile s32 status; | 759 | volatile __le32 status; |
760 | u32 des1; | 760 | __le32 des1; |
761 | u32 buf; | 761 | __le32 buf; |
762 | u32 next; | 762 | __le32 next; |
763 | DESC_ALIGN | 763 | DESC_ALIGN |
764 | }; | 764 | }; |
765 | 765 | ||