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 _UAPI_LINUX_ATM_H
20 #define _UAPI_LINUX_ATM_H
21 #include <linux/compiler.h>
22 #include <linux/atmapi.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #include <linux/atmsap.h>
25 #include <linux/atmioc.h>
26 #include <linux/types.h>
27 #define ATM_CELL_SIZE 53
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define ATM_CELL_PAYLOAD 48
30 #define ATM_AAL0_SDU 52
31 #define ATM_MAX_AAL34_PDU 65535
32 #define ATM_AAL5_TRAILER 8
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define ATM_MAX_AAL5_PDU 65535
35 #define ATM_MAX_CDV 9999
36 #define ATM_NOT_RSV_VCI 32
37 #define ATM_MAX_VPI 255
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define ATM_MAX_VPI_NNI 4096
40 #define ATM_MAX_VCI 65535
41 #define ATM_NO_AAL 0
42 #define ATM_AAL0 13
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define ATM_AAL1 1
45 #define ATM_AAL2 2
46 #define ATM_AAL34 3
47 #define ATM_AAL5 5
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define __SO_ENCODE(l,n,t) ((((l) & 0x1FF) << 22) | ((n) << 16) | sizeof(t))
50 #define __SO_LEVEL_MATCH(c,m) (((c) >> 22) == ((m) & 0x1FF))
51 #define __SO_NUMBER(c) (((c) >> 16) & 0x3f)
52 #define __SO_SIZE(c) ((c) & 0x3fff)
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define SO_SETCLP __SO_ENCODE(SOL_ATM, 0, int)
55 #define SO_CIRANGE __SO_ENCODE(SOL_ATM, 1, struct atm_cirange)
56 #define SO_ATMQOS __SO_ENCODE(SOL_ATM, 2, struct atm_qos)
57 #define SO_ATMSAP __SO_ENCODE(SOL_ATM, 3, struct atm_sap)
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define SO_ATMPVC __SO_ENCODE(SOL_ATM, 4, struct sockaddr_atmpvc)
60 #define SO_MULTIPOINT __SO_ENCODE(SOL_ATM, 5, int)
61 #define ATM_HDR_GFC_MASK 0xf0000000
62 #define ATM_HDR_GFC_SHIFT 28
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define ATM_HDR_VPI_MASK 0x0ff00000
65 #define ATM_HDR_VPI_SHIFT 20
66 #define ATM_HDR_VCI_MASK 0x000ffff0
67 #define ATM_HDR_VCI_SHIFT 4
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define ATM_HDR_PTI_MASK 0x0000000e
70 #define ATM_HDR_PTI_SHIFT 1
71 #define ATM_HDR_CLP 0x00000001
72 #define ATM_PTI_US0 0
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define ATM_PTI_US1 1
75 #define ATM_PTI_UCES0 2
76 #define ATM_PTI_UCES1 3
77 #define ATM_PTI_SEGF5 4
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 #define ATM_PTI_E2EF5 5
80 #define ATM_PTI_RSV_RM 6
81 #define ATM_PTI_RSV 7
82 #define ATM_NONE 0
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define ATM_UBR 1
85 #define ATM_CBR 2
86 #define ATM_VBR 3
87 #define ATM_ABR 4
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 #define ATM_ANYCLASS 5
90 #define ATM_MAX_PCR - 1
91 struct atm_trafprm {
92   unsigned char traffic_class;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94   int max_pcr;
95   int pcr;
96   int min_pcr;
97   int max_cdv;
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99   int max_sdu;
100   unsigned int icr;
101   unsigned int tbe;
102   unsigned int frtt : 24;
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104   unsigned int rif : 4;
105   unsigned int rdf : 4;
106   unsigned int nrm_pres : 1;
107   unsigned int trm_pres : 1;
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109   unsigned int adtf_pres : 1;
110   unsigned int cdf_pres : 1;
111   unsigned int nrm : 3;
112   unsigned int trm : 3;
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114   unsigned int adtf : 10;
115   unsigned int cdf : 3;
116   unsigned int spare : 9;
117 };
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 struct atm_qos {
120   struct atm_trafprm txtp;
121   struct atm_trafprm rxtp __ATM_API_ALIGN;
122   unsigned char aal __ATM_API_ALIGN;
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 };
125 #define ATM_ITF_ANY - 1
126 #define ATM_VPI_ANY - 1
127 #define ATM_VCI_ANY - 1
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 #define ATM_VPI_UNSPEC - 2
130 #define ATM_VCI_UNSPEC - 2
131 struct sockaddr_atmpvc {
132   unsigned short sap_family;
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134   struct {
135     short itf;
136     short vpi;
137     int vci;
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139   } sap_addr __ATM_API_ALIGN;
140 };
141 #define ATM_ESA_LEN 20
142 #define ATM_E164_LEN 12
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 #define ATM_AFI_DCC 0x39
145 #define ATM_AFI_ICD 0x47
146 #define ATM_AFI_E164 0x45
147 #define ATM_AFI_LOCAL 0x49
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 #define ATM_AFI_DCC_GROUP 0xBD
150 #define ATM_AFI_ICD_GROUP 0xC5
151 #define ATM_AFI_E164_GROUP 0xC3
152 #define ATM_AFI_LOCAL_GROUP 0xC7
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 #define ATM_LIJ_NONE 0
155 #define ATM_LIJ 1
156 #define ATM_LIJ_RPJ 2
157 #define ATM_LIJ_NJ 3
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 struct sockaddr_atmsvc {
160   unsigned short sas_family;
161   struct {
162     unsigned char prv[ATM_ESA_LEN];
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164     char pub[ATM_E164_LEN + 1];
165     char lij_type;
166     __u32 lij_id;
167   } sas_addr __ATM_API_ALIGN;
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 };
170 struct atmif_sioc {
171   int number;
172   int length;
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174   void __user * arg;
175 };
176 typedef unsigned short atm_backend_t;
177 #endif
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179