diff options
author | Yeasah Pell <yeasah@comrex.com> | 2009-07-06 21:12:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-06 21:54:51 -0400 |
commit | 5dcc60b71886795965fd5029b5d9a9ba7b5a2c17 (patch) | |
tree | 5611d123e03d280bccce73f868451b0bd39dcbe8 /drivers/net/dm9000.h | |
parent | 482d804cb4b520b6e3134c959c968712ebcdea02 (diff) |
dm9000: add checksum offload support
Add checksum offload support for DM9000A and DM9000B chips.
v2 changes: added a local copy of ip_summed to save IO cycles in dm9000_send_packet
v3 changes: trans_start updating is removed.
Signed-off-by: Yeasah Pell <yeasah@comrex.com>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dm9000.h')
-rw-r--r-- | drivers/net/dm9000.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/dm9000.h b/drivers/net/dm9000.h index ba25cf541420..80817c2edfb3 100644 --- a/drivers/net/dm9000.h +++ b/drivers/net/dm9000.h | |||
@@ -45,6 +45,10 @@ | |||
45 | #define DM9000_CHIPR 0x2C | 45 | #define DM9000_CHIPR 0x2C |
46 | #define DM9000_SMCR 0x2F | 46 | #define DM9000_SMCR 0x2F |
47 | 47 | ||
48 | #define DM9000_ETXCSR 0x30 | ||
49 | #define DM9000_TCCR 0x31 | ||
50 | #define DM9000_RCSR 0x32 | ||
51 | |||
48 | #define CHIPR_DM9000A 0x19 | 52 | #define CHIPR_DM9000A 0x19 |
49 | #define CHIPR_DM9000B 0x1B | 53 | #define CHIPR_DM9000B 0x1B |
50 | 54 | ||
@@ -131,7 +135,21 @@ | |||
131 | 135 | ||
132 | #define GPCR_GEP_CNTL (1<<0) | 136 | #define GPCR_GEP_CNTL (1<<0) |
133 | 137 | ||
138 | #define TCCR_IP (1<<0) | ||
139 | #define TCCR_TCP (1<<1) | ||
140 | #define TCCR_UDP (1<<2) | ||
141 | |||
142 | #define RCSR_UDP_BAD (1<<7) | ||
143 | #define RCSR_TCP_BAD (1<<6) | ||
144 | #define RCSR_IP_BAD (1<<5) | ||
145 | #define RCSR_UDP (1<<4) | ||
146 | #define RCSR_TCP (1<<3) | ||
147 | #define RCSR_IP (1<<2) | ||
148 | #define RCSR_CSUM (1<<1) | ||
149 | #define RCSR_DISCARD (1<<0) | ||
150 | |||
134 | #define DM9000_PKT_RDY 0x01 /* Packet ready to receive */ | 151 | #define DM9000_PKT_RDY 0x01 /* Packet ready to receive */ |
152 | #define DM9000_PKT_ERR 0x02 | ||
135 | #define DM9000_PKT_MAX 1536 /* Received packet max size */ | 153 | #define DM9000_PKT_MAX 1536 /* Received packet max size */ |
136 | 154 | ||
137 | /* DM9000A / DM9000B definitions */ | 155 | /* DM9000A / DM9000B definitions */ |