hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/uapi/linux/if_fddi.h
....@@ -6,9 +6,10 @@
66 *
77 * Global definitions for the ANSI FDDI interface.
88 *
9
- * Version: @(#)if_fddi.h 1.0.2 Sep 29 2004
9
+ * Version: @(#)if_fddi.h 1.0.3 Oct 6 2018
1010 *
11
- * Author: Lawrence V. Stefani, <stefani@lkg.dec.com>
11
+ * Author: Lawrence V. Stefani, <stefani@yahoo.com>
12
+ * Maintainer: Maciej W. Rozycki, <macro@linux-mips.org>
1213 *
1314 * if_fddi.h is based on previous if_ether.h and if_tr.h work by
1415 * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
....@@ -45,7 +46,21 @@
4546 #define FDDI_K_OUI_LEN 3 /* Octets in OUI in 802.2 SNAP
4647 header */
4748
48
-/* Define FDDI Frame Control (FC) Byte values */
49
+/* Define FDDI Frame Control (FC) Byte masks */
50
+#define FDDI_FC_K_CLASS_MASK 0x80 /* class bit */
51
+#define FDDI_FC_K_CLASS_SYNC 0x80
52
+#define FDDI_FC_K_CLASS_ASYNC 0x00
53
+#define FDDI_FC_K_ALEN_MASK 0x40 /* address length bit */
54
+#define FDDI_FC_K_ALEN_48 0x40
55
+#define FDDI_FC_K_ALEN_16 0x00
56
+#define FDDI_FC_K_FORMAT_MASK 0x30 /* format bits */
57
+#define FDDI_FC_K_FORMAT_FUTURE 0x30
58
+#define FDDI_FC_K_FORMAT_IMPLEMENTOR 0x20
59
+#define FDDI_FC_K_FORMAT_LLC 0x10
60
+#define FDDI_FC_K_FORMAT_MANAGEMENT 0x00
61
+#define FDDI_FC_K_CONTROL_MASK 0x0f /* control bits */
62
+
63
+/* Define FDDI Frame Control (FC) Byte specific values */
4964 #define FDDI_FC_K_VOID 0x00
5065 #define FDDI_FC_K_NON_RESTRICTED_TOKEN 0x80
5166 #define FDDI_FC_K_RESTRICTED_TOKEN 0xC0