1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef __HSI_CHAR_H 7 #define __HSI_CHAR_H 8 #include <linux/types.h> 9 #define HSI_CHAR_MAGIC 'k' 10 #define HSC_IOW(num, dtype) _IOW(HSI_CHAR_MAGIC, num, dtype) 11 #define HSC_IOR(num, dtype) _IOR(HSI_CHAR_MAGIC, num, dtype) 12 #define HSC_IOWR(num, dtype) _IOWR(HSI_CHAR_MAGIC, num, dtype) 13 #define HSC_IO(num) _IO(HSI_CHAR_MAGIC, num) 14 #define HSC_RESET HSC_IO(16) 15 #define HSC_SET_PM HSC_IO(17) 16 #define HSC_SEND_BREAK HSC_IO(18) 17 #define HSC_SET_RX HSC_IOW(19, struct hsc_rx_config) 18 #define HSC_GET_RX HSC_IOW(20, struct hsc_rx_config) 19 #define HSC_SET_TX HSC_IOW(21, struct hsc_tx_config) 20 #define HSC_GET_TX HSC_IOW(22, struct hsc_tx_config) 21 #define HSC_PM_DISABLE 0 22 #define HSC_PM_ENABLE 1 23 #define HSC_MODE_STREAM 1 24 #define HSC_MODE_FRAME 2 25 #define HSC_FLOW_SYNC 0 26 #define HSC_ARB_RR 0 27 #define HSC_ARB_PRIO 1 28 struct hsc_rx_config { 29 __u32 mode; 30 __u32 flow; 31 __u32 channels; 32 }; 33 struct hsc_tx_config { 34 __u32 mode; 35 __u32 channels; 36 __u32 speed; 37 __u32 arb_mode; 38 }; 39 #endif 40