From 3b1886ea2e4a9fd93fecd5047642da509fe9ee73 Mon Sep 17 00:00:00 2001 From: Philip Balister Date: Thu, 7 Jul 2011 11:02:10 -0700 Subject: e100 : Adapt kernel header to work in user space. --- host/apps/omap_debug/usrp_e.h | 9 +++++---- host/lib/usrp/e100/include/linux/usrp_e.h | 9 +++++---- 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; -- cgit v1.2.3