blob: a5eafc6903845c230f724db7939937acce6d700a [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_HIPPI_H
20#define _LINUX_IF_HIPPI_H
21#include <linux/types.h>
22#include <asm/byteorder.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define HIPPI_ALEN 6
25#define HIPPI_HLEN sizeof(struct hippi_hdr)
26#define HIPPI_ZLEN 0
27#define HIPPI_DATA_LEN 65280
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define HIPPI_FRAME_LEN (HIPPI_DATA_LEN + HIPPI_HLEN)
30#define HIPPI_EXTENDED_SAP 0xAA
31#define HIPPI_UI_CMD 0x03
32struct hipnet_statistics {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 int rx_packets;
35 int tx_packets;
36 int rx_errors;
37 int tx_errors;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 int rx_dropped;
40 int tx_dropped;
41 int rx_length_errors;
42 int rx_over_errors;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 int rx_crc_errors;
45 int rx_frame_errors;
46 int rx_fifo_errors;
47 int rx_missed_errors;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 int tx_aborted_errors;
50 int tx_carrier_errors;
51 int tx_fifo_errors;
52 int tx_heartbeat_errors;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 int tx_window_errors;
Ben Cheng655a7c02013-10-16 16:09:24 -070055};
56struct hippi_fp_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080057 __be32 fixed;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __be32 d2_size;
Ben Cheng655a7c02013-10-16 16:09:24 -070060} __attribute__((packed));
61struct hippi_le_hdr {
62#ifdef __BIG_ENDIAN_BITFIELD
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u8 fc : 3;
65 __u8 double_wide : 1;
66 __u8 message_type : 4;
Ben Cheng655a7c02013-10-16 16:09:24 -070067#elif defined(__LITTLE_ENDIAN_BITFIELD)
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u8 message_type : 4;
70 __u8 double_wide : 1;
71 __u8 fc : 3;
Ben Cheng655a7c02013-10-16 16:09:24 -070072#endif
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __u8 dest_switch_addr[3];
Ben Cheng655a7c02013-10-16 16:09:24 -070075#ifdef __BIG_ENDIAN_BITFIELD
Tao Baod7db5942015-01-28 10:07:51 -080076 __u8 dest_addr_type : 4, src_addr_type : 4;
Ben Cheng655a7c02013-10-16 16:09:24 -070077#elif defined(__LITTLE_ENDIAN_BITFIELD)
Tao Baod7db5942015-01-28 10:07:51 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 __u8 src_addr_type : 4, dest_addr_type : 4;
Ben Cheng655a7c02013-10-16 16:09:24 -070080#endif
Tao Baod7db5942015-01-28 10:07:51 -080081 __u8 src_switch_addr[3];
82 __u16 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __u8 daddr[HIPPI_ALEN];
85 __u16 locally_administered;
86 __u8 saddr[HIPPI_ALEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070087} __attribute__((packed));
Tao Baod7db5942015-01-28 10:07:51 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089#define HIPPI_OUI_LEN 3
90struct hippi_snap_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080091 __u8 dsap;
92 __u8 ssap;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __u8 ctrl;
95 __u8 oui[HIPPI_OUI_LEN];
96 __be16 ethertype;
Ben Cheng655a7c02013-10-16 16:09:24 -070097} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099struct hippi_hdr {
100 struct hippi_fp_hdr fp;
101 struct hippi_le_hdr le;
102 struct hippi_snap_hdr snap;
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104} __attribute__((packed));
105#endif