treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / fddi / skfp / h / fddi.h
bloba78fedd7142823abe0ab47c2bf5b6a49e24b3585
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /******************************************************************************
4 * (C)Copyright 1998,1999 SysKonnect,
5 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
7 * The information in this file is provided "AS IS" without warranty.
9 ******************************************************************************/
11 #ifndef _FDDI_
12 #define _FDDI_
14 struct fddi_addr {
15 u_char a[6] ;
16 } ;
18 #define GROUP_ADDR 0x80 /* MSB in a[0] */
20 struct fddi_mac {
21 struct fddi_addr mac_dest ;
22 struct fddi_addr mac_source ;
23 u_char mac_info[4478] ;
24 } ;
26 #define FDDI_MAC_SIZE (12)
27 #define FDDI_RAW_MTU (4500-5) /* exl. Pr,SD, ED/FS */
28 #define FDDI_RAW (4500)
31 * FC values
33 #define FC_VOID 0x40 /* void frame */
34 #define FC_TOKEN 0x80 /* token */
35 #define FC_RES_TOKEN 0xc0 /* restricted token */
36 #define FC_SMT_INFO 0x41 /* SMT Info frame */
38 * FC_SMT_LAN_LOC && FC_SMT_LOC are SK specific !
40 #define FC_SMT_LAN_LOC 0x42 /* local SMT Info frame */
41 #define FC_SMT_LOC 0x43 /* local SMT Info frame */
42 #define FC_SMT_NSA 0x4f /* SMT NSA frame */
43 #define FC_MAC 0xc0 /* MAC frame */
44 #define FC_BEACON 0xc2 /* MAC beacon frame */
45 #define FC_CLAIM 0xc3 /* MAC claim frame */
46 #define FC_SYNC_LLC 0xd0 /* sync. LLC frame */
47 #define FC_ASYNC_LLC 0x50 /* async. LLC frame */
48 #define FC_SYNC_BIT 0x80 /* sync. bit in FC */
50 #define FC_LLC_PRIOR 0x07 /* priority bits */
52 #define BEACON_INFO 0 /* beacon type */
53 #define DBEACON_INFO 1 /* beacon type DIRECTED */
57 * indicator bits
59 #define C_INDICATOR (1<<0)
60 #define A_INDICATOR (1<<1)
61 #define E_INDICATOR (1<<2)
62 #define I_INDICATOR (1<<6) /* SK specific */
63 #define L_INDICATOR (1<<7) /* SK specific */
65 #endif /* _FDDI_ */