[go: nahoru, domu]

11da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/******************************************************************************
21da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *
31da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *	(C)Copyright 1998,1999 SysKonnect,
41da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *	a business unit of Schneider & Koch & Co. Datensysteme GmbH.
51da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *
61da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *	This program is free software; you can redistribute it and/or modify
71da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *	it under the terms of the GNU General Public License as published by
81da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *	the Free Software Foundation; either version 2 of the License, or
91da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *	(at your option) any later version.
101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *
111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *	The information in this file is provided "AS IS" without warranty.
121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *
131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds ******************************************************************************/
141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef	_CMTDEF_
161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define _CMTDEF_
171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* **************************************************************** */
191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * implementation specific constants
2225985edcedea6396277003854657b5f3cb31a628Lucas De Marchi * MODIIFY THE FOLLOWING THREE DEFINES
231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define AMDPLC			/* if Amd PLC chip used */
251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	CONC
261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NUMPHYS		12	/* 2 for SAS or DAS, more for Concentrator */
271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	CONC_II
291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NUMPHYS		24	/* 2 for SAS or DAS, more for Concentrator */
301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NUMPHYS		2	/* 2 for SAS or DAS, more for Concentrator */
321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NUMMACS		1	/* only 1 supported at the moment */
351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NUMPATHS	2	/* primary and secondary path supported */
361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * DO NOT MODIFY BEYOND THIS POINT
391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* **************************************************************** */
421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#if	NUMPHYS > 2
441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define CONCENTRATOR
451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Definitions for comfortable LINT usage
491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	lint
511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LINT_USE(x)	(x)=(x)
521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LINT_USE(x)
541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	DEBUG
571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	DB_PR(flag,a,b,c)	{ if (flag) printf(a,b,c) ; }
581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	DB_PR(flag,a,b,c)
601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef DEBUG_BRD
631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_ECM(a,b,c)		DB_PR((smc->debug.d_smt&1),a,b,c)
641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_ECMN(n,a,b,c)	DB_PR((smc->debug.d_ecm >=(n)),a,b,c)
651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_RMT(a,b,c)		DB_PR((smc->debug.d_smt&2),a,b,c)
661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_RMTN(n,a,b,c)	DB_PR((smc->debug.d_rmt >=(n)),a,b,c)
671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_CFM(a,b,c)		DB_PR((smc->debug.d_smt&4),a,b,c)
681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_CFMN(n,a,b,c)	DB_PR((smc->debug.d_cfm >=(n)),a,b,c)
691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_PCM(a,b,c)		DB_PR((smc->debug.d_smt&8),a,b,c)
701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_PCMN(n,a,b,c)	DB_PR((smc->debug.d_pcm >=(n)),a,b,c)
711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_SMT(a,b,c)		DB_PR((smc->debug.d_smtf),a,b,c)
721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_SMTN(n,a,b,c)	DB_PR((smc->debug.d_smtf >=(n)),a,b,c)
731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_SBA(a,b,c)		DB_PR((smc->debug.d_sba),a,b,c)
741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_SBAN(n,a,b,c)	DB_PR((smc->debug.d_sba >=(n)),a,b,c)
751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_ESS(a,b,c)		DB_PR((smc->debug.d_ess),a,b,c)
761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_ESSN(n,a,b,c)	DB_PR((smc->debug.d_ess >=(n)),a,b,c)
771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_ECM(a,b,c)		DB_PR((debug.d_smt&1),a,b,c)
791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_ECMN(n,a,b,c)	DB_PR((debug.d_ecm >=(n)),a,b,c)
801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_RMT(a,b,c)		DB_PR((debug.d_smt&2),a,b,c)
811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_RMTN(n,a,b,c)	DB_PR((debug.d_rmt >=(n)),a,b,c)
821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_CFM(a,b,c)		DB_PR((debug.d_smt&4),a,b,c)
831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_CFMN(n,a,b,c)	DB_PR((debug.d_cfm >=(n)),a,b,c)
841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_PCM(a,b,c)		DB_PR((debug.d_smt&8),a,b,c)
851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_PCMN(n,a,b,c)	DB_PR((debug.d_pcm >=(n)),a,b,c)
861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_SMT(a,b,c)		DB_PR((debug.d_smtf),a,b,c)
871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_SMTN(n,a,b,c)	DB_PR((debug.d_smtf >=(n)),a,b,c)
881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_SBA(a,b,c)		DB_PR((debug.d_sba),a,b,c)
891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_SBAN(n,a,b,c)	DB_PR((debug.d_sba >=(n)),a,b,c)
901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_ESS(a,b,c)		DB_PR((debug.d_ess),a,b,c)
911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DB_ESSN(n,a,b,c)	DB_PR((debug.d_ess >=(n)),a,b,c)
921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef	SS_NOT_DS
951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SK_LOC_DECL(type,var)	type var
961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SK_LOC_DECL(type,var)	static type var
981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * PHYs and PORTS
1011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Note: Don't touch the definition of PA and PB. Those might be used
1021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds *	by some "for" loops.
1031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PA		0
1051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PB		1
1061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#if	defined(SUPERNET_3) || defined(CONC_II)
1071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * The port indices have to be different,
1091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * because the MAC output goes through the 2. PLC
1101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Conc II: It has to be the first port in the row.
1111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PS		0	/* Internal PLC which is the same as PA */
1131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
1141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PS		1
1151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
1161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PM		2		/* PM .. PA+NUM_PHYS-1 */
1171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * PHY types - as in path descriptor 'fddiPHYType'
1201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TA			0	/* A port */
1221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TB			1	/* B port */
1231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TS			2	/* S port */
1241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TM			3	/* M port */
1251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define TNONE			4
1261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * indexes in MIB
1301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define INDEX_MAC	1
1321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define INDEX_PATH	1
1331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define INDEX_PORT	1
1341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * policies
1381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_AA	(1<<0)		/* reject AA */
1401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_AB	(1<<1)		/* reject AB */
1411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_AS	(1<<2)		/* reject AS */
1421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_AM	(1<<3)		/* reject AM */
1431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_BA	(1<<4)		/* reject BA */
1441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_BB	(1<<5)		/* reject BB */
1451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_BS	(1<<6)		/* reject BS */
1461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_BM	(1<<7)		/* reject BM */
1471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_SA	(1<<8)		/* reject SA */
1481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_SB	(1<<9)		/* reject SB */
1491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_SS	(1<<10)		/* reject SS */
1501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_SM	(1<<11)		/* reject SM */
1511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_MA	(1<<12)		/* reject MA */
1521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_MB	(1<<13)		/* reject MB */
1531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_MS	(1<<14)		/* reject MS */
1541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define POLICY_MM	(1<<15)		/* reject MM */
1551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * commands
1581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * EVENTS
1621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * event classes
1631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EVENT_ECM	1		/* event class ECM */
1651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EVENT_CFM	2		/* event class CFM */
1661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EVENT_RMT	3		/* event class RMT */
1671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EVENT_SMT	4		/* event class SMT */
1681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EVENT_PCM	5		/* event class PCM */
1691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EVENT_PCMA	5		/* event class PCMA */
1701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EVENT_PCMB	6		/* event class PCMB */
1711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* WARNING :
1731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * EVENT_PCM* must be last in the above list
1741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * if more than two ports are used, EVENT_PCM .. EVENT_PCMA+NUM_PHYS-1
1751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * are used !
1761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EV_TOKEN(class,event)	(((u_long)(class)<<16L)|((u_long)(event)))
1791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EV_T_CLASS(token)	((int)((token)>>16)&0xffff)
1801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EV_T_EVENT(token)	((int)(token)&0xffff)
1811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * ECM events
1841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EC_CONNECT	1		/* connect request */
1861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EC_DISCONNECT	2		/* disconnect request */
1871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EC_TRACE_PROP	3		/* trace propagation */
1881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EC_PATH_TEST	4		/* path test */
1891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EC_TIMEOUT_TD	5		/* timer TD_min */
1901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EC_TIMEOUT_TMAX	6		/* timer trace_max */
1911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EC_TIMEOUT_IMAX	7		/* timer I_max */
1921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EC_TIMEOUT_INMAX 8		/* timer IN_max */
1931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define EC_TEST_DONE	9		/* path test done */
1941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
1951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
1961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * CFM events
1971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
1981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define CF_LOOP		1		/* cf_loop flag from PCM */
1991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define CF_LOOP_A	1		/* cf_loop flag from PCM */
2001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define CF_LOOP_B	2		/* cf_loop flag from PCM */
2011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define CF_JOIN		3		/* cf_join flag from PCM */
2021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define CF_JOIN_A	3		/* cf_join flag from PCM */
2031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define CF_JOIN_B	4		/* cf_join flag from PCM */
2041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
2051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
2061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * PCM events
2071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
2081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_START		1
2091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_STOP			2
2101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_LOOP			3
2111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_JOIN			4
2121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_SIGNAL		5
2131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_REJECT		6
2141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_MAINT    		7
2151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_TRACE		8
2161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_PDR			9
2171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_ENABLE		10
2181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_DISABLE		11
2191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
2201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
2211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * must be ordered as in LineStateType
2221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
2231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_QLS			12
2241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_ILS			13
2251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_MLS			14
2261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_HLS			15
2271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_LS_PDR		16
2281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_LS_NONE		17
2291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LS2MIB(x)	((x)-PC_QLS)
2301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MIB2LS(x)	((x)+PC_QLS)
2311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
2321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_TIMEOUT_TB_MAX	18	/* timer TB_max */
2331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_TIMEOUT_TB_MIN	19	/* timer TB_min */
2341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_TIMEOUT_C_MIN	20	/* timer C_Min */
2351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_TIMEOUT_T_OUT	21	/* timer T_Out */
2361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_TIMEOUT_TL_MIN	22	/* timer TL_Min */
2371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_TIMEOUT_T_NEXT	23	/* timer t_next[] */
2381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_TIMEOUT_LCT		24
2391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_NSE			25	/* NOISE hardware timer */
2401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_LEM			26	/* LEM done */
2411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
2421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
2431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * RMT events				  meaning		from
2441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
2451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_RING_OP	1		/* ring operational	MAC	*/
2461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_RING_NON_OP	2		/* ring not operational	MAC	*/
2471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_MY_BEACON	3		/* recvd my beacon	MAC	*/
2481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_OTHER_BEACON	4		/* recvd other beacon	MAC	*/
2491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_MY_CLAIM	5		/* recvd my claim	MAC	*/
2501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_TRT_EXP	6		/* TRT exp		MAC	*/
2511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_VALID_CLAIM	7		/* claim from dup addr	MAC	*/
2521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_JOIN		8		/* signal rm_join	CFM	*/
2531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_LOOP		9		/* signal rm_loop	CFM	*/
2541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_DUP_ADDR	10		/* dup_addr_test hange	SMT-NIF	*/
2551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_ENABLE_FLAG	11		/* enable flag */
2561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
2571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_TIMEOUT_NON_OP	12	/* timeout T_Non_OP	*/
2581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_TIMEOUT_T_STUCK	13	/* timeout T_Stuck	*/
2591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_TIMEOUT_ANNOUNCE	14	/* timeout T_Announce	*/
2601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_TIMEOUT_T_DIRECT	15	/* timeout T_Direct	*/
2611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_TIMEOUT_D_MAX	16	/* timeout D_Max	*/
2621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_TIMEOUT_POLL		17	/* claim/beacon poller	*/
2631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RM_TX_STATE_CHANGE	18	/* To restart timer for D_Max */
2641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
2651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
2661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * SMT events
2671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
2681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SM_TIMER	1		/* timer */
2691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SM_FAST		2		/* smt_force_irq */
2701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
2711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* PC modes */
2721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PM_NONE		0
2731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PM_PEER		1
2741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PM_TREE		2
2751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
2761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
2771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * PCM withhold codes
2781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * MIB PC-WithholdType ENUM
2791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
2801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_WH_NONE	0		/* ok */
2811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_WH_M_M	1		/* M to M */
2821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_WH_OTHER	2		/* other incompatible phys */
2831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PC_WH_PATH	3		/* path not available */
2841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
2851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * LCT duration
2861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
2871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LC_SHORT	1		/* short LCT */
2881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LC_MEDIUM	2		/* medium LCT */
2891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LC_LONG		3		/* long LCT */
2901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LC_EXTENDED	4		/* extended LCT */
2911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
2921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
2931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * path_test values
2941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
2951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PT_NONE		0
2961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PT_TESTING	1		/* test is running */
2971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PT_PASSED	2		/* test passed */
2981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PT_FAILED	3		/* test failed */
2991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PT_PENDING	4		/* path test follows */
3001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PT_EXITING	5		/* disconnected while in trace/leave */
3011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * duplicate address test
3041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * MIB DupAddressTest ENUM
3051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DA_NONE		0		/* 		*/
3071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DA_PASSED	1		/* test passed */
3081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define DA_FAILED	2		/* test failed */
3091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * optical bypass
3131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define BP_DEINSERT	0		/* disable bypass */
3151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define BP_INSERT	1		/* enable bypass */
3161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * ODL enable/disable
3191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PM_TRANSMIT_DISABLE	0	/* disable xmit */
3211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PM_TRANSMIT_ENABLE	1	/* enable xmit */
3221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * parameter for config_mux
3251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * note : number is index in config_endec table !
3261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MUX_THRUA	0		/* through A */
3281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MUX_THRUB	1		/* through B */
3291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MUX_WRAPA	2		/* wrap A */
3301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MUX_WRAPB	3		/* wrap B */
3311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MUX_ISOLATE	4		/* isolated */
3321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MUX_WRAPS	5		/* SAS */
3331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * MAC control
3361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MA_RESET	0
3381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MA_BEACON	1
3391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MA_CLAIM	2
3401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MA_DIRECTED	3		/* directed beacon */
3411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MA_TREQ		4		/* change T_Req */
3421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MA_OFFLINE	5		/* switch MAC to offline */
3431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * trace prop
3471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * bit map for trace propagation
3481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define ENTITY_MAC	(NUMPHYS)
3501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define ENTITY_PHY(p)	(p)
3511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define ENTITY_BIT(m)	(1<<(m))
3521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * Resource Tag Types
3551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PATH_ISO	0	/* isolated */
3571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PATH_PRIM	3	/* primary path */
3581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PATH_THRU	5	/* through path */
3591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RES_MAC		2	/* resource type MAC */
3611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define RES_PORT	4	/* resource type PORT */
3621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * CFM state
3661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * oops: MUST MATCH CF-StateType in SMT7.2 !
3671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SC0_ISOLATED	0		/* isolated */
3691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SC1_WRAP_A	5		/* wrap A (not used) */
3701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SC2_WRAP_B	6		/* wrap B (not used) */
3711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SC4_THRU_A	12		/* through A */
3721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SC5_THRU_B	7		/* through B (used in SMT 6.2) */
3731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SC7_WRAP_S	8		/* SAS (not used) */
3741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SC9_C_WRAP_A	9		/* c wrap A */
3751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SC10_C_WRAP_B	10		/* c wrap B */
3761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SC11_C_WRAP_S	11		/* c wrap S */
3771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * convert MIB time in units of 80nS to uS
3801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define MIB2US(t)		((t)/12)
3821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SEC2MIB(s)	((s)*12500000L)
3831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * SMT timer
3851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsstruct smt_timer {
3871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	struct smt_timer	*tm_next ;	/* linked list */
3881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	struct s_smc		*tm_smc ;	/* pointer to context */
3891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long			tm_delta ;	/* delta time */
3901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long			tm_token ;	/* token value */
3911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_short			tm_active ;	/* flag : active/inactive */
3921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_short			tm_pad ;	/* pad field */
3931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds} ;
3941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
3951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
3961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * communication structures
3971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
3981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsstruct mac_parameter {
3991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long	t_neg ;		/* T_Neg parameter */
4001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long	t_pri ;		/* T_Pri register in MAC */
4011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds} ;
4021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
4041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * MAC counters
4051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
4061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsstruct mac_counter {
4071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long	mac_nobuf_counter ;	/* MAC SW counter: no buffer */
4081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long	mac_r_restart_counter ;	/* MAC SW counter: rx restarted */
4091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds} ;
4101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
4121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * para struct context for SMT parameters
4131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
4141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsstruct s_pcon {
4151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	pc_len ;
4161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	pc_err ;
4171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	pc_badset ;
4181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	void	*pc_p ;
4191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds} ;
4201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
4221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * link error monitor
4231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
4241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define LEM_AVG	5
4251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsstruct lem_counter {
4261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	AM29K
4271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	lem_on	;
4281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long	lem_errors ;
4291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long	lem_symbols ;
4301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long	lem_tsymbols ;
4311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	lem_s_count ;
4321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	lem_n_s ;
4331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	lem_values ;
4341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	lem_index ;
4351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	lem_avg_ber[LEM_AVG] ;
4361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	int	lem_sum ;
4371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
4381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_short	lem_float_ber ;		/* 10E-nn bit error rate */
4391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long	lem_errors ;		/* accumulated error count */
4401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_short	lem_on	;
4411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
4421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds} ;
4431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define NUMBITS	10
4451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	AMDPLC
4471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
4491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * PLC state table
4501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
4511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsstruct s_plc {
4521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_short	p_state ;		/* current state */
4531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_short	p_bits ;		/* number of bits to send */
4541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_short	p_start ;		/* first bit pos */
4551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_short	p_pad ;			/* padding for alignment */
4561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long soft_err ;		/* error counter */
4571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long parity_err ;		/* error counter */
4581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long ebuf_err ;		/* error counter */
45925985edcedea6396277003854657b5f3cb31a628Lucas De Marchi	u_long ebuf_cont ;		/* continuous error counter */
4601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long phyinv ;			/* error counter */
4611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long vsym_ctr ;		/* error counter */
4621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long mini_ctr ;		/* error counter */
4631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long tpc_exp ;		/* error counter */
4641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long np_err ;			/* error counter */
4651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long b_pcs ;			/* error counter */
4661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long b_tpc ;			/* error counter */
4671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long b_tne ;			/* error counter */
4681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long b_qls ;			/* error counter */
4691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long b_ils ;			/* error counter */
4701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds	u_long b_hls ;			/* error counter */
4711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds} ;
4721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
4731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	PROTOTYP_INC
4751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#include "fddi/driver.pro"
4761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else	/* PROTOTYP_INC */
4771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
4781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * function prototypes
4791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
480aab3ac26108642eaa06efa4697dab595c7de2bbdJeff Kirsher#include "mbuf.h"	/* Type definitions for MBUFs */
481aab3ac26108642eaa06efa4697dab595c7de2bbdJeff Kirsher#include "smtstate.h"	/* struct smt_state */
4821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid hwt_restart(struct s_smc *smc);	/* hwt.c */
4841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsSMbuf *smt_build_frame(struct s_smc *smc, int class, int type,
4851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds		       int length);	/* smt.c */
4861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsSMbuf *smt_get_mbuf(struct s_smc *smc);	/* drvsr.c */
4871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid *sm_to_para(struct s_smc *smc, struct smt_header *sm,
4881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds		 int para);		/* smt.c */
4891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef SK_UNUSED
4911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SK_UNUSED(var)		(void)(var)
4921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
4931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
4941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid queue_event(struct s_smc *smc, int class, int event);
4951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid ecm(struct s_smc *smc, int event);
4961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid ecm_init(struct s_smc *smc);
4971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid rmt(struct s_smc *smc, int event);
4981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid rmt_init(struct s_smc *smc);
4991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid pcm(struct s_smc *smc, const int np, int event);
5001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid pcm_init(struct s_smc *smc);
5011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid cfm(struct s_smc *smc, int event);
5021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid cfm_init(struct s_smc *smc);
5031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_timer_start(struct s_smc *smc, struct smt_timer *timer, u_long time,
5041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds		     u_long token);
5051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_timer_stop(struct s_smc *smc, struct smt_timer *timer);
5061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid pcm_status_state(struct s_smc *smc, int np, int *type, int *state,
5071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds		      int *remote, int *mac);
5081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid plc_config_mux(struct s_smc *smc, int mux);
5091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid sm_lem_evaluate(struct s_smc *smc);
5101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid mac_update_counter(struct s_smc *smc);
5111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid sm_pm_ls_latch(struct s_smc *smc, int phy, int on_off);
5121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid sm_ma_control(struct s_smc *smc, int mode);
5131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid sm_mac_check_beacon_claim(struct s_smc *smc);
5141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid config_mux(struct s_smc *smc, int mux);
5151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_agent_init(struct s_smc *smc);
5161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_timer_init(struct s_smc *smc);
5171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_received_pack(struct s_smc *smc, SMbuf *mb, int fs);
5181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para,
5191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds		  int index, int local);
5201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_swap_para(struct smt_header *sm, int len, int direction);
5211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid ev_init(struct s_smc *smc);
5221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid hwt_init(struct s_smc *smc);
5231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsu_long hwt_read(struct s_smc *smc);
5241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid hwt_stop(struct s_smc *smc);
5251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid hwt_start(struct s_smc *smc, u_long time);
5261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_send_mbuf(struct s_smc *smc, SMbuf *mb, int fc);
5271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_free_mbuf(struct s_smc *smc, SMbuf *mb);
5281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid sm_pm_bypass_req(struct s_smc *smc, int mode);
5291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid rmt_indication(struct s_smc *smc, int i);
5301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid cfm_state_change(struct s_smc *smc, int c_state);
5311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
5321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#if defined(DEBUG) || !defined(NO_SMT_PANIC)
5331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_panic(struct s_smc *smc, char *text);
5341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
5351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	smt_panic(smc,text)
5361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif /* DEBUG || !NO_SMT_PANIC */
5371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
5381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_stat_counter(struct s_smc *smc, int stat);
5391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_timer_poll(struct s_smc *smc);
5401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsu_long smt_get_time(void);
5411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsu_long smt_get_tid(struct s_smc *smc);
5421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_timer_done(struct s_smc *smc);
5431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_fixup_mib(struct s_smc *smc);
5441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_reset_defaults(struct s_smc *smc, int level);
5451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_agent_task(struct s_smc *smc);
5461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint smt_check_para(struct s_smc *smc, struct smt_header *sm,
5471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds		   const u_short list[]);
5481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid driver_get_bia(struct s_smc *smc, struct fddi_addr *bia_addr);
5491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
5501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef SUPERNET_3
5511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid drv_reset_indication(struct s_smc *smc);
5521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif	/* SUPERNET_3 */
5531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
5541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_start_watchdog(struct s_smc *smc);
5551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_event(struct s_smc *smc, int event);
5561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid timer_event(struct s_smc *smc, u_long token);
5571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid ev_dispatcher(struct s_smc *smc);
5581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid pcm_get_state(struct s_smc *smc, struct smt_state *state);
5591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid ecm_state_change(struct s_smc *smc, int e_state);
5601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint sm_pm_bypass_present(struct s_smc *smc);
5611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid pcm_state_change(struct s_smc *smc, int plc, int p_state);
5621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid rmt_state_change(struct s_smc *smc, int r_state);
5631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint sm_pm_get_ls(struct s_smc *smc, int phy);
5641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint pcm_get_s_port(struct s_smc *smc);
5651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint pcm_rooted_station(struct s_smc *smc);
5661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint cfm_get_mac_input(struct s_smc *smc);
5671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint cfm_get_mac_output(struct s_smc *smc);
5681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint cem_build_path(struct s_smc *smc, char *to, int path_index);
5691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint sm_mac_get_tx_state(struct s_smc *smc);
5701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldschar *get_pcmstate(struct s_smc *smc, int np);
5711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint smt_action(struct s_smc *smc, int class, int code, int index);
5721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsu_short smt_online(struct s_smc *smc, int on);
5731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_force_irq(struct s_smc *smc);
5741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_pmf_received_pack(struct s_smc *smc, SMbuf *mb, int local);
5751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_send_frame(struct s_smc *smc, SMbuf *mb, int fc, int local);
5761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_set_timestamp(struct s_smc *smc, u_char *p);
5771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid mac_set_rx_mode(struct s_smc *smc,	int mode);
5781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint mac_add_multicast(struct s_smc *smc, struct fddi_addr *addr, int can);
5791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid mac_update_multicast(struct s_smc *smc);
5801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid mac_clear_multicast(struct s_smc *smc);
5811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid set_formac_tsync(struct s_smc *smc, long sync_bw);
5821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid formac_reinit_tx(struct s_smc *smc);
5831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid formac_tx_restart(struct s_smc *smc);
5841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid process_receive(struct s_smc *smc);
5851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid init_driver_fplus(struct s_smc *smc);
5861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid rtm_irq(struct s_smc *smc);
5871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid rtm_set_timer(struct s_smc *smc);
5881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid ring_status_indication(struct s_smc *smc, u_long status);
5891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid llc_recover_tx(struct s_smc *smc);
5901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid llc_restart_tx(struct s_smc *smc);
5911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid plc_clear_irq(struct s_smc *smc, int p);
5921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid plc_irq(struct s_smc *smc,	int np,	unsigned int cmd);
5931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint smt_set_mac_opvalues(struct s_smc *smc);
5941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
5951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef TAG_MODE
5961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid mac_do_pci_fix(struct s_smc *smc);
5971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid mac_drv_clear_tx_queue(struct s_smc *smc);
5981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid mac_drv_repair_descr(struct s_smc *smc);
5991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsu_long hwt_quick_read(struct s_smc *smc);
6001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid hwt_wait_time(struct s_smc *smc, u_long start, long duration);
6011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef SMT_PNMI
6041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint pnmi_init(struct s_smc* smc);
6051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint pnmi_process_ndis_id(struct s_smc *smc, u_long ndis_oid, void *buf, int len,
6061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds			 int *BytesAccessed, int *BytesNeeded, u_char action);
6071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	SBA
6101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef _H2INC
6111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid sba();
6121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid sba_raf_received_pack();
6141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid sba_timer_poll();
6151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_init_sba();
6161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	ESS
6191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsint ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm,
6201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds			  int fs);
6211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid ess_timer_poll(struct s_smc *smc);
6221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid ess_para_change(struct s_smc *smc);
6231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef	BOOT
6261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_init_evc(struct s_smc *smc);
6271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_srf_event(struct s_smc *smc, int code, int index, int cond);
6281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
6291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define smt_init_evc(smc)
6301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define smt_srf_event(smc,code,index,cond)
6311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef SMT_REAL_TOKEN_CT
6341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid smt_emulate_token_ct(struct s_smc *smc, int mac_index);
6351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#if defined(DEBUG) && !defined(BOOT)
6381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid dump_smt(struct s_smc *smc, struct smt_header *sm, char *text);
6391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#else
6401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	dump_smt(smc,sm,text)
6411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifdef	DEBUG
6441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldschar* addr_to_string(struct fddi_addr *addr);
6451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvoid dump_hex(char *p, int len);
6461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif	/* PROTOTYP_INC */
6491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/* PNMI default defines */
6511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef PNMI_INIT
6521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	PNMI_INIT(smc)	/* Nothing */
6531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef PNMI_GET_ID
6551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PNMI_GET_ID( smc, ndis_oid, buf, len, BytesWritten, BytesNeeded ) \
6561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds		( 1 ? (-1) : (-1) )
6571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef PNMI_SET_ID
6591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define PNMI_SET_ID( smc, ndis_oid, buf, len, BytesRead, BytesNeeded, \
6601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds		set_type) ( 1 ? (-1) : (-1) )
6611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds/*
6641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds * SMT_PANIC defines
6651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds */
6661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef	SMT_PANIC
6671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_PANIC(smc,nr,msg)	smt_panic (smc, msg)
6681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef	SMT_ERR_LOG
6711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_ERR_LOG(smc,nr,msg)	SMT_PANIC (smc, nr, msg)
6721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#ifndef	SMT_EBASE
6751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_EBASE	100
6761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif
6771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds
6781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0100	SMT_EBASE + 0
6791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0100_MSG	"cfm FSM: invalid ce_type"
6801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0101	SMT_EBASE + 1
6811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0101_MSG	"CEM: case ???"
6821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0102	SMT_EBASE + 2
6831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0102_MSG	"CEM A: invalid state"
6841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0103	SMT_EBASE + 3
6851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0103_MSG	"CEM B: invalid state"
6861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0104	SMT_EBASE + 4
6871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0104_MSG	"CEM M: invalid state"
6881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0105	SMT_EBASE + 5
6891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0105_MSG	"CEM S: invalid state"
6901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0106	SMT_EBASE + 6
6911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0106_MSG	"CFM : invalid state"
6921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0107	SMT_EBASE + 7
6931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0107_MSG	"ECM : invalid state"
6941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0108	SMT_EBASE + 8
6951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0108_MSG	"prop_actions : NAC in DAS CFM"
6961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0109	SMT_EBASE + 9
6971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0109_MSG	"ST2U.FM_SERRSF error in special frame"
6981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0110	SMT_EBASE + 10
6991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0110_MSG	"ST2U.FM_SRFRCTOV recv. count. overflow"
7001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0111	SMT_EBASE + 11
7011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0111_MSG	"ST2U.FM_SNFSLD NP & FORMAC simult. load"
7021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0112	SMT_EBASE + 12
7031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0112_MSG	"ST2U.FM_SRCVFRM single-frame recv.-mode"
7041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0113	SMT_EBASE + 13
7051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0113_MSG	"FPLUS: Buffer Memory Error"
7061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0114	SMT_EBASE + 14
7071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0114_MSG	"ST2U.FM_SERRSF error in special frame"
7081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0115	SMT_EBASE + 15
7091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0115_MSG	"ST3L: parity error in receive queue 2"
7101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0116	SMT_EBASE + 16
7111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0116_MSG	"ST3L: parity error in receive queue 1"
7121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0117	SMT_EBASE + 17
7131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0117_MSG	"E_SMT_001: RxD count for receive queue 1 = 0"
7141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0118	SMT_EBASE + 18
7151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0118_MSG	"PCM : invalid state"
7161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0119	SMT_EBASE + 19
7171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0119_MSG	"smt_add_para"
7181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0120	SMT_EBASE + 20
7191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0120_MSG	"smt_set_para"
7201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0121	SMT_EBASE + 21
7211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0121_MSG	"invalid event in dispatcher"
7221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0122	SMT_EBASE + 22
7231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0122_MSG	"RMT : invalid state"
7241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0123	SMT_EBASE + 23
7251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0123_MSG	"SBA: state machine has invalid state"
7261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0124	SMT_EBASE + 24
7271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0124_MSG	"sba_free_session() called with NULL pointer"
7281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0125	SMT_EBASE + 25
7291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0125_MSG	"SBA : invalid session pointer"
7301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0126	SMT_EBASE + 26
7311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0126_MSG	"smt_free_mbuf() called with NULL pointer\n"
7321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0127	SMT_EBASE + 27
7331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0127_MSG	"sizeof evcs"
7341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0128	SMT_EBASE + 28
7351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0128_MSG	"evc->evc_cond_state = 0"
7361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0129	SMT_EBASE + 29
7371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0129_MSG	"evc->evc_multiple = 0"
7381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0130	SMT_EBASE + 30
7391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0130_MSG	write_mdr_warning
7401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0131	SMT_EBASE + 31
7411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define	SMT_E0131_MSG	cam_warning
7421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0132	SMT_EBASE + 32
7431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0132_MSG	"ST1L.FM_SPCEPDx parity/coding error"
7441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0133	SMT_EBASE + 33
7451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0133_MSG	"ST1L.FM_STBURx tx buffer underrun"
7461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0134	SMT_EBASE + 34
7471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0134_MSG	"ST1L.FM_SPCEPDx parity error"
7481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0135	SMT_EBASE + 35
7491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0135_MSG	"RMT: duplicate MAC address detected. Ring left!"
7501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0136	SMT_EBASE + 36
7511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0136_MSG	"Elasticity Buffer hang-up"
7521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0137	SMT_EBASE + 37
7531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0137_MSG	"SMT: queue overrun"
7541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0138	SMT_EBASE + 38
7551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#define SMT_E0138_MSG	"RMT: duplicate MAC address detected. Ring NOT left!"
7561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds#endif	/* _CMTDEF_ */
757