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 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_NETDEVICE_H
13 #define _LINUX_NETDEVICE_H
15 #include <linux/if.h>
16 #include <linux/if_ether.h>
17 #include <linux/if_packet.h>
19 #define MAX_ADDR_LEN 32
21 #define NETDEV_TX_OK 0
22 #define NETDEV_TX_BUSY 1
23 #define NETDEV_TX_LOCKED -1
25 #define LL_MAX_HEADER 32
27 #define MAX_HEADER LL_MAX_HEADER
29 struct net_device_stats
30 {
31 unsigned long rx_packets;
32 unsigned long tx_packets;
33 unsigned long rx_bytes;
34 unsigned long tx_bytes;
35 unsigned long rx_errors;
36 unsigned long tx_errors;
37 unsigned long rx_dropped;
38 unsigned long tx_dropped;
39 unsigned long multicast;
40 unsigned long collisions;
42 unsigned long rx_length_errors;
43 unsigned long rx_over_errors;
44 unsigned long rx_crc_errors;
45 unsigned long rx_frame_errors;
46 unsigned long rx_fifo_errors;
47 unsigned long rx_missed_errors;
49 unsigned long tx_aborted_errors;
50 unsigned long tx_carrier_errors;
51 unsigned long tx_fifo_errors;
52 unsigned long tx_heartbeat_errors;
53 unsigned long tx_window_errors;
55 unsigned long rx_compressed;
56 unsigned long tx_compressed;
57 };
59 enum {
60 IF_PORT_UNKNOWN = 0,
61 IF_PORT_10BASE2,
62 IF_PORT_10BASET,
63 IF_PORT_AUI,
64 IF_PORT_100BASET,
65 IF_PORT_100BASETX,
66 IF_PORT_100BASEFX
67 };
69 #endif