blob: 92427f502398e2ec44b01764b5b570c245485d35 [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_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)
Tao Baod7db5942015-01-28 10:07:51 -080031#define BR2684_FLAG_ROUTED (1 << 16)
Ben Cheng655a7c02013-10-16 16:09:24 -070032#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)
46struct atm_newif_br2684 {
Tao Baod7db5942015-01-28 10:07:51 -080047 atm_backend_t backend_num;
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 int media;
50 char ifname[IFNAMSIZ];
51 int mtu;
Ben Cheng655a7c02013-10-16 16:09:24 -070052};
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)
57struct br2684_if_spec {
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 int method;
60 union {
61 char ifname[IFNAMSIZ];
62 int devnum;
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 } spec;
Ben Cheng655a7c02013-10-16 16:09:24 -070065};
66struct atm_backend_br2684 {
Tao Baod7db5942015-01-28 10:07:51 -080067 atm_backend_t backend_num;
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 struct br2684_if_spec ifspec;
70 int fcs_in;
71 int fcs_out;
72 int fcs_auto;
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 encaps;
75 int has_vpiid;
76 __u8 vpn_id[7];
77 int send_padding;
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 int min_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070080};
81struct br2684_filter {
Tao Baod7db5942015-01-28 10:07:51 -080082 __be32 prefix;
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 __be32 netmask;
Ben Cheng655a7c02013-10-16 16:09:24 -070085};
86struct br2684_filter_set {
Tao Baod7db5942015-01-28 10:07:51 -080087 struct br2684_if_spec ifspec;
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 struct br2684_filter filter;
Ben Cheng655a7c02013-10-16 16:09:24 -070090};
91enum br2684_payload {
Tao Baod7db5942015-01-28 10:07:51 -080092 p_routed = BR2684_PAYLOAD_ROUTED,
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 p_bridged = BR2684_PAYLOAD_BRIDGED,
Ben Cheng655a7c02013-10-16 16:09:24 -070095};
Tao Baod7db5942015-01-28 10:07:51 -080096#define BR2684_SETFILT _IOW('a', ATMIOC_BACKEND + 0, struct br2684_filter_set)
Ben Cheng655a7c02013-10-16 16:09:24 -070097#endif
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */