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_ATM_H 20#define _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#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 40#define ATM_NO_AAL 0 41#define ATM_AAL0 13 42#define ATM_AAL1 1 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44#define ATM_AAL2 2 45#define ATM_AAL34 3 46#define ATM_AAL5 5 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 71#define ATM_PTI_US0 0 72#define ATM_PTI_US1 1 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 80#define ATM_PTI_RSV 7 81#define ATM_NONE 0 82#define ATM_UBR 1 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84#define ATM_CBR 2 85#define ATM_VBR 3 86#define ATM_ABR 4 87#define ATM_ANYCLASS 5 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89#define ATM_MAX_PCR -1 90struct atm_trafprm { 91 unsigned char traffic_class; 92 int max_pcr; 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 int pcr; 95 int min_pcr; 96 int max_cdv; 97 int max_sdu; 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 unsigned int icr; 100 unsigned int tbe; 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; 110 unsigned int nrm :3; 111 unsigned int trm :3; 112 unsigned int adtf :10; 113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 unsigned int cdf :3; 115 unsigned int spare :9; 116}; 117struct atm_qos { 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; 122}; 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 130struct sockaddr_atmpvc { 131 unsigned short sap_family; 132 struct { 133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 short itf; 135 short vpi; 136 int vci; 137 } sap_addr __ATM_API_ALIGN; 138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139}; 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 */ 154#define ATM_LIJ 1 155#define ATM_LIJ_RPJ 2 156#define ATM_LIJ_NJ 3 157struct sockaddr_atmsvc { 158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 unsigned short sas_family; 160 struct { 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 */ 164 char lij_type; 165 uint32_t lij_id; 166 } sas_addr __ATM_API_ALIGN; 167}; 168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169struct atmif_sioc { 170 int number; 171 int length; 172 void __user *arg; 173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174}; 175typedef unsigned short atm_backend_t; 176#endif 177