VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
advioctl.h
Go to the documentation of this file.
1
#ifndef __ADV_IOCTL_H
2
#define __ADVIOCTL_H
3
#define ADVVCOM_IOC_MAGIC 'A'
4
#define ADVVCOM_IOCGTXHEAD _IOR(ADVVCOM_IOC_MAGIC, 1, int)
5
#define ADVVCOM_IOCGTXTAIL _IOR(ADVVCOM_IOC_MAGIC, 2, int)
6
#define ADVVCOM_IOCGTXSIZE _IOR(ADVVCOM_IOC_MAGIC, 3, int)
7
#define ADVVCOM_IOCGRXHEAD _IOR(ADVVCOM_IOC_MAGIC, 4, int)
8
#define ADVVCOM_IOCGRXTAIL _IOR(ADVVCOM_IOC_MAGIC, 5, int)
9
#define ADVVCOM_IOCGRXSIZE _IOR(ADVVCOM_IOC_MAGIC, 6, int)
10
#define ADVVCOM_IOCSTXTAIL _IOW(ADVVCOM_IOC_MAGIC, 7, int)
11
#define ADVVCOM_IOCSRXHEAD _IOW(ADVVCOM_IOC_MAGIC, 8, int)
12
#define ADVVCOM_IOCGTXBEGIN _IOR(ADVVCOM_IOC_MAGIC, 9, int)
13
#define ADVVCOM_IOCGRXBEGIN _IOR(ADVVCOM_IOC_MAGIC, 10, int)
14
#define ADVVCOM_IOCGATTRBEGIN _IOR(ADVVCOM_IOC_MAGIC, 11, int)
15
#define ADVVCOM_IOCGATTRPTR _IOR(ADVVCOM_IOC_MAGIC, 12, int)
16
#define ADVVCOM_IOCSINTER _IOW(ADVVCOM_IOC_MAGIC, 13, int)
17
#define ADVVCOM_IOCSMCTRL _IOW(ADVVCOM_IOC_MAGIC, 14, int)
18
#define ADVVCOM_IOCSCLR _IOW(ADVVCOM_IOC_MAGIC, 15, int)
19
20
#define ADVVCOM_IOCMAX 15
21
22
23
#define ADVVCOM_EVENT_TRANS_EN 0x1;
24
#define ADVVCOM_EVENT_RECV_EN 0x2;
25
26
#define ADV_INT_RX (0x1 << 0)
27
#define ADV_INT_TX (0x1 << 1)
28
29
#define ADV_CLR_RX (0x1 << 0)
30
#define ADV_CLR_TX (0x1 << 1)
31
32
#endif
driver
advioctl.h
Generated by
1.12.0