73 lines · c
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 0x0000000114#define MAX_PAYLOAD 156215#define PRIMARY_RING 0x0000000116#ifndef NULL17#define NULL 0x0018#endif19 20/*********************** SB_Input Variable Values ***********************/21/* may be needed when ever the SBA state machine is called */22 23#define UNKNOWN_SYNC_SOURCE 0x000124#define REQ_ALLOCATION 0x000225#define REPORT_RESP 0x000326#define CHANGE_RESP 0x000427#define TNEG 0x000528#define NIF 0x000629#define SB_STOP 0x000730#define SB_START 0x000831#define REPORT_TIMER 0x000932#define CHANGE_REQUIRED 0x000A33 34#define DEFAULT_OV 5035 36#ifdef SBA37/**************************** SBA STATES *****************************/38 39#define SBA_STANDBY 0x0000000040#define SBA_ACTIVE 0x0000000141#define SBA_RECOVERY 0x0000000242#define SBA_REPORT 0x0000000343#define SBA_CHANGE 0x0000000444 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 5051#define SBA_DENIED 0x0000000D52#define I_NEED_ONE 0x0000000053#define MAX_NODES 5054/*#define T_REPORT 0x59682F00L*/ /* 120s/80ns in Hex */55#define TWO_MIN 120 /* seconds */56#define SBA_ST_UNKNOWN 0x0000000257#define SBA_ST_ACTIVE 0x0000000158#define S_CLEAR 0x00000000L59#define ZERO 0x0000000060#define FULL 0x00000000 /* old: 0xFFFFFFFFF */61#define S_SET 0x00000001L62#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 0X00000001L70#define PENDING 0x00000002L71#define NONE 0X00000000L72#endif73