aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ezchip/nps_enet.h
diff options
context:
space:
mode:
authorNoam Camus <noamc@ezchip.com>2015-08-20 08:00:01 +0300
committerDavid S. Miller <davem@davemloft.net>2015-08-23 16:08:53 -0700
commit0dd20f3ce04e75521bd3f9867ecbc852ab348912 (patch)
tree231fc9ce3ad2d7ee351a4c047aac1e04165bdd34 /drivers/net/ethernet/ezchip/nps_enet.h
parent1728369e8c57f27e0374f4702cbfdb9196bc586b (diff)
downloadleg-kernel-0dd20f3ce04e75521bd3f9867ecbc852ab348912.tar.gz
NET: nps_enet: replace use of cause register
When interrupt is received we read directly from control register for RX/TX instead of reading cause register since this register fails to indicate TX done when TX interrupt is "edge mode". Signed-off-by: Noam Camus <noamc@ezchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ezchip/nps_enet.h')
-rw-r--r--drivers/net/ethernet/ezchip/nps_enet.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/net/ethernet/ezchip/nps_enet.h b/drivers/net/ethernet/ezchip/nps_enet.h
index fc45c9daa1c2..6703674d679c 100644
--- a/drivers/net/ethernet/ezchip/nps_enet.h
+++ b/drivers/net/ethernet/ezchip/nps_enet.h
@@ -36,7 +36,6 @@
#define NPS_ENET_REG_RX_CTL 0x810
#define NPS_ENET_REG_RX_BUF 0x818
#define NPS_ENET_REG_BUF_INT_ENABLE 0x8C0
-#define NPS_ENET_REG_BUF_INT_CAUSE 0x8C4
#define NPS_ENET_REG_GE_MAC_CFG_0 0x1000
#define NPS_ENET_REG_GE_MAC_CFG_1 0x1004
#define NPS_ENET_REG_GE_MAC_CFG_2 0x1008
@@ -108,25 +107,6 @@ struct nps_enet_buf_int_enable {
};
};
-/* Interrupt cause for data buffer events register */
-struct nps_enet_buf_int_cause {
- union {
- /* tx_done: Interrupt in the case when current frame was
- * read from TX buffer.
- * rx_rdy: Interrupt in the case when new frame is ready
- * in RX buffer.
- */
- struct {
- u32
- __reserved:30,
- tx_done:1,
- rx_rdy:1;
- };
-
- u32 value;
- };
-};
-
/* Gbps Eth MAC Configuration 0 register */
struct nps_enet_ge_mac_cfg_0 {
union {