diff options
author | Olof Johansson <olof@lixom.net> | 2007-10-02 17:27:39 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:54:27 -0400 |
commit | 9e81d331f2ec65695e4366ce592e14f9700bae8b (patch) | |
tree | cc193c4fbceed81065ead642b7da009d8ffba746 /drivers/net/pasemi_mac.h | |
parent | 7ddeae2c6ceed7f786344731dda27d4277957780 (diff) |
pasemi_mac: clear out old errors on interface open
pasemi_mac: clear out old errors on interface open
Clear out any pending errors when an interface is brought up. Since the bits
are sticky, they might be from interface shutdown time after firmware has
used it, etc.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/pasemi_mac.h')
-rw-r--r-- | drivers/net/pasemi_mac.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/pasemi_mac.h b/drivers/net/pasemi_mac.h index db3393674ae7..0bb3c487478d 100644 --- a/drivers/net/pasemi_mac.h +++ b/drivers/net/pasemi_mac.h | |||
@@ -241,6 +241,10 @@ enum { | |||
241 | #define PAS_DMA_TXCHAN_TCMDSTA_EN 0x00000001 /* Enabled */ | 241 | #define PAS_DMA_TXCHAN_TCMDSTA_EN 0x00000001 /* Enabled */ |
242 | #define PAS_DMA_TXCHAN_TCMDSTA_ST 0x00000002 /* Stop interface */ | 242 | #define PAS_DMA_TXCHAN_TCMDSTA_ST 0x00000002 /* Stop interface */ |
243 | #define PAS_DMA_TXCHAN_TCMDSTA_ACT 0x00010000 /* Active */ | 243 | #define PAS_DMA_TXCHAN_TCMDSTA_ACT 0x00010000 /* Active */ |
244 | #define PAS_DMA_TXCHAN_TCMDSTA_SZ 0x00000800 | ||
245 | #define PAS_DMA_TXCHAN_TCMDSTA_DB 0x00000400 | ||
246 | #define PAS_DMA_TXCHAN_TCMDSTA_DE 0x00000200 | ||
247 | #define PAS_DMA_TXCHAN_TCMDSTA_DA 0x00000100 | ||
244 | #define PAS_DMA_TXCHAN_CFG(c) (0x304+(c)*_PAS_DMA_TXCHAN_STRIDE) | 248 | #define PAS_DMA_TXCHAN_CFG(c) (0x304+(c)*_PAS_DMA_TXCHAN_STRIDE) |
245 | #define PAS_DMA_TXCHAN_CFG_TY_IFACE 0x00000000 /* Type = interface */ | 249 | #define PAS_DMA_TXCHAN_CFG_TY_IFACE 0x00000000 /* Type = interface */ |
246 | #define PAS_DMA_TXCHAN_CFG_TATTR_M 0x0000003c | 250 | #define PAS_DMA_TXCHAN_CFG_TATTR_M 0x0000003c |
@@ -283,6 +287,9 @@ enum { | |||
283 | #define PAS_DMA_RXCHAN_CCMDSTA_ST 0x00000002 /* Stop interface */ | 287 | #define PAS_DMA_RXCHAN_CCMDSTA_ST 0x00000002 /* Stop interface */ |
284 | #define PAS_DMA_RXCHAN_CCMDSTA_ACT 0x00010000 /* Active */ | 288 | #define PAS_DMA_RXCHAN_CCMDSTA_ACT 0x00010000 /* Active */ |
285 | #define PAS_DMA_RXCHAN_CCMDSTA_DU 0x00020000 | 289 | #define PAS_DMA_RXCHAN_CCMDSTA_DU 0x00020000 |
290 | #define PAS_DMA_RXCHAN_CCMDSTA_OD 0x00002000 | ||
291 | #define PAS_DMA_RXCHAN_CCMDSTA_FD 0x00001000 | ||
292 | #define PAS_DMA_RXCHAN_CCMDSTA_DT 0x00000800 | ||
286 | #define PAS_DMA_RXCHAN_CFG(c) (0x804+(c)*_PAS_DMA_RXCHAN_STRIDE) | 293 | #define PAS_DMA_RXCHAN_CFG(c) (0x804+(c)*_PAS_DMA_RXCHAN_STRIDE) |
287 | #define PAS_DMA_RXCHAN_CFG_HBU_M 0x00000380 | 294 | #define PAS_DMA_RXCHAN_CFG_HBU_M 0x00000380 |
288 | #define PAS_DMA_RXCHAN_CFG_HBU_S 7 | 295 | #define PAS_DMA_RXCHAN_CFG_HBU_S 7 |