aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-08-13 22:30:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-08-13 22:30:14 +0000
commit56093f4fdbacb2fa2d690681be1b7e4009ec4cfb (patch)
treee4e4aca4d6efed85206aa1d9c8160b2eb661060f /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
parent02c8410ffdec76e7f796c843d6d376633b6fc6e5 (diff)
downloadupstream-56093f4fdbacb2fa2d690681be1b7e4009ec4cfb.tar.gz
upstream-56093f4fdbacb2fa2d690681be1b7e4009ec4cfb.tar.bz2
upstream-56093f4fdbacb2fa2d690681be1b7e4009ec4cfb.zip
ar71xx: add some code to detect DMA stuck conditions on ar7240
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27975 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
index d5cc46c42a..0222cab797 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
@@ -236,6 +236,10 @@ static inline int ag71xx_desc_pktlen(struct ag71xx_desc *desc)
#define AG71XX_REG_INT_ENABLE 0x0198
#define AG71XX_REG_INT_STATUS 0x019c
+#define AG71XX_REG_FIFO_DEPTH 0x01a8
+#define AG71XX_REG_RX_SM 0x01b0
+#define AG71XX_REG_TX_SM 0x01b4
+
#define MAC_CFG1_TXE BIT(0) /* Tx Enable */
#define MAC_CFG1_STX BIT(1) /* Synchronize Tx Enable */
#define MAC_CFG1_RXE BIT(2) /* Rx Enable */