blob: a44d47a405625234d463d2f2f22496d51dc8cc9f [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 _ATMLEC_H_
20#define _ATMLEC_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/if_ether.h>
26#include <linux/types.h>
27#define ATMLEC_CTRL _IO('a', ATMIOC_LANE)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029#define ATMLEC_DATA _IO('a', ATMIOC_LANE + 1)
30#define ATMLEC_MCAST _IO('a', ATMIOC_LANE + 2)
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define MAX_LEC_ITF 48
32typedef enum {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 l_set_mac_addr,
35 l_del_mac_addr,
36 l_svc_setup,
37 l_addr_delete,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 l_topology_change,
40 l_flush_complete,
41 l_arp_update,
42 l_narp_req,
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 l_config,
45 l_flush_tran_id,
46 l_set_lecid,
47 l_arp_xmt,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 l_rdesc_arp_xmt,
50 l_associate_req,
51 l_should_bridge
Ben Cheng655a7c02013-10-16 16:09:24 -070052} atmlec_msg_type;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define ATMLEC_MSG_TYPE_MAX l_should_bridge
55struct atmlec_config_msg {
Tao Baod7db5942015-01-28 10:07:51 -080056 unsigned int maximum_unknown_frame_count;
57 unsigned int max_unknown_frame_time;
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 unsigned short max_retry_count;
60 unsigned int aging_time;
61 unsigned int forward_delay_time;
62 unsigned int arp_response_time;
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 unsigned int flush_timeout;
65 unsigned int path_switching_delay;
66 unsigned int lane_version;
67 int mtu;
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 int is_proxy;
Ben Cheng655a7c02013-10-16 16:09:24 -070070};
71struct atmlec_msg {
Tao Baod7db5942015-01-28 10:07:51 -080072 atmlec_msg_type 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 int sizeoftlvs;
75 union {
76 struct {
77 unsigned char mac_addr[ETH_ALEN];
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 unsigned char atm_addr[ATM_ESA_LEN];
80 unsigned int flag;
81 unsigned int targetless_le_arp;
82 unsigned int no_source_le_narp;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 } normal;
85 struct atmlec_config_msg config;
86 struct {
87 __u16 lec_id;
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 __u32 tran_id;
90 unsigned char mac_addr[ETH_ALEN];
91 unsigned char atm_addr[ATM_ESA_LEN];
92 } proxy;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 } content;
Ben Cheng655a7c02013-10-16 16:09:24 -070095} __ATM_API_ALIGN;
96struct atmlec_ioc {
Tao Baod7db5942015-01-28 10:07:51 -080097 int dev_num;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 unsigned char atm_addr[ATM_ESA_LEN];
100 unsigned char receive;
Ben Cheng655a7c02013-10-16 16:09:24 -0700101};
102#endif
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */