diff options
author | Philip Balister <philip@opensdr.com> | 2010-05-28 11:26:40 +0000 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2010-06-13 19:24:15 +0000 |
commit | 8869208ea8d8dfdd5fe86adc1637b93c4b390c0c (patch) | |
tree | a4346650facae73a1ad3755e609e4c31c44273df /host/apps/omap_debug/usrp_e.h | |
parent | 71783634c4394e739bbc13a9bb3df7d6ab75c147 (diff) | |
download | uhd-8869208ea8d8dfdd5fe86adc1637b93c4b390c0c.tar.gz uhd-8869208ea8d8dfdd5fe86adc1637b93c4b390c0c.tar.bz2 uhd-8869208ea8d8dfdd5fe86adc1637b93c4b390c0c.zip |
Update usrp_e.h file. Change programs to use struct element status instead of flags.
Diffstat (limited to 'host/apps/omap_debug/usrp_e.h')
-rw-r--r-- | host/apps/omap_debug/usrp_e.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/host/apps/omap_debug/usrp_e.h b/host/apps/omap_debug/usrp_e.h index fd74e6e9e..b098ad114 100644 --- a/host/apps/omap_debug/usrp_e.h +++ b/host/apps/omap_debug/usrp_e.h @@ -28,14 +28,14 @@ struct usrp_e_ctl32 { __u32 buf[10]; }; -// SPI interface +/* SPI interface */ #define UE_SPI_TXONLY 0 #define UE_SPI_TXRX 1 -// Defines for spi ctrl register -#define UE_SPI_CTRL_TXNEG (1<<10) -#define UE_SPI_CTRL_RXNEG (1<<9) +/* Defines for spi ctrl register */ +#define UE_SPI_CTRL_TXNEG (1 << 10) +#define UE_SPI_CTRL_RXNEG (1 << 9) #define UE_SPI_PUSH_RISE 0 #define UE_SPI_PUSH_FALL UE_SPI_CTRL_TXNEG @@ -65,20 +65,22 @@ struct usrp_e_i2c { #define USRP_E_I2C_READ _IOWR(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 +/* Data transfer frame definition */ struct usrp_transfer_frame { - __u32 flags; + __u32 status; __u32 len; __u8 buf[]; }; -// Flag defines +/* Flag defines */ #define RB_USER (1 << 0) #define RB_KERNEL (1 << 1) #define RB_OVERRUN (1 << 2) +#define RB_DMA_ACTIVE (1 << 3) struct ring_buffer_entry { + unsigned int flags; unsigned long dma_addr; struct usrp_transfer_frame *frame_addr; }; |