blob: dadc433579454e4d819fd3d663ea4cc5232ee92c [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_HDLCDRV_H
20#define _UAPI_HDLCDRV_H
21struct hdlcdrv_params {
Tao Baod7db5942015-01-28 10:07:51 -080022 int iobase;
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 int irq;
25 int dma;
26 int dma2;
27 int seriobase;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 int pariobase;
30 int midiiobase;
Ben Cheng655a7c02013-10-16 16:09:24 -070031};
32struct hdlcdrv_channel_params {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 int tx_delay;
35 int tx_tail;
36 int slottime;
37 int ppersist;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 int fulldup;
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
41struct hdlcdrv_old_channel_state {
Tao Baod7db5942015-01-28 10:07:51 -080042 int ptt;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 int dcd;
45 int ptt_keyed;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47struct hdlcdrv_channel_state {
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 int ptt;
50 int dcd;
51 int ptt_keyed;
52 unsigned long tx_packets;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 unsigned long tx_errors;
55 unsigned long rx_packets;
56 unsigned long rx_errors;
Ben Cheng655a7c02013-10-16 16:09:24 -070057};
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59struct hdlcdrv_ioctl {
Tao Baod7db5942015-01-28 10:07:51 -080060 int cmd;
61 union {
62 struct hdlcdrv_params mp;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 struct hdlcdrv_channel_params cp;
65 struct hdlcdrv_channel_state cs;
66 struct hdlcdrv_old_channel_state ocs;
67 unsigned int calibrate;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 unsigned char bits;
70 char modename[128];
71 char drivername[32];
72 } data;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74};
75#define HDLCDRVCTL_GETMODEMPAR 0
76#define HDLCDRVCTL_SETMODEMPAR 1
77#define HDLCDRVCTL_MODEMPARMASK 2
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define HDLCDRVCTL_GETCHANNELPAR 10
80#define HDLCDRVCTL_SETCHANNELPAR 11
81#define HDLCDRVCTL_OLDGETSTAT 20
82#define HDLCDRVCTL_CALIBRATE 21
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define HDLCDRVCTL_GETSTAT 22
85#define HDLCDRVCTL_GETSAMPLES 30
86#define HDLCDRVCTL_GETBITS 31
87#define HDLCDRVCTL_GETMODE 40
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define HDLCDRVCTL_SETMODE 41
90#define HDLCDRVCTL_MODELIST 42
91#define HDLCDRVCTL_DRIVERNAME 43
Tao Baod7db5942015-01-28 10:07:51 -080092#define HDLCDRV_PARMASK_IOBASE (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094#define HDLCDRV_PARMASK_IRQ (1 << 1)
95#define HDLCDRV_PARMASK_DMA (1 << 2)
96#define HDLCDRV_PARMASK_DMA2 (1 << 3)
97#define HDLCDRV_PARMASK_SERIOBASE (1 << 4)
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099#define HDLCDRV_PARMASK_PARIOBASE (1 << 5)
100#define HDLCDRV_PARMASK_MIDIIOBASE (1 << 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700101#endif