summaryrefslogtreecommitdiff
path: root/dev/ns_gige_reg.h
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-09-18 21:22:57 -0400
committerNathan Binkert <binkertn@umich.edu>2005-09-18 21:22:57 -0400
commite1c61e5b2f041b5b0a48ae2ba146d537757d5e01 (patch)
treef4a38b81428073b04e85a9f5dc31a9859ce38c7c /dev/ns_gige_reg.h
parentb1a1566818777acde37ae3dbf5ffea9ddca2d4a0 (diff)
downloadgem5-e1c61e5b2f041b5b0a48ae2ba146d537757d5e01.tar.xz
Tweak the set of coalesced interrupts
dev/ns_gige.cc: clean up usage of ISR_FOO macros dev/ns_gige_reg.h: Clean up #defines make ISR_RXIDLE and ISR_TXIDLE coalesced --HG-- extra : convert_revision : fd64fc6a441d096fc45737fdcb837de8868ca10a
Diffstat (limited to 'dev/ns_gige_reg.h')
-rw-r--r--dev/ns_gige_reg.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/dev/ns_gige_reg.h b/dev/ns_gige_reg.h
index 77b12dbd8..cbbe1dc95 100644
--- a/dev/ns_gige_reg.h
+++ b/dev/ns_gige_reg.h
@@ -171,9 +171,12 @@
#define ISR_RXDESC 0x00000002
#define ISR_RXOK 0x00000001
#define ISR_ALL 0x7FFFFFFF
-#define ISR_NODELAY (ISR_ALL & ~(ISR_RXOK|ISR_RXDESC|ISR_TXOK|ISR_TXDESC))
-#define ISR_NOIMPL (~(ISR_SWI|ISR_TXIDLE|ISR_TXDESC|ISR_TXOK|ISR_RXORN| \
- ISR_RXIDLE|ISR_RXDESC|ISR_RXOK))
+#define ISR_DELAY (ISR_TXIDLE|ISR_TXDESC|ISR_TXOK| \
+ ISR_RXIDLE|ISR_RXDESC|ISR_RXOK)
+#define ISR_NODELAY (ISR_ALL & ~ISR_DELAY)
+#define ISR_IMPL (ISR_SWI|ISR_TXIDLE|ISR_TXDESC|ISR_TXOK|ISR_RXORN| \
+ ISR_RXIDLE|ISR_RXDESC|ISR_RXOK)
+#define ISR_NOIMPL (ISR_ALL & ~ISR_IMPL)
/* transmit configuration register */
#define TX_CFG_CSI 0x80000000