diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-06-19 23:29:23 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-19 17:01:39 -0700 |
commit | ea7d69e75ac06daa7bc2fca2a8317197e5e3c81c (patch) | |
tree | 4a6fba52da0dbf87bc0468c0517066db9972f7d3 /drivers/net/ethernet/renesas/sh_eth.h | |
parent | d98cae64e4a733ff377184d78aa0b1f2b54faede (diff) | |
download | op-kernel-dev-ea7d69e75ac06daa7bc2fca2a8317197e5e3c81c.zip op-kernel-dev-ea7d69e75ac06daa7bc2fca2a8317197e5e3c81c.tar.gz |
sh_eth: define/use EESR_RX_CHECK macro
sh_eth_interrupt() uses the same Rx interrupt mask twice to check the interrupt
status register -- #define EESR_RX_CHECK and use it instead.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas/sh_eth.h')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.h b/drivers/net/ethernet/renesas/sh_eth.h index 729e77e..d05b60b 100644 --- a/drivers/net/ethernet/renesas/sh_eth.h +++ b/drivers/net/ethernet/renesas/sh_eth.h @@ -248,6 +248,14 @@ enum EESR_BIT { EESR_CERF = 0x00000001, }; +#define EESR_RX_CHECK (EESR_FRC | /* Frame recv */ \ + EESR_RMAF | /* Multicast address recv */ \ + EESR_RRF | /* Bit frame recv */ \ + EESR_RTLF | /* Long frame recv */ \ + EESR_RTSF | /* Short frame recv */ \ + EESR_PRE | /* PHY-LSI recv error */ \ + EESR_CERF) /* Recv frame CRC error */ + #define DEFAULT_TX_CHECK (EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | \ EESR_RTO) #define DEFAULT_EESR_ERR_CHECK (EESR_TWB | EESR_TABT | EESR_RABT | \ |