aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2011-07-06 14:54:00 -0700
committerJosh Blum <josh@joshknows.com>2011-07-08 13:11:12 -0700
commit09087ca7b43976d1c1a71033ef000baaa21feba0 (patch)
treed74f41bb529acf8263c853600b3516a15e31d1ce /host
parent54bd2b69dd9b5754b674a9c785bd84a578221204 (diff)
downloaduhd-09087ca7b43976d1c1a71033ef000baaa21feba0.tar.gz
uhd-09087ca7b43976d1c1a71033ef000baaa21feba0.tar.bz2
uhd-09087ca7b43976d1c1a71033ef000baaa21feba0.zip
Update usrp_e kernel header file copies.
This drops spi and i2c support in the kernel driver.
Diffstat (limited to 'host')
-rw-r--r--host/apps/omap_debug/usrp_e.h42
-rw-r--r--host/lib/usrp/e100/include/linux/usrp_e.h42
2 files changed, 10 insertions, 74 deletions
diff --git a/host/apps/omap_debug/usrp_e.h b/host/apps/omap_debug/usrp_e.h
index 4c6a5dd89..d5669500b 100644
--- a/host/apps/omap_debug/usrp_e.h
+++ b/host/apps/omap_debug/usrp_e.h
@@ -28,53 +28,21 @@ struct usrp_e_ctl32 {
__u32 buf[10];
};
-/* 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)
-
-#define UE_SPI_PUSH_RISE 0
-#define UE_SPI_PUSH_FALL UE_SPI_CTRL_TXNEG
-#define UE_SPI_LATCH_RISE 0
-#define UE_SPI_LATCH_FALL UE_SPI_CTRL_RXNEG
-
-struct usrp_e_spi {
- __u8 readback;
- __u32 slave;
- __u32 data;
- __u32 length;
- __u32 flags;
-};
-
-struct usrp_e_i2c {
- __u8 addr;
- __u32 len;
- __u8 data[];
-};
-
#define USRP_E_IOC_MAGIC 'u'
#define USRP_E_WRITE_CTL16 _IOW(USRP_E_IOC_MAGIC, 0x20, struct usrp_e_ctl16)
#define USRP_E_READ_CTL16 _IOWR(USRP_E_IOC_MAGIC, 0x21, struct usrp_e_ctl16)
#define USRP_E_WRITE_CTL32 _IOW(USRP_E_IOC_MAGIC, 0x22, struct usrp_e_ctl32)
#define USRP_E_READ_CTL32 _IOWR(USRP_E_IOC_MAGIC, 0x23, struct usrp_e_ctl32)
-#define USRP_E_SPI _IOWR(USRP_E_IOC_MAGIC, 0x24, struct usrp_e_spi)
-#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)
#define USRP_E_GET_RB_INFO _IOR(USRP_E_IOC_MAGIC, 0x27, struct usrp_e_ring_buffer_size_t)
#define USRP_E_GET_COMPAT_NUMBER _IO(USRP_E_IOC_MAGIC, 0x28)
-#define USRP_E_COMPAT_NUMBER 1
+#define USRP_E_COMPAT_NUMBER 2
/* Flag defines */
-#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)
+#define RB_USER (BIT(0))
+#define RB_KERNEL (BIT(1))
+#define RB_OVERRUN (BIT(2))
+#define RB_DMA_ACTIVE (BIT(3))
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 4c6a5dd89..d5669500b 100644
--- a/host/lib/usrp/e100/include/linux/usrp_e.h
+++ b/host/lib/usrp/e100/include/linux/usrp_e.h
@@ -28,53 +28,21 @@ struct usrp_e_ctl32 {
__u32 buf[10];
};
-/* 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)
-
-#define UE_SPI_PUSH_RISE 0
-#define UE_SPI_PUSH_FALL UE_SPI_CTRL_TXNEG
-#define UE_SPI_LATCH_RISE 0
-#define UE_SPI_LATCH_FALL UE_SPI_CTRL_RXNEG
-
-struct usrp_e_spi {
- __u8 readback;
- __u32 slave;
- __u32 data;
- __u32 length;
- __u32 flags;
-};
-
-struct usrp_e_i2c {
- __u8 addr;
- __u32 len;
- __u8 data[];
-};
-
#define USRP_E_IOC_MAGIC 'u'
#define USRP_E_WRITE_CTL16 _IOW(USRP_E_IOC_MAGIC, 0x20, struct usrp_e_ctl16)
#define USRP_E_READ_CTL16 _IOWR(USRP_E_IOC_MAGIC, 0x21, struct usrp_e_ctl16)
#define USRP_E_WRITE_CTL32 _IOW(USRP_E_IOC_MAGIC, 0x22, struct usrp_e_ctl32)
#define USRP_E_READ_CTL32 _IOWR(USRP_E_IOC_MAGIC, 0x23, struct usrp_e_ctl32)
-#define USRP_E_SPI _IOWR(USRP_E_IOC_MAGIC, 0x24, struct usrp_e_spi)
-#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)
#define USRP_E_GET_RB_INFO _IOR(USRP_E_IOC_MAGIC, 0x27, struct usrp_e_ring_buffer_size_t)
#define USRP_E_GET_COMPAT_NUMBER _IO(USRP_E_IOC_MAGIC, 0x28)
-#define USRP_E_COMPAT_NUMBER 1
+#define USRP_E_COMPAT_NUMBER 2
/* Flag defines */
-#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)
+#define RB_USER (BIT(0))
+#define RB_KERNEL (BIT(1))
+#define RB_OVERRUN (BIT(2))
+#define RB_DMA_ACTIVE (BIT(3))
struct ring_buffer_info {
int flags;