blob: bd957b4255ca69737b3a831f2042c6722974d605 [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 _UAPISDLA_H
20#define _UAPISDLA_H
21#define SDLA_TYPES
22#define SDLA_S502A 5020
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SDLA_S502E 5021
25#define SDLA_S503 5030
26#define SDLA_S507 5070
27#define SDLA_S508 5080
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define SDLA_S509 5090
Tao Baod7db5942015-01-28 10:07:51 -080030#define SDLA_UNKNOWN - 1
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define SDLA_S508_PORT_V35 0x00
32#define SDLA_S508_PORT_RS232 0x02
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define SDLA_CPU_3M 0x00
35#define SDLA_CPU_5M 0x01
36#define SDLA_CPU_7M 0x02
37#define SDLA_CPU_8M 0x03
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define SDLA_CPU_10M 0x04
40#define SDLA_CPU_16M 0x05
41#define SDLA_CPU_12M 0x06
42#define SDLA_IDENTIFY (FRAD_LAST_IOCTL + 1)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define SDLA_CPUSPEED (FRAD_LAST_IOCTL + 2)
45#define SDLA_PROTOCOL (FRAD_LAST_IOCTL + 3)
46#define SDLA_CLEARMEM (FRAD_LAST_IOCTL + 4)
47#define SDLA_WRITEMEM (FRAD_LAST_IOCTL + 5)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define SDLA_READMEM (FRAD_LAST_IOCTL + 6)
50struct sdla_mem {
Tao Baod7db5942015-01-28 10:07:51 -080051 int addr;
52 int len;
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 void __user * data;
Ben Cheng655a7c02013-10-16 16:09:24 -070055};
56#define SDLA_START (FRAD_LAST_IOCTL + 7)
57#define SDLA_STOP (FRAD_LAST_IOCTL + 8)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define SDLA_NMIADDR 0x0000
60#define SDLA_CONF_ADDR 0x0010
61#define SDLA_S502A_NMIADDR 0x0066
62#define SDLA_CODE_BASEADDR 0x0100
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define SDLA_WINDOW_SIZE 0x2000
65#define SDLA_ADDR_MASK 0x1FFF
66#define SDLA_MAX_DATA 4080
67#define SDLA_MAX_MTU 4072
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define SDLA_MAX_DLCI 24
70struct sdla_conf {
Tao Baod7db5942015-01-28 10:07:51 -080071 short station;
72 short config;
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 short kbaud;
75 short clocking;
76 short max_frm;
77 short T391;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 short T392;
80 short N391;
81 short N392;
82 short N393;
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 short CIR_fwd;
85 short Bc_fwd;
86 short Be_fwd;
87 short CIR_bwd;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 short Bc_bwd;
90 short Be_bwd;
Ben Cheng655a7c02013-10-16 16:09:24 -070091};
92struct sdla_dlci_conf {
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 short config;
95 short CIR_fwd;
96 short Bc_fwd;
97 short Be_fwd;
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 short CIR_bwd;
100 short Bc_bwd;
101 short Be_bwd;
102 short Tc_fwd;
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 short Tc_bwd;
105 short Tf_max;
106 short Tb_max;
Ben Cheng655a7c02013-10-16 16:09:24 -0700107};
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#endif