1*2874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 233f810b2SJeff Kirsher /****************************************************************************** 333f810b2SJeff Kirsher * 433f810b2SJeff Kirsher * (C)Copyright 1998,1999 SysKonnect, 533f810b2SJeff Kirsher * a business unit of Schneider & Koch & Co. Datensysteme GmbH. 633f810b2SJeff Kirsher * 733f810b2SJeff Kirsher * The information in this file is provided "AS IS" without warranty. 833f810b2SJeff Kirsher * 933f810b2SJeff Kirsher ******************************************************************************/ 1033f810b2SJeff Kirsher 1133f810b2SJeff Kirsher #define PHYS 0 /* physical addr */ 1233f810b2SJeff Kirsher #define PERM_ADDR 0x80 /* permanet address */ 1333f810b2SJeff Kirsher #define SB_STATIC 0x00000001 1433f810b2SJeff Kirsher #define MAX_PAYLOAD 1562 1533f810b2SJeff Kirsher #define PRIMARY_RING 0x00000001 1633f810b2SJeff Kirsher #ifndef NULL 1733f810b2SJeff Kirsher #define NULL 0x00 1833f810b2SJeff Kirsher #endif 1933f810b2SJeff Kirsher 2033f810b2SJeff Kirsher /*********************** SB_Input Variable Values ***********************/ 2133f810b2SJeff Kirsher /* may be needed when ever the SBA state machine is called */ 2233f810b2SJeff Kirsher 2333f810b2SJeff Kirsher #define UNKNOWN_SYNC_SOURCE 0x0001 2433f810b2SJeff Kirsher #define REQ_ALLOCATION 0x0002 2533f810b2SJeff Kirsher #define REPORT_RESP 0x0003 2633f810b2SJeff Kirsher #define CHANGE_RESP 0x0004 2733f810b2SJeff Kirsher #define TNEG 0x0005 2833f810b2SJeff Kirsher #define NIF 0x0006 2933f810b2SJeff Kirsher #define SB_STOP 0x0007 3033f810b2SJeff Kirsher #define SB_START 0x0008 3133f810b2SJeff Kirsher #define REPORT_TIMER 0x0009 3233f810b2SJeff Kirsher #define CHANGE_REQUIRED 0x000A 3333f810b2SJeff Kirsher 3433f810b2SJeff Kirsher #define DEFAULT_OV 50 3533f810b2SJeff Kirsher 3633f810b2SJeff Kirsher #ifdef SBA 3733f810b2SJeff Kirsher /**************************** SBA STATES *****************************/ 3833f810b2SJeff Kirsher 3933f810b2SJeff Kirsher #define SBA_STANDBY 0x00000000 4033f810b2SJeff Kirsher #define SBA_ACTIVE 0x00000001 4133f810b2SJeff Kirsher #define SBA_RECOVERY 0x00000002 4233f810b2SJeff Kirsher #define SBA_REPORT 0x00000003 4333f810b2SJeff Kirsher #define SBA_CHANGE 0x00000004 4433f810b2SJeff Kirsher 4533f810b2SJeff Kirsher /**************************** OTHERS *********************************/ 4633f810b2SJeff Kirsher 4733f810b2SJeff Kirsher #define FIFTY_PERCENT 50 /* bytes per second */ 4833f810b2SJeff Kirsher #define MAX_SESSIONS 150 4933f810b2SJeff Kirsher #define TWO_MINUTES 13079 /* 9.175 ms/tick */ 5033f810b2SJeff Kirsher #define FIFTY_BYTES 50 5133f810b2SJeff Kirsher #define SBA_DENIED 0x0000000D 5233f810b2SJeff Kirsher #define I_NEED_ONE 0x00000000 5333f810b2SJeff Kirsher #define MAX_NODES 50 5433f810b2SJeff Kirsher /*#define T_REPORT 0x59682F00L*/ /* 120s/80ns in Hex */ 5533f810b2SJeff Kirsher #define TWO_MIN 120 /* seconds */ 5633f810b2SJeff Kirsher #define SBA_ST_UNKNOWN 0x00000002 5733f810b2SJeff Kirsher #define SBA_ST_ACTIVE 0x00000001 5833f810b2SJeff Kirsher #define S_CLEAR 0x00000000L 5933f810b2SJeff Kirsher #define ZERO 0x00000000 6033f810b2SJeff Kirsher #define FULL 0x00000000 /* old: 0xFFFFFFFFF */ 6133f810b2SJeff Kirsher #define S_SET 0x00000001L 6233f810b2SJeff Kirsher #define LOW_PRIO 0x02 /* ??????? */ 6333f810b2SJeff Kirsher #define OK 0x01 /* ??????? */ 6433f810b2SJeff Kirsher #define NOT_OK 0x00 /* ??????? */ 6533f810b2SJeff Kirsher 6633f810b2SJeff Kirsher /****************************************/ 6733f810b2SJeff Kirsher /* deallocate_status[ni][si] values */ 6833f810b2SJeff Kirsher /****************************************/ 6933f810b2SJeff Kirsher #define TX_CHANGE 0X00000001L 7033f810b2SJeff Kirsher #define PENDING 0x00000002L 7133f810b2SJeff Kirsher #define NONE 0X00000000L 7233f810b2SJeff Kirsher #endif 73