summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/apps/txrx.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-03-26 13:45:51 -0700
committerJosh Blum <josh@joshknows.com>2010-03-26 13:45:51 -0700
commit2276c737e8f5ea26e089090419e09c76c073421a (patch)
tree102e25820d0f571e7f1654ce07f937cb9d3d2a65 /firmware/microblaze/apps/txrx.c
parent1657a0220344438e235eddb569e3140531d2e021 (diff)
downloaduhd-2276c737e8f5ea26e089090419e09c76c073421a.tar.gz
uhd-2276c737e8f5ea26e089090419e09c76c073421a.tar.bz2
uhd-2276c737e8f5ea26e089090419e09c76c073421a.zip
removed that fw sets seq stuff, not applicable
Diffstat (limited to 'firmware/microblaze/apps/txrx.c')
-rw-r--r--firmware/microblaze/apps/txrx.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/firmware/microblaze/apps/txrx.c b/firmware/microblaze/apps/txrx.c
index f7d6ef98d..262995885 100644
--- a/firmware/microblaze/apps/txrx.c
+++ b/firmware/microblaze/apps/txrx.c
@@ -52,8 +52,6 @@
#include <ethertype.h>
#include <arp_cache.h>
-#define FW_SETS_SEQNO 1 // define to 0 or 1 (FIXME must be 1 for now)
-
/*
* Full duplex Tx and Rx between ethernet and DSP pipelines
*
@@ -704,14 +702,8 @@ static void setup_network(void){
sr_udp_sm->udp_hdr.checksum = UDP_SM_LAST_WORD; // zero UDP checksum
}
-#if (FW_SETS_SEQNO)
/*
- * Debugging ONLY. This will be handled by the tx_protocol_engine.
- *
* This is called when the DSP Rx chain has filled in a packet.
- * We set and increment the seqno, then return false, indicating
- * that we didn't handle the packet. A bit of a kludge
- * but it should work.
*/
bool
fw_sets_seqno_inspector(dbsm_t *sm, int buf_this) // returns false
@@ -731,7 +723,6 @@ fw_sets_seqno_inspector(dbsm_t *sm, int buf_this) // returns false
return false; // we didn't handle the packet
}
-#endif
inline static void
@@ -786,16 +777,10 @@ main(void)
// initialize double buffering state machine for DSP RX -> Ethernet
- if (FW_SETS_SEQNO){
dbsm_init(&dsp_rx_sm, DSP_RX_BUF_0,
&dsp_rx_recv_args, &dsp_rx_send_args,
fw_sets_seqno_inspector);
- }
- else {
- dbsm_init(&dsp_rx_sm, DSP_RX_BUF_0,
- &dsp_rx_recv_args, &dsp_rx_send_args,
- dbsm_nop_inspector);
- }
+
// tell app_common that this dbsm could be sending to the ethernet
ac_could_be_sending_to_eth = &dsp_rx_sm;