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