summaryrefslogtreecommitdiff
path: root/usrp2/firmware
diff options
context:
space:
mode:
authormatt2009-04-02 21:30:48 +0000
committermatt2009-04-02 21:30:48 +0000
commite12cfbc559caec03dd0f2ca244478431ccbfb9c5 (patch)
tree3eeaea86b375dd0939e6f0d685bad32c2f56f4af /usrp2/firmware
parent8352532036a0721c7812f032091d0ae8d15bb4f0 (diff)
downloadgnuradio-e12cfbc559caec03dd0f2ca244478431ccbfb9c5.tar.gz
gnuradio-e12cfbc559caec03dd0f2ca244478431ccbfb9c5.tar.bz2
gnuradio-e12cfbc559caec03dd0f2ca244478431ccbfb9c5.zip
new regs for re-pause fix
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10748 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/firmware')
-rw-r--r--usrp2/firmware/lib/eth_mac.c2
-rw-r--r--usrp2/firmware/lib/eth_mac_regs.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/usrp2/firmware/lib/eth_mac.c b/usrp2/firmware/lib/eth_mac.c
index f0b3a57ba..5fadaf40b 100644
--- a/usrp2/firmware/lib/eth_mac.c
+++ b/usrp2/firmware/lib/eth_mac.c
@@ -69,6 +69,8 @@ eth_mac_init(const u2_mac_addr_t *src)
eth_mac->fc_lwmark = 600; // there are currently 2047 lines in the fifo
eth_mac->fc_hwmark = 1200;
+ eth_mac->fc_padtime = 1700; // how long before flow control runs out do we
+ // request a re-pause. Units of 8ns (bytes)
//eth_mac->tx_pause_en = 0; // pay attn to pause frames sent to us
//eth_mac->pause_quanta_set = 38; // a bit more than 1 max frame 16kb/512 + fudge
diff --git a/usrp2/firmware/lib/eth_mac_regs.h b/usrp2/firmware/lib/eth_mac_regs.h
index bb6d2519b..8daab937d 100644
--- a/usrp2/firmware/lib/eth_mac_regs.h
+++ b/usrp2/firmware/lib/eth_mac_regs.h
@@ -81,6 +81,7 @@ typedef struct {
volatile int miitx_data;
volatile int miirx_data;
volatile int miistatus;
+ volatile int fc_padtime;
} eth_mac_regs_t;
// miicommand register