Ed Tanous | 1ccd57c | 2017-03-21 13:15:58 -0700 | [diff] [blame] | 1 | #define IOCTL_IO_READ 0x1103 |
| 2 | #define IOCTL_IO_WRITE 0x1104 |
| 3 | #define IOCTL_REAL_IO_READ 0x1106 |
| 4 | #define IOCTL_REAL_IO_WRITE 0x1107 |
| 5 | #define IOCTL_BIT_STREAM_BASE 0x1108 |
| 6 | #define IOCTL_TX_BIT_STREAM 0x1109 |
| 7 | #define IOCTL_GET_SOCKET 0x1110 |
| 8 | #define IOCTL_AUTOMODE_TRIGGER 0x1111 |
| 9 | #define IOCTL_PASS3_TRIGGER 0x1112 |
| 10 | #define IOCTL_I2C_READ 0x1113 |
| 11 | #define IOCTL_I2C_WRITE 0x1114 |
| 12 | #define IOCTL_FLAG_BUFFER_CLEAR 0x1115 |
| 13 | #define IOCTL_REMAP 0x1105 |
| 14 | #define RELOCATE_OFFSET 0x380 |
| 15 | |
| 16 | typedef struct _IO_ACCESS_DATA { |
| 17 | unsigned char Type; |
| 18 | unsigned long Address; |
| 19 | unsigned long Data; |
| 20 | unsigned long Value; |
| 21 | unsigned long I2CValue; |
| 22 | int kernel_socket; |
| 23 | // struct sockaddr_in address_svr; |
| 24 | } IO_ACCESS_DATA, *PIO_ACCESS_DATA; |
| 25 | /* |
| 26 | typedef struct _MAP_DATA { |
| 27 | unsigned long virt_add; |
| 28 | unsigned long phys_add; |
| 29 | unsigned long size; |
| 30 | pgprot_t prot; |
| 31 | } MAP_DATA; |
| 32 | */ |