diff options
author | Josh Blum <josh@joshknows.com> | 2010-11-23 18:09:51 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-11 18:43:10 -0800 |
commit | 07de916b7646c78d4ad5ba9104d52343e993d198 (patch) | |
tree | 405a679edfadec9d98103e8c2d5b9bb531841096 /firmware/microblaze/lib/eth_mac.c | |
parent | 95499e2e132b1c619704b6fbc452e661633b3233 (diff) | |
download | uhd-07de916b7646c78d4ad5ba9104d52343e993d198.tar.gz uhd-07de916b7646c78d4ad5ba9104d52343e993d198.tar.bz2 uhd-07de916b7646c78d4ad5ba9104d52343e993d198.zip |
packet_router: added sregs for ip addr and ports
the pkt control now programs the inspector with port and ip addr
set the eth mac to pass all unicast
added easy debug flag to net common
Diffstat (limited to 'firmware/microblaze/lib/eth_mac.c')
-rw-r--r-- | firmware/microblaze/lib/eth_mac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/microblaze/lib/eth_mac.c b/firmware/microblaze/lib/eth_mac.c index 034a4d494..581a5c69f 100644 --- a/firmware/microblaze/lib/eth_mac.c +++ b/firmware/microblaze/lib/eth_mac.c @@ -28,6 +28,7 @@ void eth_mac_set_addr(const eth_mac_addr_t *src) { + /* disable because MAC_SET_PASS_ALL is set below eth_mac->ucast_hi = (((unsigned int)src->addr[0])<<8) + ((unsigned int)src->addr[1]); @@ -36,6 +37,7 @@ eth_mac_set_addr(const eth_mac_addr_t *src) (((unsigned int)src->addr[3])<<16) + (((unsigned int)src->addr[4])<<8) + (((unsigned int)src->addr[5])); +*/ } @@ -45,7 +47,7 @@ eth_mac_init(const eth_mac_addr_t *src) eth_mac->miimoder = 25; // divider from CPU clock (50MHz/25 = 2MHz) eth_mac_set_addr(src); - eth_mac->settings = MAC_SET_PAUSE_EN | MAC_SET_PASS_BCAST | MAC_SET_PASS_UCAST | MAC_SET_PAUSE_SEND_EN; + eth_mac->settings = MAC_SET_PAUSE_EN | MAC_SET_PASS_BCAST | MAC_SET_PASS_UCAST | MAC_SET_PAUSE_SEND_EN | MAC_SET_PASS_ALL; eth_mac->pause_time = 38; eth_mac->pause_thresh = 1200; |