linux/drivers/net/fddi/skfp/smtdef.c

// SPDX-License-Identifier: GPL-2.0-or-later
/******************************************************************************
 *
 *	(C)Copyright 1998,1999 SysKonnect,
 *	a business unit of Schneider & Koch & Co. Datensysteme GmbH.
 *
 *	See the file "skfddi.c" for further information.
 *
 *	The information in this file is provided "AS IS" without warranty.
 *
 ******************************************************************************/

/*
	SMT/CMT defaults
*/

#include "h/types.h"
#include "h/fddi.h"
#include "h/smc.h"

#ifndef OEM_USER_DATA
#define OEM_USER_DATA
#endif

/*
 * defaults
 */
#define TTMS(x)
#define TTS(x)
#define TTUS(x)

#define DEFAULT_TB_MIN
#define DEFAULT_TB_MAX
#define DEFAULT_C_MIN
#define DEFAULT_T_OUT
#define DEFAULT_TL_MIN
#define DEFAULT_LC_SHORT
#define DEFAULT_LC_MEDIUM
#define DEFAULT_LC_LONG
#define DEFAULT_LC_EXTENDED
#define DEFAULT_T_NEXT_9
#define DEFAULT_NS_MAX
#define DEFAULT_I_MAX
#define DEFAULT_IN_MAX
#define DEFAULT_TD_MIN
#define DEFAULT_T_NON_OP
#define DEFAULT_T_STUCK
#define DEFAULT_T_DIRECT
#define DEFAULT_T_JAM
#define DEFAULT_T_ANNOUNCE
#define DEFAULT_D_MAX
#define DEFAULT_LEM_ALARM
#define DEFAULT_LEM_CUTOFF
#define DEFAULT_TEST_DONE
#define DEFAULT_CHECK_POLL
#define DEFAULT_POLL

/*
 * LCT errors threshold
 */
#define DEFAULT_LCT_SHORT
#define DEFAULT_LCT_MEDIUM
#define DEFAULT_LCT_LONG
#define DEFAULT_LCT_EXTEND

/* Forward declarations */
void smt_reset_defaults(struct s_smc *smc, int level);
static void smt_init_mib(struct s_smc *smc, int level);
static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper);

#define MS2BCLK(x)
#define US2BCLK(x)

void smt_reset_defaults(struct s_smc *smc, int level)
{}

/*
 * manufacturer data
 */
static const char man_data[32] =/*	 01234567890123456789012345678901	*/
	"xxxSK-NET FDDI SMT 7.3 - V2.8.8" ;

static void smt_init_mib(struct s_smc *smc, int level)
{}

int smt_set_mac_opvalues(struct s_smc *smc)
{}

void smt_fixup_mib(struct s_smc *smc)
{}

/*
 * determine new setting for operational value
 * if limit is lower than mib
 *	use limit
 * else
 *	use mib
 * NOTE : numbers are negative, negate comparison !
 */
static int set_min_max(int maxflag, u_long mib, u_long limit, u_long *oper)
{}