Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _LINUX_ATMSAP_H |
| 8 | #define _LINUX_ATMSAP_H |
| 9 | #include <linux/atmapi.h> |
| 10 | #define ATM_L2_NONE 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define ATM_L2_ISO1745 0x01 |
| 12 | #define ATM_L2_Q291 0x02 |
| 13 | #define ATM_L2_X25_LL 0x06 |
| 14 | #define ATM_L2_X25_ML 0x07 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define ATM_L2_LAPB 0x08 |
| 16 | #define ATM_L2_HDLC_ARM 0x09 |
| 17 | #define ATM_L2_HDLC_NRM 0x0a |
| 18 | #define ATM_L2_HDLC_ABM 0x0b |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #define ATM_L2_ISO8802 0x0c |
| 20 | #define ATM_L2_X75 0x0d |
| 21 | #define ATM_L2_Q922 0x0e |
| 22 | #define ATM_L2_USER 0x10 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define ATM_L2_ISO7776 0x11 |
| 24 | #define ATM_L3_NONE 0 |
| 25 | #define ATM_L3_X25 0x06 |
| 26 | #define ATM_L3_ISO8208 0x07 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define ATM_L3_X223 0x08 |
| 28 | #define ATM_L3_ISO8473 0x09 |
| 29 | #define ATM_L3_T70 0x0a |
| 30 | #define ATM_L3_TR9577 0x0b |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define ATM_L3_H310 0x0c |
| 32 | #define ATM_L3_H321 0x0d |
| 33 | #define ATM_L3_USER 0x10 |
| 34 | #define ATM_HL_NONE 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define ATM_HL_ISO 0x01 |
| 36 | #define ATM_HL_USER 0x02 |
| 37 | #define ATM_HL_HLP 0x03 |
| 38 | #define ATM_HL_VENDOR 0x04 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define ATM_IMD_NONE 0 |
| 40 | #define ATM_IMD_NORMAL 1 |
| 41 | #define ATM_IMD_EXTENDED 2 |
| 42 | #define ATM_TT_NONE 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define ATM_TT_RX 1 |
| 44 | #define ATM_TT_TX 2 |
| 45 | #define ATM_TT_RXTX 3 |
| 46 | #define ATM_MC_NONE 0 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | #define ATM_MC_TS 1 |
| 48 | #define ATM_MC_TS_FEC 2 |
| 49 | #define ATM_MC_PS 3 |
| 50 | #define ATM_MC_PS_FEC 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | #define ATM_MC_H221 5 |
| 52 | #define ATM_MAX_HLI 8 |
| 53 | struct atm_blli { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 54 | unsigned char l2_proto; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | union { |
| 56 | struct { |
| 57 | unsigned char mode; |
| 58 | unsigned char window; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | } itu; |
| 60 | unsigned char user; |
| 61 | } l2; |
| 62 | unsigned char l3_proto; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 63 | union { |
| 64 | struct { |
| 65 | unsigned char mode; |
| 66 | unsigned char def_size; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 67 | unsigned char window; |
| 68 | } itu; |
| 69 | unsigned char user; |
| 70 | struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 71 | unsigned char term_type; |
| 72 | unsigned char fw_mpx_cap; |
| 73 | unsigned char bw_mpx_cap; |
| 74 | } h310; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 75 | struct { |
| 76 | unsigned char ipi; |
| 77 | unsigned char snap[5]; |
| 78 | } tr9577; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 79 | } l3; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 80 | } __ATM_API_ALIGN; |
| 81 | struct atm_bhli { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 82 | unsigned char hl_type; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 83 | unsigned char hl_length; |
| 84 | unsigned char hl_info[ATM_MAX_HLI]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 85 | }; |
| 86 | #define ATM_MAX_BLLI 3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 87 | struct atm_sap { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 88 | struct atm_bhli bhli; |
| 89 | struct atm_blli blli[ATM_MAX_BLLI] __ATM_API_ALIGN; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 90 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 91 | #endif |