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 _LINUX_ATMBR2684_H
20 #define _LINUX_ATMBR2684_H
21 #include <linux/types.h>
22 #include <linux/atm.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #include <linux/if.h>
25 #define BR2684_MEDIA_ETHERNET (0)
26 #define BR2684_MEDIA_802_4 (1)
27 #define BR2684_MEDIA_TR (2)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define BR2684_MEDIA_FDDI (3)
30 #define BR2684_MEDIA_802_6 (4)
31 #define BR2684_FLAG_ROUTED (1 << 16)
32 #define BR2684_FCSIN_NO (0)
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define BR2684_FCSIN_IGNORE (1)
35 #define BR2684_FCSIN_VERIFY (2)
36 #define BR2684_FCSOUT_NO (0)
37 #define BR2684_FCSOUT_SENDZERO (1)
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define BR2684_FCSOUT_GENERATE (2)
40 #define BR2684_ENCAPS_VC (0)
41 #define BR2684_ENCAPS_LLC (1)
42 #define BR2684_ENCAPS_AUTODETECT (2)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define BR2684_PAYLOAD_ROUTED (0)
45 #define BR2684_PAYLOAD_BRIDGED (1)
46 struct atm_newif_br2684 {
47   atm_backend_t backend_num;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   int media;
50   char ifname[IFNAMSIZ];
51   int mtu;
52 };
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define BR2684_FIND_BYNOTHING (0)
55 #define BR2684_FIND_BYNUM (1)
56 #define BR2684_FIND_BYIFNAME (2)
57 struct br2684_if_spec {
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   int method;
60   union {
61     char ifname[IFNAMSIZ];
62     int devnum;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   } spec;
65 };
66 struct atm_backend_br2684 {
67   atm_backend_t backend_num;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   struct br2684_if_spec ifspec;
70   int fcs_in;
71   int fcs_out;
72   int fcs_auto;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74   int encaps;
75   int has_vpiid;
76   __u8 vpn_id[7];
77   int send_padding;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   int min_size;
80 };
81 struct br2684_filter {
82   __be32 prefix;
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84   __be32 netmask;
85 };
86 struct br2684_filter_set {
87   struct br2684_if_spec ifspec;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89   struct br2684_filter filter;
90 };
91 enum br2684_payload {
92   p_routed = BR2684_PAYLOAD_ROUTED,
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94   p_bridged = BR2684_PAYLOAD_BRIDGED,
95 };
96 #define BR2684_SETFILT _IOW('a', ATMIOC_BACKEND + 0, struct br2684_filter_set)
97 #endif
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99