Sync code with cdc-acm.{c,h} in Linux 4.3
[exar-uart-driver.git] / vzioctl.h
1 \f
2
3 #include <linux/ioctl.h>
4
5 #define VIZZINI_IOC_MAGIC               'v'
6
7 #define VZIOC_GET_REG                   _IOWR(VIZZINI_IOC_MAGIC, 1, int)
8 #define VZIOC_SET_REG                   _IOWR(VIZZINI_IOC_MAGIC, 2, int)
9 #define VZIOC_SET_ADDRESS_MATCH         _IO(VIZZINI_IOC_MAGIC, 3)
10 #define VZIOC_SET_PRECISE_FLAGS         _IO(VIZZINI_IOC_MAGIC, 4)
11 #define VZIOC_TEST_MODE                 _IO(VIZZINI_IOC_MAGIC, 5)
12 #define VZIOC_LOOPBACK                  _IO(VIZZINI_IOC_MAGIC, 6)
13
14 #define VZ_ADDRESS_UNICAST_S            0
15 #define VZ_ADDRESS_BROADCAST_S          8
16 #define VZ_ADDRESS_MATCH(U, B)          (0x8000000 | ((B) << VZ_ADDRESS_BROADCAST_S) | ((U) << VZ_ADDRESS_UNICAST_S))
17 #define VZ_ADDRESS_MATCH_DISABLE        0