diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-08-11 10:14:26 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-08-11 10:14:26 -0400 |
commit | 40174f119de13d9d295a2e68c6410b9e4aa9ff82 (patch) | |
tree | ecc8ba712fe275e10bac8d1d3499745f8e9fe591 /dev/ns_gige_reg.h | |
parent | 256afbbe2658f5ad8cfbe4c59aa5757e92531f98 (diff) | |
download | gem5-40174f119de13d9d295a2e68c6410b9e4aa9ff82.tar.xz |
cleanup interrupt code for gigabit device
dev/ns_gige.cc:
Clean up the interrupt code. Do a better job determining when
coalescing should happen.
Remove some bogus comments
Stop using magic numbers in initialization and comment what
the various numbers do
dev/ns_gige_reg.h:
#define describing which interrupts cannot be delayed and
which interrrupts we don't implement
--HG--
extra : convert_revision : eb196afa0bf448e1849dd2bd30dde32134effee7
Diffstat (limited to 'dev/ns_gige_reg.h')
-rw-r--r-- | dev/ns_gige_reg.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/dev/ns_gige_reg.h b/dev/ns_gige_reg.h index c87dfe960..01577fa39 100644 --- a/dev/ns_gige_reg.h +++ b/dev/ns_gige_reg.h @@ -55,17 +55,13 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - - - - /* @file * Ethernet device register definitions for the National * Semiconductor DP83820 Ethernet controller */ -#ifndef _NS_GIGE_H -#define _NS_GIGE_H_ +#ifndef __DEV_NS_GIGE_REG_H__ +#define __DEV_NS_GIGE_REG_H__ /* * Configuration Register Map @@ -220,6 +216,9 @@ #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)) /* transmit configuration register */ #define TXCFG_CSI 0x80000000 @@ -369,4 +368,4 @@ struct ns_desc { /* speed status */ #define SPDSTS_POLARITY (CFG_SPDSTS1 | CFG_SPDSTS0 | CFG_DUPSTS | (lnksts ? CFG_LNKSTS : 0)) -#endif /* _NS_GIGE_H_ */ +#endif /* __DEV_NS_GIGE_REG_H__ */ |