aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/pkt_ctrl.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-17 17:12:01 -0800
committerJosh Blum <josh@joshknows.com>2010-12-11 18:43:09 -0800
commit68af2b9ccf556f42d7697c73406abdcc31093d1b (patch)
tree4045a45d702f678446f1d89db3082b548a8f4c8e /firmware/microblaze/lib/pkt_ctrl.h
parent58d19c5adf7bde9298ad4363c275f72e4bbecd73 (diff)
downloaduhd-68af2b9ccf556f42d7697c73406abdcc31093d1b.tar.gz
uhd-68af2b9ccf556f42d7697c73406abdcc31093d1b.tar.bz2
uhd-68af2b9ccf556f42d7697c73406abdcc31093d1b.zip
usrp2: implement routing mode calls, and prefix pkt ctrl calls
Diffstat (limited to 'firmware/microblaze/lib/pkt_ctrl.h')
-rw-r--r--firmware/microblaze/lib/pkt_ctrl.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/firmware/microblaze/lib/pkt_ctrl.h b/firmware/microblaze/lib/pkt_ctrl.h
index 156fc06dc..86fb46d32 100644
--- a/firmware/microblaze/lib/pkt_ctrl.h
+++ b/firmware/microblaze/lib/pkt_ctrl.h
@@ -20,28 +20,36 @@
#include <stddef.h>
+typedef enum {
+ PKT_CTRL_ROUTING_MODE_SLAVE,
+ PKT_CTRL_ROUTING_MODE_MASTER,
+} pkt_ctrl_routing_mode_t;
+
+//! Set the routing mode for this device
+void pkt_ctrl_set_routing_mode(pkt_ctrl_routing_mode_t mode);
+
/*!
* Try to claim an incomming buffer.
* \param num_lines filled with the buffer size
* \return a pointer to the buffer memory or NULL
*/
-void *claim_incoming_buffer(size_t *num_lines);
+void *pkt_ctrl_claim_incoming_buffer(size_t *num_lines);
/*!
* Release the incoming buffer. Call when done.
*/
-void release_incoming_buffer(void);
+void pkt_ctrl_release_incoming_buffer(void);
/*!
* Claim an outgoing buffer.
* \return a pointer to the buffer
*/
-void *claim_outgoing_buffer(void);
+void *pkt_ctrl_claim_outgoing_buffer(void);
/*!
* Commit the outgoing buffer.
* \param num_lines how many lines written.
*/
-void commit_outgoing_buffer(size_t num_lines);
+void pkt_ctrl_commit_outgoing_buffer(size_t num_lines);
#endif /* INCLUDED_PKT_CTRL_H */