1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _LINUX_ATMSAP_H
8 #define _LINUX_ATMSAP_H
9 #include <linux/atmapi.h>
10 #define ATM_L2_NONE 0
11 #define ATM_L2_ISO1745 0x01
12 #define ATM_L2_Q291 0x02
13 #define ATM_L2_X25_LL 0x06
14 #define ATM_L2_X25_ML 0x07
15 #define ATM_L2_LAPB 0x08
16 #define ATM_L2_HDLC_ARM 0x09
17 #define ATM_L2_HDLC_NRM 0x0a
18 #define ATM_L2_HDLC_ABM 0x0b
19 #define ATM_L2_ISO8802 0x0c
20 #define ATM_L2_X75 0x0d
21 #define ATM_L2_Q922 0x0e
22 #define ATM_L2_USER 0x10
23 #define ATM_L2_ISO7776 0x11
24 #define ATM_L3_NONE 0
25 #define ATM_L3_X25 0x06
26 #define ATM_L3_ISO8208 0x07
27 #define ATM_L3_X223 0x08
28 #define ATM_L3_ISO8473 0x09
29 #define ATM_L3_T70 0x0a
30 #define ATM_L3_TR9577 0x0b
31 #define ATM_L3_H310 0x0c
32 #define ATM_L3_H321 0x0d
33 #define ATM_L3_USER 0x10
34 #define ATM_HL_NONE 0
35 #define ATM_HL_ISO 0x01
36 #define ATM_HL_USER 0x02
37 #define ATM_HL_HLP 0x03
38 #define ATM_HL_VENDOR 0x04
39 #define ATM_IMD_NONE 0
40 #define ATM_IMD_NORMAL 1
41 #define ATM_IMD_EXTENDED 2
42 #define ATM_TT_NONE 0
43 #define ATM_TT_RX 1
44 #define ATM_TT_TX 2
45 #define ATM_TT_RXTX 3
46 #define ATM_MC_NONE 0
47 #define ATM_MC_TS 1
48 #define ATM_MC_TS_FEC 2
49 #define ATM_MC_PS 3
50 #define ATM_MC_PS_FEC 4
51 #define ATM_MC_H221 5
52 #define ATM_MAX_HLI 8
53 struct atm_blli {
54   unsigned char l2_proto;
55   union {
56     struct {
57       unsigned char mode;
58       unsigned char window;
59     } itu;
60     unsigned char user;
61   } l2;
62   unsigned char l3_proto;
63   union {
64     struct {
65       unsigned char mode;
66       unsigned char def_size;
67       unsigned char window;
68     } itu;
69     unsigned char user;
70     struct {
71       unsigned char term_type;
72       unsigned char fw_mpx_cap;
73       unsigned char bw_mpx_cap;
74     } h310;
75     struct {
76       unsigned char ipi;
77       unsigned char snap[5];
78     } tr9577;
79   } l3;
80 } __ATM_API_ALIGN;
81 struct atm_bhli {
82   unsigned char hl_type;
83   unsigned char hl_length;
84   unsigned char hl_info[ATM_MAX_HLI];
85 };
86 #define ATM_MAX_BLLI 3
87 struct atm_sap {
88   struct atm_bhli bhli;
89   struct atm_blli blli[ATM_MAX_BLLI] __ATM_API_ALIGN;
90 };
91 #endif
92