blob: 7fe60bd3e0d1f739df789b835c628ea8f95ff0ee [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 _ATMMPC_H_
20#define _ATMMPC_H_
21#include <linux/atmapi.h>
22#include <linux/atmioc.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/atm.h>
25#include <linux/types.h>
26#define ATMMPC_CTRL _IO('a', ATMIOC_MPOA)
Tao Baod7db5942015-01-28 10:07:51 -080027#define ATMMPC_DATA _IO('a', ATMIOC_MPOA + 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define MPC_SOCKET_INGRESS 1
30#define MPC_SOCKET_EGRESS 2
31struct atmmpc_ioc {
Tao Baod7db5942015-01-28 10:07:51 -080032 int dev_num;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __be32 ipaddr;
35 int type;
Ben Cheng655a7c02013-10-16 16:09:24 -070036};
37typedef struct in_ctrl_info {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u8 Last_NHRP_CIE_code;
40 __u8 Last_Q2931_cause_value;
41 __u8 eg_MPC_ATM_addr[ATM_ESA_LEN];
42 __be32 tag;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __be32 in_dst_ip;
45 __u16 holding_time;
46 __u32 request_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070047} in_ctrl_info;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49typedef struct eg_ctrl_info {
Tao Baod7db5942015-01-28 10:07:51 -080050 __u8 DLL_header[256];
51 __u8 DH_length;
52 __be32 cache_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __be32 tag;
55 __be32 mps_ip;
56 __be32 eg_dst_ip;
57 __u8 in_MPC_data_ATM_addr[ATM_ESA_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u16 holding_time;
Ben Cheng655a7c02013-10-16 16:09:24 -070060} eg_ctrl_info;
61struct mpc_parameters {
Tao Baod7db5942015-01-28 10:07:51 -080062 __u16 mpc_p1;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u16 mpc_p2;
65 __u8 mpc_p3[8];
66 __u16 mpc_p4;
67 __u16 mpc_p5;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u16 mpc_p6;
70};
Ben Cheng655a7c02013-10-16 16:09:24 -070071struct k_message {
Tao Baod7db5942015-01-28 10:07:51 -080072 __u16 type;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __be32 ip_mask;
75 __u8 MPS_ctrl[ATM_ESA_LEN];
76 union {
77 in_ctrl_info in_info;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 eg_ctrl_info eg_info;
80 struct mpc_parameters params;
81 } content;
82 struct atm_qos qos;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84} __ATM_API_ALIGN;
85struct llc_snap_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080086 __u8 dsap;
87 __u8 ssap;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u8 ui;
90 __u8 org[3];
91 __u8 type[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070092};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define TLV_MPOA_DEVICE_TYPE 0x00a03e2a
95#define NON_MPOA 0
96#define MPS 1
97#define MPC 2
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define MPS_AND_MPC 3
100#define MPC_P1 10
101#define MPC_P2 1
102#define MPC_P3 0
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define MPC_P4 5
105#define MPC_P5 40
106#define MPC_P6 160
107#define HOLDING_TIME_DEFAULT 1200
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define MPC_C1 2
110#define MPC_C2 60
111#define SND_MPOA_RES_RQST 201
112#define SET_MPS_CTRL_ADDR 202
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define SND_MPOA_RES_RTRY 203
115#define STOP_KEEP_ALIVE_SM 204
116#define EGRESS_ENTRY_REMOVED 205
117#define SND_EGRESS_PURGE 206
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define DIE 207
120#define DATA_PLANE_PURGE 208
121#define OPEN_INGRESS_SVC 209
122#define MPOA_TRIGGER_RCVD 101
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define MPOA_RES_REPLY_RCVD 102
125#define INGRESS_PURGE_RCVD 103
126#define EGRESS_PURGE_RCVD 104
127#define MPS_DEATH 105
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define CACHE_IMPOS_RCVD 106
130#define SET_MPC_CTRL_ADDR 107
131#define SET_MPS_MAC_ADDR 108
132#define CLEAN_UP_AND_EXIT 109
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define SET_MPC_PARAMS 110
135#define RELOAD 301
136#endif