aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/usrp2p
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-12-17 13:45:57 -0800
committerJosh Blum <josh@joshknows.com>2010-12-17 13:45:57 -0800
commit0e66165d43d896bbc263dcf3481b94450d7de89f (patch)
treec6ab3365d456a9c359003f87846a55938ca8d800 /firmware/microblaze/usrp2p
parent72c7a0c9f0e41afe9713465eaa6ff2f189122753 (diff)
downloaduhd-0e66165d43d896bbc263dcf3481b94450d7de89f.tar.gz
uhd-0e66165d43d896bbc263dcf3481b94450d7de89f.tar.bz2
uhd-0e66165d43d896bbc263dcf3481b94450d7de89f.zip
udp_ports: set the source and destination ports
Diffstat (limited to 'firmware/microblaze/usrp2p')
-rw-r--r--firmware/microblaze/usrp2p/memory_map.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/microblaze/usrp2p/memory_map.h b/firmware/microblaze/usrp2p/memory_map.h
index 140ab0675..db47d0b5f 100644
--- a/firmware/microblaze/usrp2p/memory_map.h
+++ b/firmware/microblaze/usrp2p/memory_map.h
@@ -462,7 +462,7 @@ typedef struct {
uint32_t length;
uint32_t checksum; //word 22
} udp_hdr;
- volatile uint32_t _pad[2];
+ volatile uint32_t _pad[1];
volatile uint32_t dsp0_port;
volatile uint32_t err0_port;
volatile uint32_t dsp1_port;
@@ -471,8 +471,11 @@ typedef struct {
// control bits (all expect UDP_SM_LAST_WORD are mutually exclusive)
+// Insert a UDP source port from the table
+#define UDP_SM_INS_UDP_SRC_PORT (1 << 21)
+
// Insert a UDP dest port from the table
-#define UDP_SM_INS_UDP_PORT (1 << 20)
+#define UDP_SM_INS_UDP_DST_PORT (1 << 20)
// This is the last word of the header
#define UDP_SM_LAST_WORD (1 << 19)