1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __HSI_CHAR_H 8 #define __HSI_CHAR_H 9 #include <linux/types.h> 10 #define HSI_CHAR_MAGIC 'k' 11 #define HSC_IOW(num,dtype) _IOW(HSI_CHAR_MAGIC, num, dtype) 12 #define HSC_IOR(num,dtype) _IOR(HSI_CHAR_MAGIC, num, dtype) 13 #define HSC_IOWR(num,dtype) _IOWR(HSI_CHAR_MAGIC, num, dtype) 14 #define HSC_IO(num) _IO(HSI_CHAR_MAGIC, num) 15 #define HSC_RESET HSC_IO(16) 16 #define HSC_SET_PM HSC_IO(17) 17 #define HSC_SEND_BREAK HSC_IO(18) 18 #define HSC_SET_RX HSC_IOW(19, struct hsc_rx_config) 19 #define HSC_GET_RX HSC_IOW(20, struct hsc_rx_config) 20 #define HSC_SET_TX HSC_IOW(21, struct hsc_tx_config) 21 #define HSC_GET_TX HSC_IOW(22, struct hsc_tx_config) 22 #define HSC_PM_DISABLE 0 23 #define HSC_PM_ENABLE 1 24 #define HSC_MODE_STREAM 1 25 #define HSC_MODE_FRAME 2 26 #define HSC_FLOW_SYNC 0 27 #define HSC_ARB_RR 0 28 #define HSC_ARB_PRIO 1 29 struct hsc_rx_config { 30 __u32 mode; 31 __u32 flow; 32 __u32 channels; 33 }; 34 struct hsc_tx_config { 35 __u32 mode; 36 __u32 channels; 37 __u32 speed; 38 __u32 arb_mode; 39 }; 40 #endif 41