blob: 77afa1c61969cb54a3019a9ed2b08fb91f9f3d2c [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng94a85f62012-03-06 15:45:52 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_NETDEVICE_H
20#define _LINUX_NETDEVICE_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/if.h>
22#include <linux/if_ether.h>
Ben Cheng94a85f62012-03-06 15:45:52 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#include <linux/if_packet.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080025#define MAX_ADDR_LEN 32
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#define NETDEV_TX_OK 0
27#define NETDEV_TX_BUSY 1
Ben Cheng94a85f62012-03-06 15:45:52 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029#define NETDEV_TX_LOCKED -1
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080030#define LL_MAX_HEADER 32
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031#define MAX_HEADER LL_MAX_HEADER
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032struct net_device_stats
Ben Cheng94a85f62012-03-06 15:45:52 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034{
35 unsigned long rx_packets;
36 unsigned long tx_packets;
37 unsigned long rx_bytes;
Ben Cheng94a85f62012-03-06 15:45:52 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 unsigned long tx_bytes;
40 unsigned long rx_errors;
41 unsigned long tx_errors;
42 unsigned long rx_dropped;
Ben Cheng94a85f62012-03-06 15:45:52 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044 unsigned long tx_dropped;
45 unsigned long multicast;
46 unsigned long collisions;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080047 unsigned long rx_length_errors;
Ben Cheng94a85f62012-03-06 15:45:52 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049 unsigned long rx_over_errors;
50 unsigned long rx_crc_errors;
51 unsigned long rx_frame_errors;
52 unsigned long rx_fifo_errors;
Ben Cheng94a85f62012-03-06 15:45:52 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054 unsigned long rx_missed_errors;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080055 unsigned long tx_aborted_errors;
56 unsigned long tx_carrier_errors;
57 unsigned long tx_fifo_errors;
Ben Cheng94a85f62012-03-06 15:45:52 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059 unsigned long tx_heartbeat_errors;
60 unsigned long tx_window_errors;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080061 unsigned long rx_compressed;
62 unsigned long tx_compressed;
Ben Cheng94a85f62012-03-06 15:45:52 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080065enum {
66 IF_PORT_UNKNOWN = 0,
67 IF_PORT_10BASE2,
Ben Cheng94a85f62012-03-06 15:45:52 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080069 IF_PORT_10BASET,
70 IF_PORT_AUI,
71 IF_PORT_100BASET,
72 IF_PORT_100BASETX,
Ben Cheng94a85f62012-03-06 15:45:52 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080074 IF_PORT_100BASEFX
75};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080076#endif