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 _LINUX_ATMSAP_H
20 #define _LINUX_ATMSAP_H
21 #include <linux/atmapi.h>
22 #define ATM_L2_NONE 0
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define ATM_L2_ISO1745 0x01
25 #define ATM_L2_Q291 0x02
26 #define ATM_L2_X25_LL 0x06
27 #define ATM_L2_X25_ML 0x07
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define ATM_L2_LAPB 0x08
30 #define ATM_L2_HDLC_ARM 0x09
31 #define ATM_L2_HDLC_NRM 0x0a
32 #define ATM_L2_HDLC_ABM 0x0b
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define ATM_L2_ISO8802 0x0c
35 #define ATM_L2_X75 0x0d
36 #define ATM_L2_Q922 0x0e
37 #define ATM_L2_USER 0x10
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define ATM_L2_ISO7776 0x11
40 #define ATM_L3_NONE 0
41 #define ATM_L3_X25 0x06
42 #define ATM_L3_ISO8208 0x07
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define ATM_L3_X223 0x08
45 #define ATM_L3_ISO8473 0x09
46 #define ATM_L3_T70 0x0a
47 #define ATM_L3_TR9577 0x0b
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define ATM_L3_H310 0x0c
50 #define ATM_L3_H321 0x0d
51 #define ATM_L3_USER 0x10
52 #define ATM_HL_NONE 0
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define ATM_HL_ISO 0x01
55 #define ATM_HL_USER 0x02
56 #define ATM_HL_HLP 0x03
57 #define ATM_HL_VENDOR 0x04
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define ATM_IMD_NONE 0
60 #define ATM_IMD_NORMAL 1
61 #define ATM_IMD_EXTENDED 2
62 #define ATM_TT_NONE 0
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define ATM_TT_RX 1
65 #define ATM_TT_TX 2
66 #define ATM_TT_RXTX 3
67 #define ATM_MC_NONE 0
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define ATM_MC_TS 1
70 #define ATM_MC_TS_FEC 2
71 #define ATM_MC_PS 3
72 #define ATM_MC_PS_FEC 4
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define ATM_MC_H221 5
75 #define ATM_MAX_HLI 8
76 struct atm_blli {
77   unsigned char l2_proto;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   union {
80     struct {
81       unsigned char mode;
82       unsigned char window;
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84     } itu;
85     unsigned char user;
86   } l2;
87   unsigned char l3_proto;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89   union {
90     struct {
91       unsigned char mode;
92       unsigned char def_size;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94       unsigned char window;
95     } itu;
96     unsigned char user;
97     struct {
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99       unsigned char term_type;
100       unsigned char fw_mpx_cap;
101       unsigned char bw_mpx_cap;
102     } h310;
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104     struct {
105       unsigned char ipi;
106       unsigned char snap[5];
107     } tr9577;
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109   } l3;
110 } __ATM_API_ALIGN;
111 struct atm_bhli {
112   unsigned char hl_type;
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114   unsigned char hl_length;
115   unsigned char hl_info[ATM_MAX_HLI];
116 };
117 #define ATM_MAX_BLLI 3
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 struct atm_sap {
120   struct atm_bhli bhli;
121   struct atm_blli blli[ATM_MAX_BLLI] __ATM_API_ALIGN;
122 };
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 #endif
125