diff options
-rw-r--r-- | host/apps/omap_debug/usrp1_e.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/host/apps/omap_debug/usrp1_e.h b/host/apps/omap_debug/usrp1_e.h index b49b526dc..b34446b01 100644 --- a/host/apps/omap_debug/usrp1_e.h +++ b/host/apps/omap_debug/usrp1_e.h @@ -15,10 +15,16 @@ #include <linux/types.h> #include <linux/ioctl.h> -struct usrp1_e_ctl { +struct usrp1_e_ctl16 { __u32 offset; __u32 count; - __u16 buf[]; + __u16 buf[20]; +}; + +struct usrp1_e_ctl32 { + __u32 offset; + __u32 count; + __u32 buf[10]; }; // SPI interface @@ -48,9 +54,19 @@ struct usrp_e_spi { __u32 flags; }; +struct usrp_e_i2c { + __u8 addr; + __u32 len; + __u8 data[]; +}; + #define USRP_E_IOC_MAGIC 'u' -#define USRP_E_WRITE_CTL _IOW(USRP_E_IOC_MAGIC, 0x20, struct usrp1_e_ctl) -#define USRP_E_READ_CTL _IOWR(USRP_E_IOC_MAGIC, 0x21, struct usrp1_e_ctl) -#define USRP_E_SPI _IOW(USRP_E_IOC_MAGIC, 0x22, struct usrp_e_spi) +#define USRP_E_WRITE_CTL16 _IOW(USRP_E_IOC_MAGIC, 0x20, struct usrp1_e_ctl16) +#define USRP_E_READ_CTL16 _IOWR(USRP_E_IOC_MAGIC, 0x21, struct usrp1_e_ctl16) +#define USRP_E_WRITE_CTL32 _IOW(USRP_E_IOC_MAGIC, 0x22, struct usrp1_e_ctl32) +#define USRP_E_READ_CTL32 _IOWR(USRP_E_IOC_MAGIC, 0x23, struct usrp1_e_ctl32) +#define USRP_E_SPI _IOW(USRP_E_IOC_MAGIC, 0x24, struct usrp_e_spi) +#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) #endif |