xref: /linux/drivers/net/fddi/skfp/h/sba_def.h (revision 23c48a124b469cee2eb0c75e6d22d366d1caa118)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /******************************************************************************
3  *
4  *	(C)Copyright 1998,1999 SysKonnect,
5  *	a business unit of Schneider & Koch & Co. Datensysteme GmbH.
6  *
7  *	The information in this file is provided "AS IS" without warranty.
8  *
9  ******************************************************************************/
10 
11 #define PHYS			0		/* physical addr */
12 #define PERM_ADDR		0x80		/* permanet address */
13 #define SB_STATIC		0x00000001
14 #define MAX_PAYLOAD		1562
15 #define PRIMARY_RING		0x00000001
16 #ifndef NULL
17 #define NULL			0x00
18 #endif
19 
20 /*********************** SB_Input Variable Values ***********************/
21 /*	 may be needed when ever the SBA state machine is called	*/
22 
23 #define UNKNOWN_SYNC_SOURCE	0x0001
24 #define REQ_ALLOCATION		0x0002
25 #define REPORT_RESP		0x0003
26 #define CHANGE_RESP		0x0004
27 #define TNEG			0x0005
28 #define NIF			0x0006
29 #define SB_STOP			0x0007
30 #define SB_START		0x0008
31 #define REPORT_TIMER		0x0009
32 #define CHANGE_REQUIRED		0x000A
33 
34 #define DEFAULT_OV		50
35 
36 #ifdef SBA
37 /**************************** SBA STATES *****************************/
38 
39 #define SBA_STANDBY		0x00000000
40 #define SBA_ACTIVE		0x00000001
41 #define SBA_RECOVERY		0x00000002
42 #define SBA_REPORT		0x00000003
43 #define SBA_CHANGE		0x00000004
44 
45 /**************************** OTHERS *********************************/
46 
47 #define FIFTY_PERCENT		50		/* bytes per second */
48 #define MAX_SESSIONS		150
49 #define TWO_MINUTES		13079		/* 9.175 ms/tick */
50 #define FIFTY_BYTES		50
51 #define SBA_DENIED		0x0000000D
52 #define I_NEED_ONE		0x00000000
53 #define MAX_NODES		50
54 /*#define T_REPORT		0x59682F00L*/	/* 120s/80ns in Hex */
55 #define	TWO_MIN			120		/* seconds */
56 #define SBA_ST_UNKNOWN		0x00000002
57 #define SBA_ST_ACTIVE		0x00000001
58 #define S_CLEAR			0x00000000L
59 #define ZERO			0x00000000
60 #define FULL			0x00000000	/* old: 0xFFFFFFFFF */
61 #define S_SET			0x00000001L
62 #define LOW_PRIO		0x02		/* ??????? */
63 #define OK			0x01		/* ??????? */
64 #define NOT_OK			0x00		/* ??????? */
65 
66 /****************************************/
67 /* deallocate_status[ni][si] values	*/
68 /****************************************/
69 #define TX_CHANGE		0X00000001L
70 #define PENDING			0x00000002L
71 #define NONE			0X00000000L
72 #endif
73