aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2011-07-07 11:02:10 -0700
committerJosh Blum <josh@joshknows.com>2011-07-08 13:11:42 -0700
commit3b1886ea2e4a9fd93fecd5047642da509fe9ee73 (patch)
tree6475d0ce94dbe94317f1c46dfbef9c35b23e3fec /host
parentd69c10df10bae6b6f6b7f7af769aae5c0500f0d8 (diff)
downloaduhd-3b1886ea2e4a9fd93fecd5047642da509fe9ee73.tar.gz
uhd-3b1886ea2e4a9fd93fecd5047642da509fe9ee73.tar.bz2
uhd-3b1886ea2e4a9fd93fecd5047642da509fe9ee73.zip
e100 : Adapt kernel header to work in user space.
Diffstat (limited to 'host')
-rw-r--r--host/apps/omap_debug/usrp_e.h9
-rw-r--r--host/lib/usrp/e100/include/linux/usrp_e.h9
2 files changed, 10 insertions, 8 deletions
diff --git a/host/apps/omap_debug/usrp_e.h b/host/apps/omap_debug/usrp_e.h
index d5669500b..2c4aa2ac1 100644
--- a/host/apps/omap_debug/usrp_e.h
+++ b/host/apps/omap_debug/usrp_e.h
@@ -39,10 +39,11 @@ struct usrp_e_ctl32 {
#define USRP_E_COMPAT_NUMBER 2
/* Flag defines */
-#define RB_USER (BIT(0))
-#define RB_KERNEL (BIT(1))
-#define RB_OVERRUN (BIT(2))
-#define RB_DMA_ACTIVE (BIT(3))
+#define RB_USER (1<<0)
+#define RB_KERNEL (1<<1)
+#define RB_OVERRUN (1<<2)
+#define RB_DMA_ACTIVE (1<<3)
+#define RB_USER_PROCESS (1<<4)
struct ring_buffer_info {
int flags;
diff --git a/host/lib/usrp/e100/include/linux/usrp_e.h b/host/lib/usrp/e100/include/linux/usrp_e.h
index d5669500b..2c4aa2ac1 100644
--- a/host/lib/usrp/e100/include/linux/usrp_e.h
+++ b/host/lib/usrp/e100/include/linux/usrp_e.h
@@ -39,10 +39,11 @@ struct usrp_e_ctl32 {
#define USRP_E_COMPAT_NUMBER 2
/* Flag defines */
-#define RB_USER (BIT(0))
-#define RB_KERNEL (BIT(1))
-#define RB_OVERRUN (BIT(2))
-#define RB_DMA_ACTIVE (BIT(3))
+#define RB_USER (1<<0)
+#define RB_KERNEL (1<<1)
+#define RB_OVERRUN (1<<2)
+#define RB_DMA_ACTIVE (1<<3)
+#define RB_USER_PROCESS (1<<4)
struct ring_buffer_info {
int flags;