1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_IF_TR_H
13 #define _LINUX_IF_TR_H
15 #include <asm/byteorder.h>
18 #define TR_HLEN (sizeof(struct trh_hdr)+sizeof(struct trllc))
20 #define LLC_FRAME 0x40
22 #define EXTENDED_SAP 0xAA
42 struct tr_statistics
{
43 unsigned long rx_packets
;
44 unsigned long tx_packets
;
45 unsigned long rx_bytes
;
46 unsigned long tx_bytes
;
47 unsigned long rx_errors
;
48 unsigned long tx_errors
;
49 unsigned long rx_dropped
;
50 unsigned long tx_dropped
;
51 unsigned long multicast
;
52 unsigned long transmit_collision
;
54 unsigned long line_errors
;
55 unsigned long internal_errors
;
56 unsigned long burst_errors
;
57 unsigned long A_C_errors
;
58 unsigned long abort_delimiters
;
59 unsigned long lost_frames
;
60 unsigned long recv_congest_count
;
61 unsigned long frame_copied_errors
;
62 unsigned long frequency_errors
;
63 unsigned long token_errors
;
68 #define TR_RCF_DIR_BIT 0x80
69 #define TR_RCF_LEN_MASK 0x1f00
70 #define TR_RCF_BROADCAST 0x8000
71 #define TR_RCF_LIMITED_BROADCAST 0xC000
72 #define TR_RCF_FRAME2K 0x20
73 #define TR_RCF_BROADCAST_MASK 0xC000
74 #define TR_MAXRIFLEN 18