aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps/omap_debug/usrp_e.h
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-04-22 15:41:42 +0000
committerPhilip Balister <philip@opensdr.com>2010-04-22 15:41:42 +0000
commiteb2f38d4af5345a64cd1feb92fa5cb44433d037b (patch)
tree9fb9943164d35be65d5105dd5276dce24388b3dd /host/apps/omap_debug/usrp_e.h
parent61d8449f95c5c9f2c21c310f298e2ef7d66afdbb (diff)
downloaduhd-eb2f38d4af5345a64cd1feb92fa5cb44433d037b.tar.gz
uhd-eb2f38d4af5345a64cd1feb92fa5cb44433d037b.tar.bz2
uhd-eb2f38d4af5345a64cd1feb92fa5cb44433d037b.zip
Update transfer test program to use usrp_transfer_frame struct.
Diffstat (limited to 'host/apps/omap_debug/usrp_e.h')
-rw-r--r--host/apps/omap_debug/usrp_e.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/host/apps/omap_debug/usrp_e.h b/host/apps/omap_debug/usrp_e.h
index aa8ef3d57..48a3201cb 100644
--- a/host/apps/omap_debug/usrp_e.h
+++ b/host/apps/omap_debug/usrp_e.h
@@ -69,4 +69,17 @@ struct usrp_e_i2c {
#define USRP_E_I2C_READ _IOR(USRP_E_IOC_MAGIC, 0x25, struct usrp_e_i2c)
#define USRP_E_I2C_WRITE _IOW(USRP_E_IOC_MAGIC, 0x26, struct usrp_e_i2c)
+// Data transfer frame definition
+
+struct usrp_transfer_frame {
+ __u32 flags;
+ __u32 len;
+ __u8 buf[];
+};
+
+struct ring_buffer_entry {
+ unsigned long dma_addr;
+ struct usrp_transfer_frame *frame_addr;
+};
+
#endif