blob: 1487f9a14fd8e89e809e49f82cd8313ce45ef1d2 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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
Ben Cheng655a7c02013-10-16 16:09:24 -070023#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
Ben Cheng655a7c02013-10-16 16:09:24 -070027#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
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define ATM_L2_ISO8802 0x0c
32#define ATM_L2_X75 0x0d
33#define ATM_L2_Q922 0x0e
34#define ATM_L2_USER 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define ATM_L2_ISO7776 0x11
36#define ATM_L3_NONE 0
37#define ATM_L3_X25 0x06
38#define ATM_L3_ISO8208 0x07
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define ATM_L3_X223 0x08
40#define ATM_L3_ISO8473 0x09
41#define ATM_L3_T70 0x0a
42#define ATM_L3_TR9577 0x0b
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define ATM_L3_H310 0x0c
44#define ATM_L3_H321 0x0d
45#define ATM_L3_USER 0x10
46#define ATM_HL_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define ATM_HL_ISO 0x01
48#define ATM_HL_USER 0x02
49#define ATM_HL_HLP 0x03
50#define ATM_HL_VENDOR 0x04
Ben Cheng655a7c02013-10-16 16:09:24 -070051#define ATM_IMD_NONE 0
52#define ATM_IMD_NORMAL 1
53#define ATM_IMD_EXTENDED 2
54#define ATM_TT_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define ATM_TT_RX 1
56#define ATM_TT_TX 2
57#define ATM_TT_RXTX 3
58#define ATM_MC_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -070059#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
Ben Cheng655a7c02013-10-16 16:09:24 -070063#define ATM_MC_H221 5
64#define ATM_MAX_HLI 8
65struct atm_blli {
Tao Baod7db5942015-01-28 10:07:51 -080066 unsigned char l2_proto;
Tao Baod7db5942015-01-28 10:07:51 -080067 union {
68 struct {
69 unsigned char mode;
70 unsigned char window;
Tao Baod7db5942015-01-28 10:07:51 -080071 } itu;
72 unsigned char user;
73 } l2;
74 unsigned char l3_proto;
Tao Baod7db5942015-01-28 10:07:51 -080075 union {
76 struct {
77 unsigned char mode;
78 unsigned char def_size;
Tao Baod7db5942015-01-28 10:07:51 -080079 unsigned char window;
80 } itu;
81 unsigned char user;
82 struct {
Tao Baod7db5942015-01-28 10:07:51 -080083 unsigned char term_type;
84 unsigned char fw_mpx_cap;
85 unsigned char bw_mpx_cap;
86 } h310;
Tao Baod7db5942015-01-28 10:07:51 -080087 struct {
88 unsigned char ipi;
89 unsigned char snap[5];
90 } tr9577;
Tao Baod7db5942015-01-28 10:07:51 -080091 } l3;
Ben Cheng655a7c02013-10-16 16:09:24 -070092} __ATM_API_ALIGN;
93struct atm_bhli {
Tao Baod7db5942015-01-28 10:07:51 -080094 unsigned char hl_type;
Tao Baod7db5942015-01-28 10:07:51 -080095 unsigned char hl_length;
96 unsigned char hl_info[ATM_MAX_HLI];
Ben Cheng655a7c02013-10-16 16:09:24 -070097};
98#define ATM_MAX_BLLI 3
Ben Cheng655a7c02013-10-16 16:09:24 -070099struct atm_sap {
Tao Baod7db5942015-01-28 10:07:51 -0800100 struct atm_bhli bhli;
101 struct atm_blli blli[ATM_MAX_BLLI] __ATM_API_ALIGN;
Ben Cheng655a7c02013-10-16 16:09:24 -0700102};
Ben Cheng655a7c02013-10-16 16:09:24 -0700103#endif