1
/****************************************************************************
2
****************************************************************************
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.
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
14
*** Any manual change here will be lost the next time this script will
15
*** be run. You've been warned!
17
****************************************************************************
18
****************************************************************************/
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
#define ATM_CELL_SIZE 53
27
#define ATM_CELL_PAYLOAD 48
28
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29
#define ATM_AAL0_SDU 52
30
#define ATM_MAX_AAL34_PDU 65535
31
#define ATM_AAL5_TRAILER 8
32
#define ATM_MAX_AAL5_PDU 65535
33
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34
#define ATM_MAX_CDV 9999
35
#define ATM_NOT_RSV_VCI 32
36
#define ATM_MAX_VPI 255
37
#define ATM_MAX_VPI_NNI 4096
38
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39
#define ATM_MAX_VCI 65535
43
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
47
#define __SO_ENCODE(l,n,t) ((((l) & 0x1FF) << 22) | ((n) << 16) | sizeof(t))
48
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49
#define __SO_LEVEL_MATCH(c,m) (((c) >> 22) == ((m) & 0x1FF))
50
#define __SO_NUMBER(c) (((c) >> 16) & 0x3f)
51
#define __SO_SIZE(c) ((c) & 0x3fff)
52
#define SO_SETCLP __SO_ENCODE(SOL_ATM,0,int)
53
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54
#define SO_CIRANGE __SO_ENCODE(SOL_ATM,1,struct atm_cirange)
55
#define SO_ATMQOS __SO_ENCODE(SOL_ATM,2,struct atm_qos)
56
#define SO_ATMSAP __SO_ENCODE(SOL_ATM,3,struct atm_sap)
57
#define SO_ATMPVC __SO_ENCODE(SOL_ATM,4,struct sockaddr_atmpvc)
58
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59
#define SO_MULTIPOINT __SO_ENCODE(SOL_ATM, 5, int)
60
#define ATM_HDR_GFC_MASK 0xf0000000
61
#define ATM_HDR_GFC_SHIFT 28
62
#define ATM_HDR_VPI_MASK 0x0ff00000
63
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64
#define ATM_HDR_VPI_SHIFT 20
65
#define ATM_HDR_VCI_MASK 0x000ffff0
66
#define ATM_HDR_VCI_SHIFT 4
67
#define ATM_HDR_PTI_MASK 0x0000000e
68
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69
#define ATM_HDR_PTI_SHIFT 1
70
#define ATM_HDR_CLP 0x00000001
73
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74
#define ATM_PTI_UCES0 2
75
#define ATM_PTI_UCES1 3
76
#define ATM_PTI_SEGF5 4
77
#define ATM_PTI_E2EF5 5
78
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79
#define ATM_PTI_RSV_RM 6
83
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
87
#define ATM_ANYCLASS 5
88
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89
#define ATM_MAX_PCR -1
91
unsigned char traffic_class;
93
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
98
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
101
unsigned int frtt : 24;
102
unsigned int rif : 4;
103
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104
unsigned int rdf : 4;
105
unsigned int nrm_pres :1;
106
unsigned int trm_pres :1;
107
unsigned int adtf_pres :1;
108
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109
unsigned int cdf_pres :1;
112
unsigned int adtf :10;
113
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
115
unsigned int spare :9;
118
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119
struct atm_trafprm txtp;
120
struct atm_trafprm rxtp __ATM_API_ALIGN;
121
unsigned char aal __ATM_API_ALIGN;
123
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124
#define ATM_ITF_ANY -1
125
#define ATM_VPI_ANY -1
126
#define ATM_VCI_ANY -1
127
#define ATM_VPI_UNSPEC -2
128
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129
#define ATM_VCI_UNSPEC -2
130
struct sockaddr_atmpvc {
131
unsigned short sap_family;
133
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
137
} sap_addr __ATM_API_ALIGN;
138
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
140
#define ATM_ESA_LEN 20
141
#define ATM_E164_LEN 12
142
#define ATM_AFI_DCC 0x39
143
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144
#define ATM_AFI_ICD 0x47
145
#define ATM_AFI_E164 0x45
146
#define ATM_AFI_LOCAL 0x49
147
#define ATM_AFI_DCC_GROUP 0xBD
148
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149
#define ATM_AFI_ICD_GROUP 0xC5
150
#define ATM_AFI_E164_GROUP 0xC3
151
#define ATM_AFI_LOCAL_GROUP 0xC7
152
#define ATM_LIJ_NONE 0
153
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
155
#define ATM_LIJ_RPJ 2
157
struct sockaddr_atmsvc {
158
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159
unsigned short sas_family;
161
unsigned char prv[ATM_ESA_LEN];
162
char pub[ATM_E164_LEN+1];
163
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
166
} sas_addr __ATM_API_ALIGN;
168
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
173
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
175
typedef unsigned short atm_backend_t;