diff options
author | Josh Blum <josh@joshknows.com> | 2010-12-10 18:57:17 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-11 18:43:48 -0800 |
commit | 096405b9291d1d3b3ac37d9768232cca43a37db6 (patch) | |
tree | 48d18abe87ffec517a76e2fd3fad3c4f5aa92201 /firmware/microblaze/lib | |
parent | e53662172430ba055f6b60d74c142995aa24deaf (diff) | |
download | uhd-096405b9291d1d3b3ac37d9768232cca43a37db6.tar.gz uhd-096405b9291d1d3b3ac37d9768232cca43a37db6.tar.bz2 uhd-096405b9291d1d3b3ac37d9768232cca43a37db6.zip |
packet_router: added control register to set the udp control port
Diffstat (limited to 'firmware/microblaze/lib')
-rw-r--r-- | firmware/microblaze/lib/pkt_ctrl.c | 5 | ||||
-rw-r--r-- | firmware/microblaze/lib/pkt_ctrl.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/firmware/microblaze/lib/pkt_ctrl.c b/firmware/microblaze/lib/pkt_ctrl.c index d2bfc339d..7e095ec00 100644 --- a/firmware/microblaze/lib/pkt_ctrl.c +++ b/firmware/microblaze/lib/pkt_ctrl.c @@ -20,10 +20,11 @@ #include <nonstdio.h> void pkt_ctrl_program_inspector( - const struct ip_addr *ip_addr, uint16_t dsp_udp_port + const struct ip_addr *ip_addr, uint16_t ctrl_port, uint16_t data_port ){ buffer_pool_ctrl->ip_addr = ip_addr->addr; - buffer_pool_ctrl->udp_ports = dsp_udp_port; + buffer_pool_ctrl->ctrl_ports = ctrl_port; + buffer_pool_ctrl->data_ports = data_port; } void pkt_ctrl_set_routing_mode(pkt_ctrl_routing_mode_t mode){ diff --git a/firmware/microblaze/lib/pkt_ctrl.h b/firmware/microblaze/lib/pkt_ctrl.h index 927d1fc7a..346e22094 100644 --- a/firmware/microblaze/lib/pkt_ctrl.h +++ b/firmware/microblaze/lib/pkt_ctrl.h @@ -30,7 +30,7 @@ typedef enum { //! Program the decision values into the packet inspector void pkt_ctrl_program_inspector( - const struct ip_addr *ip_addr, uint16_t dsp_udp_port + const struct ip_addr *ip_addr, uint16_t ctrl_port, uint16_t data_port ); //! Set the routing mode for this device |