The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame^] | 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 | **************************************************************************** |
| 11 | ****************************************************************************/ |
| 12 | #ifndef _LINUX_ATMSAP_H |
| 13 | #define _LINUX_ATMSAP_H |
| 14 | |
| 15 | #include <linux/atmapi.h> |
| 16 | |
| 17 | #define ATM_L2_NONE 0 |
| 18 | #define ATM_L2_ISO1745 0x01 |
| 19 | #define ATM_L2_Q291 0x02 |
| 20 | #define ATM_L2_X25_LL 0x06 |
| 21 | #define ATM_L2_X25_ML 0x07 |
| 22 | #define ATM_L2_LAPB 0x08 |
| 23 | #define ATM_L2_HDLC_ARM 0x09 |
| 24 | #define ATM_L2_HDLC_NRM 0x0a |
| 25 | #define ATM_L2_HDLC_ABM 0x0b |
| 26 | #define ATM_L2_ISO8802 0x0c |
| 27 | #define ATM_L2_X75 0x0d |
| 28 | #define ATM_L2_Q922 0x0e |
| 29 | #define ATM_L2_USER 0x10 |
| 30 | #define ATM_L2_ISO7776 0x11 |
| 31 | |
| 32 | #define ATM_L3_NONE 0 |
| 33 | #define ATM_L3_X25 0x06 |
| 34 | #define ATM_L3_ISO8208 0x07 |
| 35 | #define ATM_L3_X223 0x08 |
| 36 | #define ATM_L3_ISO8473 0x09 |
| 37 | #define ATM_L3_T70 0x0a |
| 38 | #define ATM_L3_TR9577 0x0b |
| 39 | #define ATM_L3_H310 0x0c |
| 40 | #define ATM_L3_H321 0x0d |
| 41 | #define ATM_L3_USER 0x10 |
| 42 | |
| 43 | #define ATM_HL_NONE 0 |
| 44 | #define ATM_HL_ISO 0x01 |
| 45 | #define ATM_HL_USER 0x02 |
| 46 | #define ATM_HL_HLP 0x03 |
| 47 | #define ATM_HL_VENDOR 0x04 |
| 48 | |
| 49 | #define ATM_IMD_NONE 0 |
| 50 | #define ATM_IMD_NORMAL 1 |
| 51 | #define ATM_IMD_EXTENDED 2 |
| 52 | |
| 53 | #define ATM_TT_NONE 0 |
| 54 | #define ATM_TT_RX 1 |
| 55 | #define ATM_TT_TX 2 |
| 56 | #define ATM_TT_RXTX 3 |
| 57 | |
| 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 | |
| 65 | #define ATM_MAX_HLI 8 |
| 66 | |
| 67 | struct atm_blli { |
| 68 | unsigned char l2_proto; |
| 69 | union { |
| 70 | struct { |
| 71 | unsigned char mode; |
| 72 | |
| 73 | unsigned char window; |
| 74 | } itu; |
| 75 | unsigned char user; |
| 76 | } l2; |
| 77 | unsigned char l3_proto; |
| 78 | union { |
| 79 | struct { |
| 80 | unsigned char mode; |
| 81 | |
| 82 | unsigned char def_size; |
| 83 | |
| 84 | unsigned char window; |
| 85 | } itu; |
| 86 | unsigned char user; |
| 87 | struct { |
| 88 | unsigned char term_type; |
| 89 | unsigned char fw_mpx_cap; |
| 90 | |
| 91 | unsigned char bw_mpx_cap; |
| 92 | |
| 93 | } h310; |
| 94 | struct { |
| 95 | unsigned char ipi; |
| 96 | unsigned char snap[5]; |
| 97 | |
| 98 | } tr9577; |
| 99 | } l3; |
| 100 | } __ATM_API_ALIGN; |
| 101 | |
| 102 | struct atm_bhli { |
| 103 | unsigned char hl_type; |
| 104 | unsigned char hl_length; |
| 105 | |
| 106 | unsigned char hl_info[ATM_MAX_HLI]; |
| 107 | }; |
| 108 | |
| 109 | #define ATM_MAX_BLLI 3 |
| 110 | |
| 111 | struct atm_sap { |
| 112 | struct atm_bhli bhli; |
| 113 | struct atm_blli blli[ATM_MAX_BLLI] __ATM_API_ALIGN; |
| 114 | |
| 115 | }; |
| 116 | |
| 117 | #endif |