linux/include/uapi/linux/if_fddi.h

/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
/*
 * INET		An implementation of the TCP/IP protocol suite for the LINUX
 *		operating system.  INET is implemented using the BSD Socket
 *		interface as the means of communication with the user level.
 *
 *		Global definitions for the ANSI FDDI interface.
 *
 * Version:	@(#)if_fddi.h	1.0.3	Oct  6 2018
 *
 * Author:	Lawrence V. Stefani, <[email protected]>
 * Maintainer:	Maciej W. Rozycki, <[email protected]>
 *
 *		if_fddi.h is based on previous if_ether.h and if_tr.h work by
 *			Fred N. van Kempen, <[email protected]>
 *			Donald Becker, <[email protected]>
 *			Alan Cox, <[email protected]>
 *			Steve Whitehouse, <[email protected]>
 *			Peter De Schrijver, <[email protected]>
 *
 *		This program is free software; you can redistribute it and/or
 *		modify it under the terms of the GNU General Public License
 *		as published by the Free Software Foundation; either version
 *		2 of the License, or (at your option) any later version.
 */
#ifndef _UAPI_LINUX_IF_FDDI_H
#define _UAPI_LINUX_IF_FDDI_H

#include <linux/types.h>

/*
 *  Define max and min legal sizes.  The frame sizes do not include
 *  4 byte FCS/CRC (frame check sequence).
 */
#define FDDI_K_ALEN
#define FDDI_K_8022_HLEN
#define FDDI_K_SNAP_HLEN
#define FDDI_K_8022_ZLEN
#define FDDI_K_SNAP_ZLEN
#define FDDI_K_8022_DLEN
#define FDDI_K_SNAP_DLEN
#define FDDI_K_LLC_ZLEN
#define FDDI_K_LLC_LEN
#define FDDI_K_OUI_LEN

/* Define FDDI Frame Control (FC) Byte masks */
#define FDDI_FC_K_CLASS_MASK
#define FDDI_FC_K_CLASS_SYNC
#define FDDI_FC_K_CLASS_ASYNC
#define FDDI_FC_K_ALEN_MASK
#define FDDI_FC_K_ALEN_48
#define FDDI_FC_K_ALEN_16
#define FDDI_FC_K_FORMAT_MASK
#define FDDI_FC_K_FORMAT_FUTURE
#define FDDI_FC_K_FORMAT_IMPLEMENTOR
#define FDDI_FC_K_FORMAT_LLC
#define FDDI_FC_K_FORMAT_MANAGEMENT
#define FDDI_FC_K_CONTROL_MASK

/* Define FDDI Frame Control (FC) Byte specific values */
#define FDDI_FC_K_VOID
#define FDDI_FC_K_NON_RESTRICTED_TOKEN
#define FDDI_FC_K_RESTRICTED_TOKEN
#define FDDI_FC_K_SMT_MIN
#define FDDI_FC_K_SMT_MAX
#define FDDI_FC_K_MAC_MIN
#define FDDI_FC_K_MAC_MAX
#define FDDI_FC_K_ASYNC_LLC_MIN
#define FDDI_FC_K_ASYNC_LLC_DEF
#define FDDI_FC_K_ASYNC_LLC_MAX
#define FDDI_FC_K_SYNC_LLC_MIN
#define FDDI_FC_K_SYNC_LLC_MAX
#define FDDI_FC_K_IMPLEMENTOR_MIN
#define FDDI_FC_K_IMPLEMENTOR_MAX
#define FDDI_FC_K_RESERVED_MIN
#define FDDI_FC_K_RESERVED_MAX

/* Define LLC and SNAP constants */
#define FDDI_EXTENDED_SAP
#define FDDI_UI_CMD

/* Define 802.2 Type 1 header */
struct fddi_8022_1_hdr {} __attribute__((packed));

/* Define 802.2 Type 2 header */
struct fddi_8022_2_hdr {} __attribute__((packed));

/* Define 802.2 SNAP header */
struct fddi_snap_hdr {} __attribute__((packed));

/* Define FDDI LLC frame header */
struct fddihdr {} __attribute__((packed));


#endif /* _UAPI_LINUX_IF_FDDI_H */