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_IF_TR_H
20#define _LINUX_IF_TR_H
21#include <asm/byteorder.h>
22#define TR_ALEN 6
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define TR_HLEN (sizeof(struct trh_hdr)+sizeof(struct trllc))
25#define AC 0x10
26#define LLC_FRAME 0x40
27#define EXTENDED_SAP 0xAA
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define UI_CMD 0x03
30struct trh_hdr {
31 __u8 ac;
32 __u8 fc;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 __u8 daddr[TR_ALEN];
35 __u8 saddr[TR_ALEN];
36 __be16 rcf;
37 __be16 rseg[8];
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39};
40struct trllc {
41 __u8 dsap;
42 __u8 ssap;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u8 llc;
45 __u8 protid[3];
46 __be16 ethertype;
47};
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49struct tr_statistics {
50 unsigned long rx_packets;
51 unsigned long tx_packets;
52 unsigned long rx_bytes;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 unsigned long tx_bytes;
55 unsigned long rx_errors;
56 unsigned long tx_errors;
57 unsigned long rx_dropped;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 unsigned long tx_dropped;
60 unsigned long multicast;
61 unsigned long transmit_collision;
62 unsigned long line_errors;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 unsigned long internal_errors;
65 unsigned long burst_errors;
66 unsigned long A_C_errors;
67 unsigned long abort_delimiters;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 unsigned long lost_frames;
70 unsigned long recv_congest_count;
71 unsigned long frame_copied_errors;
72 unsigned long frequency_errors;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 unsigned long token_errors;
75 unsigned long dummy1;
76};
77#define TR_RII 0x80
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define TR_RCF_DIR_BIT 0x80
80#define TR_RCF_LEN_MASK 0x1f00
81#define TR_RCF_BROADCAST 0x8000
82#define TR_RCF_LIMITED_BROADCAST 0xC000
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define TR_RCF_FRAME2K 0x20
85#define TR_RCF_BROADCAST_MASK 0xC000
86#define TR_MAXRIFLEN 18
87#endif
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89