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