• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_NETDEVICE_H
20  #define _LINUX_NETDEVICE_H
21  #include <linux/if.h>
22  #include <linux/if_ether.h>
23  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24  #include <linux/if_packet.h>
25  #define MAX_ADDR_LEN 32
26  #define NETDEV_TX_OK 0
27  #define NETDEV_TX_BUSY 1
28  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  #define NETDEV_TX_LOCKED -1
30  #define LL_MAX_HEADER 32
31  #define MAX_HEADER LL_MAX_HEADER
32  struct net_device_stats
33  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  {
35   unsigned long rx_packets;
36   unsigned long tx_packets;
37   unsigned long rx_bytes;
38  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   unsigned long tx_bytes;
40   unsigned long rx_errors;
41   unsigned long tx_errors;
42   unsigned long rx_dropped;
43  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44   unsigned long tx_dropped;
45   unsigned long multicast;
46   unsigned long collisions;
47   unsigned long rx_length_errors;
48  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   unsigned long rx_over_errors;
50   unsigned long rx_crc_errors;
51   unsigned long rx_frame_errors;
52   unsigned long rx_fifo_errors;
53  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   unsigned long rx_missed_errors;
55   unsigned long tx_aborted_errors;
56   unsigned long tx_carrier_errors;
57   unsigned long tx_fifo_errors;
58  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   unsigned long tx_heartbeat_errors;
60   unsigned long tx_window_errors;
61   unsigned long rx_compressed;
62   unsigned long tx_compressed;
63  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  };
65  enum {
66   IF_PORT_UNKNOWN = 0,
67   IF_PORT_10BASE2,
68  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69   IF_PORT_10BASET,
70   IF_PORT_AUI,
71   IF_PORT_100BASET,
72   IF_PORT_100BASETX,
73  /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74   IF_PORT_100BASEFX
75  };
76  #endif
77