blob: cee18c0122e3aee409076e502d9a992855a7cc28 [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 _UAPI_LINUX_IF_FDDI_H
20#define _UAPI_LINUX_IF_FDDI_H
21#include <linux/types.h>
22#define FDDI_K_ALEN 6
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define FDDI_K_8022_HLEN 16
25#define FDDI_K_SNAP_HLEN 21
26#define FDDI_K_8022_ZLEN 16
27#define FDDI_K_SNAP_ZLEN 21
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define FDDI_K_8022_DLEN 4475
30#define FDDI_K_SNAP_DLEN 4470
31#define FDDI_K_LLC_ZLEN 13
32#define FDDI_K_LLC_LEN 4491
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070034#define FDDI_K_OUI_LEN 3
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define FDDI_FC_K_VOID 0x00
36#define FDDI_FC_K_NON_RESTRICTED_TOKEN 0x80
37#define FDDI_FC_K_RESTRICTED_TOKEN 0xC0
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070039#define FDDI_FC_K_SMT_MIN 0x41
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define FDDI_FC_K_SMT_MAX 0x4F
41#define FDDI_FC_K_MAC_MIN 0xC1
42#define FDDI_FC_K_MAC_MAX 0xCF
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070044#define FDDI_FC_K_ASYNC_LLC_MIN 0x50
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define FDDI_FC_K_ASYNC_LLC_DEF 0x54
46#define FDDI_FC_K_ASYNC_LLC_MAX 0x5F
47#define FDDI_FC_K_SYNC_LLC_MIN 0xD0
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070049#define FDDI_FC_K_SYNC_LLC_MAX 0xD7
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define FDDI_FC_K_IMPLEMENTOR_MIN 0x60
51#define FDDI_FC_K_IMPLEMENTOR_MAX 0x6F
52#define FDDI_FC_K_RESERVED_MIN 0x70
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070054#define FDDI_FC_K_RESERVED_MAX 0x7F
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define FDDI_EXTENDED_SAP 0xAA
56#define FDDI_UI_CMD 0x03
57struct fddi_8022_1_hdr {
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070059 __u8 dsap;
Ben Cheng655a7c02013-10-16 16:09:24 -070060 __u8 ssap;
61 __u8 ctrl;
62} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070064struct fddi_8022_2_hdr {
Ben Cheng655a7c02013-10-16 16:09:24 -070065 __u8 dsap;
66 __u8 ssap;
67 __u8 ctrl_1;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070069 __u8 ctrl_2;
Ben Cheng655a7c02013-10-16 16:09:24 -070070} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070071struct fddi_snap_hdr {
72 __u8 dsap;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 __u8 ssap;
75 __u8 ctrl;
76 __u8 oui[FDDI_K_OUI_LEN];
77 __be16 ethertype;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79} __attribute__((packed));
80struct fddihdr {
81 __u8 fc;
82 __u8 daddr[FDDI_K_ALEN];
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 __u8 saddr[FDDI_K_ALEN];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070085 union {
Ben Cheng655a7c02013-10-16 16:09:24 -070086 struct fddi_8022_1_hdr llc_8022_1;
Ben Cheng655a7c02013-10-16 16:09:24 -070087 struct fddi_8022_2_hdr llc_8022_2;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089 struct fddi_snap_hdr llc_snap;
90 } hdr;
91} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070092#endif
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */