blob: 8a430597f6b2a5f20081a719a69a7473077add4a [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_SCC_H
20#define _UAPI_SCC_H
21#define PA0HZP 0x00
22#define EAGLE 0x01
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define PC100 0x02
25#define PRIMUS 0x04
26#define DRSI 0x08
27#define BAYCOM 0x10
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29enum SCC_ioctl_cmds {
Tao Baod7db5942015-01-28 10:07:51 -080030 SIOCSCCRESERVED = SIOCDEVPRIVATE,
31 SIOCSCCCFG,
32 SIOCSCCINI,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 SIOCSCCCHANINI,
35 SIOCSCCSMEM,
36 SIOCSCCGKISS,
37 SIOCSCCSKISS,
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 SIOCSCCGSTAT,
40 SIOCSCCCAL
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
42enum L1_params {
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 PARAM_DATA,
45 PARAM_TXDELAY,
46 PARAM_PERSIST,
47 PARAM_SLOTTIME,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 PARAM_TXTAIL,
50 PARAM_FULLDUP,
51 PARAM_SOFTDCD,
52 PARAM_MUTE,
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 PARAM_DTR,
55 PARAM_RTS,
56 PARAM_SPEED,
57 PARAM_ENDDELAY,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 PARAM_GROUP,
60 PARAM_IDLE,
61 PARAM_MIN,
62 PARAM_MAXKEY,
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 PARAM_WAIT,
65 PARAM_MAXDEFER,
66 PARAM_TX,
67 PARAM_HWEVENT = 31,
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 PARAM_RETURN = 255
Ben Cheng655a7c02013-10-16 16:09:24 -070070};
71enum FULLDUP_modes {
Tao Baod7db5942015-01-28 10:07:51 -080072 KISS_DUPLEX_HALF,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 KISS_DUPLEX_FULL,
75 KISS_DUPLEX_LINK,
76 KISS_DUPLEX_OPTIMA
Ben Cheng655a7c02013-10-16 16:09:24 -070077};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define TIMER_OFF 65535U
80#define NO_SUCH_PARAM 65534U
81enum HWEVENT_opts {
Tao Baod7db5942015-01-28 10:07:51 -080082 HWEV_DCD_ON,
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 HWEV_DCD_OFF,
85 HWEV_ALL_SENT
Ben Cheng655a7c02013-10-16 16:09:24 -070086};
87#define RXGROUP 0100
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define TXGROUP 0200
90enum CLOCK_sources {
Tao Baod7db5942015-01-28 10:07:51 -080091 CLK_DPLL,
92 CLK_EXTERNAL,
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 CLK_DIVIDER,
95 CLK_BRG
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
97enum TX_state {
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 TXS_IDLE,
100 TXS_BUSY,
101 TXS_ACTIVE,
102 TXS_NEWFRAME,
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 TXS_IDLE2,
105 TXS_WAIT,
106 TXS_TIMEOUT
Ben Cheng655a7c02013-10-16 16:09:24 -0700107};
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109typedef unsigned long io_port;
110struct scc_stat {
Tao Baod7db5942015-01-28 10:07:51 -0800111 long rxints;
112 long txints;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 long exints;
115 long spints;
116 long txframes;
117 long rxframes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 long rxerrs;
120 long txerrs;
121 unsigned int nospace;
122 unsigned int rx_over;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 unsigned int tx_under;
125 unsigned int tx_state;
126 int tx_queued;
127 unsigned int maxqueue;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 unsigned int bufsize;
Ben Cheng655a7c02013-10-16 16:09:24 -0700130};
131struct scc_modem {
Tao Baod7db5942015-01-28 10:07:51 -0800132 long speed;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 char clocksrc;
135 char nrz;
Ben Cheng655a7c02013-10-16 16:09:24 -0700136};
137struct scc_kiss_cmd {
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 int command;
140 unsigned param;
Ben Cheng655a7c02013-10-16 16:09:24 -0700141};
142struct scc_hw_config {
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 io_port data_a;
145 io_port ctrl_a;
146 io_port data_b;
147 io_port ctrl_b;
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 io_port vector_latch;
150 io_port special;
151 int irq;
152 long clock;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 char option;
155 char brand;
156 char escc;
Ben Cheng655a7c02013-10-16 16:09:24 -0700157};
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159struct scc_mem_config {
Tao Baod7db5942015-01-28 10:07:51 -0800160 unsigned int dummy;
161 unsigned int bufsize;
Ben Cheng655a7c02013-10-16 16:09:24 -0700162};
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164struct scc_calibrate {
Tao Baod7db5942015-01-28 10:07:51 -0800165 unsigned int time;
166 unsigned char pattern;
Ben Cheng655a7c02013-10-16 16:09:24 -0700167};
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169#endif