1 /****************************************************************************
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 KERNEL_IRDA_H
20 #define KERNEL_IRDA_H
21 #include <linux/types.h>
22 #include <linux/socket.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define HINT_PNP 0x01
25 #define HINT_PDA 0x02
26 #define HINT_COMPUTER 0x04
27 #define HINT_PRINTER 0x08
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define HINT_MODEM 0x10
30 #define HINT_FAX 0x20
31 #define HINT_LAN 0x40
32 #define HINT_EXTENSION 0x80
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define HINT_TELEPHONY 0x01
35 #define HINT_FILE_SERVER 0x02
36 #define HINT_COMM 0x04
37 #define HINT_MESSAGE 0x08
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define HINT_HTTP 0x10
40 #define HINT_OBEX 0x20
41 #define CS_ASCII 0x00
42 #define CS_ISO_8859_1 0x01
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define CS_ISO_8859_2 0x02
45 #define CS_ISO_8859_3 0x03
46 #define CS_ISO_8859_4 0x04
47 #define CS_ISO_8859_5 0x05
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define CS_ISO_8859_6 0x06
50 #define CS_ISO_8859_7 0x07
51 #define CS_ISO_8859_8 0x08
52 #define CS_ISO_8859_9 0x09
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define CS_UNICODE 0xff
55 typedef enum {
56   IRDA_TEKRAM_DONGLE = 0,
57   IRDA_ESI_DONGLE = 1,
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   IRDA_ACTISYS_DONGLE = 2,
60   IRDA_ACTISYS_PLUS_DONGLE = 3,
61   IRDA_GIRBIL_DONGLE = 4,
62   IRDA_LITELINK_DONGLE = 5,
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   IRDA_AIRPORT_DONGLE = 6,
65   IRDA_OLD_BELKIN_DONGLE = 7,
66   IRDA_EP7211_IR = 8,
67   IRDA_MCP2120_DONGLE = 9,
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   IRDA_ACT200L_DONGLE = 10,
70   IRDA_MA600_DONGLE = 11,
71   IRDA_TOIM3232_DONGLE = 12,
72   IRDA_EP7211_DONGLE = 13,
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 } IRDA_DONGLE;
75 enum {
76   IRDAPROTO_UNITDATA = 0,
77   IRDAPROTO_ULTRA = 1,
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   IRDAPROTO_MAX
80 };
81 #define SOL_IRLMP 266
82 #define SOL_IRTTP 266
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define IRLMP_ENUMDEVICES 1
85 #define IRLMP_IAS_SET 2
86 #define IRLMP_IAS_QUERY 3
87 #define IRLMP_HINTS_SET 4
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 #define IRLMP_QOS_SET 5
90 #define IRLMP_QOS_GET 6
91 #define IRLMP_MAX_SDU_SIZE 7
92 #define IRLMP_IAS_GET 8
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 #define IRLMP_IAS_DEL 9
95 #define IRLMP_HINT_MASK_SET 10
96 #define IRLMP_WAITDEVICE 11
97 #define IRTTP_MAX_SDU_SIZE IRLMP_MAX_SDU_SIZE
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define IAS_MAX_STRING 256
100 #define IAS_MAX_OCTET_STRING 1024
101 #define IAS_MAX_CLASSNAME 60
102 #define IAS_MAX_ATTRIBNAME 60
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 #define IAS_MAX_ATTRIBNUMBER 256
105 #define IAS_EXPORT_CLASSNAME 64
106 #define IAS_EXPORT_ATTRIBNAME 256
107 #define IAS_MISSING 0
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define IAS_INTEGER 1
110 #define IAS_OCT_SEQ 2
111 #define IAS_STRING 3
112 #define LSAP_ANY 0xff
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 struct sockaddr_irda {
115   __kernel_sa_family_t sir_family;
116   __u8 sir_lsap_sel;
117   __u32 sir_addr;
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119   char sir_name[25];
120 };
121 struct irda_device_info {
122   __u32 saddr;
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124   __u32 daddr;
125   char info[22];
126   __u8 charset;
127   __u8 hints[2];
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 };
130 struct irda_device_list {
131   __u32 len;
132   struct irda_device_info dev[1];
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 };
135 struct irda_ias_set {
136   char irda_class_name[IAS_EXPORT_CLASSNAME];
137   char irda_attrib_name[IAS_EXPORT_ATTRIBNAME];
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139   unsigned int irda_attrib_type;
140   union {
141     unsigned int irda_attrib_int;
142     struct {
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144       unsigned short len;
145       __u8 octet_seq[IAS_MAX_OCTET_STRING];
146     } irda_attrib_octet_seq;
147     struct {
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149       __u8 len;
150       __u8 charset;
151       __u8 string[IAS_MAX_STRING];
152     } irda_attrib_string;
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154   } attribute;
155   __u32 daddr;
156 };
157 #define SIOCSDONGLE (SIOCDEVPRIVATE + 0)
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 #define SIOCGDONGLE (SIOCDEVPRIVATE + 1)
160 #define SIOCSBANDWIDTH (SIOCDEVPRIVATE + 2)
161 #define SIOCSMEDIABUSY (SIOCDEVPRIVATE + 3)
162 #define SIOCGMEDIABUSY (SIOCDEVPRIVATE + 4)
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 #define SIOCGRECEIVING (SIOCDEVPRIVATE + 5)
165 #define SIOCSMODE (SIOCDEVPRIVATE + 6)
166 #define SIOCGMODE (SIOCDEVPRIVATE + 7)
167 #define SIOCSDTRRTS (SIOCDEVPRIVATE + 8)
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 #define SIOCGQOS (SIOCDEVPRIVATE + 9)
170 #define IRNAMSIZ 16
171 struct if_irda_qos {
172   unsigned long baudrate;
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174   unsigned short data_size;
175   unsigned short window_size;
176   unsigned short min_turn_time;
177   unsigned short max_turn_time;
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179   unsigned char add_bofs;
180   unsigned char link_disc;
181 };
182 struct if_irda_line {
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184   __u8 dtr;
185   __u8 rts;
186 };
187 struct if_irda_req {
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189   union {
190     char ifrn_name[IRNAMSIZ];
191   } ifr_ifrn;
192   union {
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194     struct if_irda_line ifru_line;
195     struct if_irda_qos ifru_qos;
196     unsigned short ifru_flags;
197     unsigned int ifru_receiving;
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199     unsigned int ifru_mode;
200     unsigned int ifru_dongle;
201   } ifr_ifru;
202 };
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 #define ifr_baudrate ifr_ifru.ifru_qos.baudrate
205 #define ifr_receiving ifr_ifru.ifru_receiving
206 #define ifr_dongle ifr_ifru.ifru_dongle
207 #define ifr_mode ifr_ifru.ifru_mode
208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 #define ifr_dtr ifr_ifru.ifru_line.dtr
210 #define ifr_rts ifr_ifru.ifru_line.rts
211 #define IRDA_NL_NAME "irda"
212 #define IRDA_NL_VERSION 1
213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 enum irda_nl_commands {
215   IRDA_NL_CMD_UNSPEC,
216   IRDA_NL_CMD_SET_MODE,
217   IRDA_NL_CMD_GET_MODE,
218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219   __IRDA_NL_CMD_AFTER_LAST
220 };
221 #define IRDA_NL_CMD_MAX (__IRDA_NL_CMD_AFTER_LAST - 1)
222 enum nl80211_attrs {
223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224   IRDA_NL_ATTR_UNSPEC,
225   IRDA_NL_ATTR_IFNAME,
226   IRDA_NL_ATTR_MODE,
227   __IRDA_NL_ATTR_AFTER_LAST
228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 };
230 #define IRDA_NL_ATTR_MAX (__IRDA_NL_ATTR_AFTER_LAST - 1)
231 #define IRDA_MODE_PRIMARY 0x1
232 #define IRDA_MODE_SECONDARY 0x2
233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234 #define IRDA_MODE_MONITOR 0x4
235 #endif
236