blob: b471c3461e1eccf3c28f9e5d2d5833d0e272c78e [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef __HSI_CHAR_H
8#define __HSI_CHAR_H
Christopher Ferris6a9755d2017-01-13 14:09:31 -08009#include <linux/types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070010#define HSI_CHAR_MAGIC 'k'
Christopher Ferris6a9755d2017-01-13 14:09:31 -080011#define HSC_IOW(num,dtype) _IOW(HSI_CHAR_MAGIC, num, dtype)
Tao Baod7db5942015-01-28 10:07:51 -080012#define HSC_IOR(num,dtype) _IOR(HSI_CHAR_MAGIC, num, dtype)
13#define HSC_IOWR(num,dtype) _IOWR(HSI_CHAR_MAGIC, num, dtype)
Ben Cheng655a7c02013-10-16 16:09:24 -070014#define HSC_IO(num) _IO(HSI_CHAR_MAGIC, num)
Christopher Ferris6a9755d2017-01-13 14:09:31 -080015#define HSC_RESET HSC_IO(16)
Ben Cheng655a7c02013-10-16 16:09:24 -070016#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)
Christopher Ferris6a9755d2017-01-13 14:09:31 -080019#define HSC_GET_RX HSC_IOW(20, struct hsc_rx_config)
Ben Cheng655a7c02013-10-16 16:09:24 -070020#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
Christopher Ferris6a9755d2017-01-13 14:09:31 -080023#define HSC_PM_ENABLE 1
Ben Cheng655a7c02013-10-16 16:09:24 -070024#define HSC_MODE_STREAM 1
25#define HSC_MODE_FRAME 2
26#define HSC_FLOW_SYNC 0
Christopher Ferris6a9755d2017-01-13 14:09:31 -080027#define HSC_ARB_RR 0
Ben Cheng655a7c02013-10-16 16:09:24 -070028#define HSC_ARB_PRIO 1
29struct hsc_rx_config {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080030 __u32 mode;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080031 __u32 flow;
32 __u32 channels;
Ben Cheng655a7c02013-10-16 16:09:24 -070033};
34struct hsc_tx_config {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080035 __u32 mode;
36 __u32 channels;
37 __u32 speed;
38 __u32 arb_mode;
Ben Cheng655a7c02013-10-16 16:09:24 -070039};
Ben Cheng655a7c02013-10-16 16:09:24 -070040#endif