summaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-04-11 14:47:59 -0700
committerJeff Garzik <jeff@garzik.org>2007-04-19 15:01:17 -0400
commit40b01727a5a65597160f1738d3fbe63de902f0cb (patch)
treebdd854422122703257d5c25658201455f977abc0 /drivers/net/sky2.h
parent0a17e4c252ce951615f3c1fccae6d6262c8d4187 (diff)
downloadlinux-40b01727a5a65597160f1738d3fbe63de902f0cb.tar.bz2
sky2: handle descriptor errors
There should never be descriptor error unless hardware or driver is buggy. But if an error occurs, print useful information, clear irq, and recover. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r--drivers/net/sky2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h
index ac24bdc42976..9ca4a2c061c6 100644
--- a/drivers/net/sky2.h
+++ b/drivers/net/sky2.h
@@ -288,6 +288,9 @@ enum {
| Y2_IS_CHK_TXA1 | Y2_IS_CHK_RX1,
Y2_IS_PORT_2 = Y2_IS_IRQ_PHY2 | Y2_IS_IRQ_MAC2
| Y2_IS_CHK_TXA2 | Y2_IS_CHK_RX2,
+ Y2_IS_ERROR = Y2_IS_HW_ERR |
+ Y2_IS_IRQ_MAC1 | Y2_IS_CHK_TXA1 | Y2_IS_CHK_RX1 |
+ Y2_IS_IRQ_MAC2 | Y2_IS_CHK_TXA2 | Y2_IS_CHK_RX2,
};
/* B2_IRQM_HWE_MSK 32 bit IRQ Moderation HW Error Mask */