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 _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)
27#define ATMMPC_DATA _IO('a', ATMIOC_MPOA + 1)
28/* 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 {
32  int dev_num;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  __be32 ipaddr;
35  int type;
36};
37typedef struct in_ctrl_info {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  __u8 Last_NHRP_CIE_code;
40  __u8 Last_Q2931_cause_value;
41  __u8 eg_MPC_ATM_addr[ATM_ESA_LEN];
42  __be32 tag;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  __be32 in_dst_ip;
45  __u16 holding_time;
46  __u32 request_id;
47} in_ctrl_info;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49typedef struct eg_ctrl_info {
50  __u8 DLL_header[256];
51  __u8 DH_length;
52  __be32 cache_id;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  __be32 tag;
55  __be32 mps_ip;
56  __be32 eg_dst_ip;
57  __u8 in_MPC_data_ATM_addr[ATM_ESA_LEN];
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  __u16 holding_time;
60} eg_ctrl_info;
61struct mpc_parameters {
62  __u16 mpc_p1;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  __u16 mpc_p2;
65  __u8 mpc_p3[8];
66  __u16 mpc_p4;
67  __u16 mpc_p5;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  __u16 mpc_p6;
70};
71struct k_message {
72  __u16 type;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  __be32 ip_mask;
75  __u8 MPS_ctrl[ATM_ESA_LEN];
76  union {
77    in_ctrl_info in_info;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79    eg_ctrl_info eg_info;
80    struct mpc_parameters params;
81  } content;
82  struct atm_qos qos;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84} __ATM_API_ALIGN;
85struct llc_snap_hdr {
86  __u8 dsap;
87  __u8 ssap;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  __u8 ui;
90  __u8 org[3];
91  __u8 type[2];
92};
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
137