1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /******************************************************************************
4 * (C)Copyright 1998,1999 SysKonnect,
5 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
7 * The information in this file is provided "AS IS" without warranty.
9 ******************************************************************************/
14 /* **************************************************************** */
17 * implementation specific constants
18 * MODIIFY THE FOLLOWING THREE DEFINES
20 #define AMDPLC /* if Amd PLC chip used */
22 #define NUMPHYS 12 /* 2 for SAS or DAS, more for Concentrator */
25 #define NUMPHYS 24 /* 2 for SAS or DAS, more for Concentrator */
27 #define NUMPHYS 2 /* 2 for SAS or DAS, more for Concentrator */
30 #define NUMMACS 1 /* only 1 supported at the moment */
31 #define NUMPATHS 2 /* primary and secondary path supported */
34 * DO NOT MODIFY BEYOND THIS POINT
37 /* **************************************************************** */
44 * Definitions for comfortable LINT usage
47 #define LINT_USE(x) (x)=(x)
53 #define DB_PR(flag, fmt, ...) \
54 do { if (flag) printf(fmt "\n", ##__VA_ARGS__); } while (0)
56 #define DB_PR(flag, fmt, ...) no_printk(fmt "\n", ##__VA_ARGS__)
61 #define DB_TEST (smc->debug)
63 #define DB_TEST (debug)
66 #define DB_ECM(fmt, ...) \
67 DB_PR((DB_TEST).d_smt & 1, fmt, ##__VA_ARGS__)
68 #define DB_ECMN(n, fmt, ...) \
69 DB_PR((DB_TEST).d_ecm >= (n), fmt, ##__VA_ARGS__)
70 #define DB_RMT(fmt, ...) \
71 DB_PR((DB_TEST).d_smt & 2, fmt, ##__VA_ARGS__)
72 #define DB_RMTN(n, fmt, ...) \
73 DB_PR((DB_TEST).d_rmt >= (n), fmt, ##__VA_ARGS__)
74 #define DB_CFM(fmt, ...) \
75 DB_PR((DB_TEST).d_smt & 4, fmt, ##__VA_ARGS__)
76 #define DB_CFMN(n, fmt, ...) \
77 DB_PR((DB_TEST).d_cfm >= (n), fmt, ##__VA_ARGS__)
78 #define DB_PCM(fmt, ...) \
79 DB_PR((DB_TEST).d_smt & 8, fmt, ##__VA_ARGS__)
80 #define DB_PCMN(n, fmt, ...) \
81 DB_PR((DB_TEST).d_pcm >= (n), fmt, ##__VA_ARGS__)
82 #define DB_SMT(fmt, ...) \
83 DB_PR((DB_TEST).d_smtf, fmt, ##__VA_ARGS__)
84 #define DB_SMTN(n, fmt, ...) \
85 DB_PR((DB_TEST).d_smtf >= (n), fmt, ##__VA_ARGS__)
86 #define DB_SBA(fmt, ...) \
87 DB_PR((DB_TEST).d_sba, fmt, ##__VA_ARGS__)
88 #define DB_SBAN(n, fmt, ...) \
89 DB_PR((DB_TEST).d_sba >= (n), fmt, ##__VA_ARGS__)
90 #define DB_ESS(fmt, ...) \
91 DB_PR((DB_TEST).d_ess, fmt, ##__VA_ARGS__)
92 #define DB_ESSN(n, fmt, ...) \
93 DB_PR((DB_TEST).d_ess >= (n), fmt, ##__VA_ARGS__)
96 #define SK_LOC_DECL(type,var) type var
98 #define SK_LOC_DECL(type,var) static type var
102 * Note: Don't touch the definition of PA and PB. Those might be used
103 * by some "for" loops.
107 #if defined(SUPERNET_3) || defined(CONC_II)
109 * The port indices have to be different,
110 * because the MAC output goes through the 2. PLC
111 * Conc II: It has to be the first port in the row.
113 #define PS 0 /* Internal PLC which is the same as PA */
117 #define PM 2 /* PM .. PA+NUM_PHYS-1 */
120 * PHY types - as in path descriptor 'fddiPHYType'
122 #define TA 0 /* A port */
123 #define TB 1 /* B port */
124 #define TS 2 /* S port */
125 #define TM 3 /* M port */
140 #define POLICY_AA (1<<0) /* reject AA */
141 #define POLICY_AB (1<<1) /* reject AB */
142 #define POLICY_AS (1<<2) /* reject AS */
143 #define POLICY_AM (1<<3) /* reject AM */
144 #define POLICY_BA (1<<4) /* reject BA */
145 #define POLICY_BB (1<<5) /* reject BB */
146 #define POLICY_BS (1<<6) /* reject BS */
147 #define POLICY_BM (1<<7) /* reject BM */
148 #define POLICY_SA (1<<8) /* reject SA */
149 #define POLICY_SB (1<<9) /* reject SB */
150 #define POLICY_SS (1<<10) /* reject SS */
151 #define POLICY_SM (1<<11) /* reject SM */
152 #define POLICY_MA (1<<12) /* reject MA */
153 #define POLICY_MB (1<<13) /* reject MB */
154 #define POLICY_MS (1<<14) /* reject MS */
155 #define POLICY_MM (1<<15) /* reject MM */
165 #define EVENT_ECM 1 /* event class ECM */
166 #define EVENT_CFM 2 /* event class CFM */
167 #define EVENT_RMT 3 /* event class RMT */
168 #define EVENT_SMT 4 /* event class SMT */
169 #define EVENT_PCM 5 /* event class PCM */
170 #define EVENT_PCMA 5 /* event class PCMA */
171 #define EVENT_PCMB 6 /* event class PCMB */
174 * EVENT_PCM* must be last in the above list
175 * if more than two ports are used, EVENT_PCM .. EVENT_PCMA+NUM_PHYS-1
179 #define EV_TOKEN(class,event) (((u_long)(class)<<16L)|((u_long)(event)))
180 #define EV_T_CLASS(token) ((int)((token)>>16)&0xffff)
181 #define EV_T_EVENT(token) ((int)(token)&0xffff)
186 #define EC_CONNECT 1 /* connect request */
187 #define EC_DISCONNECT 2 /* disconnect request */
188 #define EC_TRACE_PROP 3 /* trace propagation */
189 #define EC_PATH_TEST 4 /* path test */
190 #define EC_TIMEOUT_TD 5 /* timer TD_min */
191 #define EC_TIMEOUT_TMAX 6 /* timer trace_max */
192 #define EC_TIMEOUT_IMAX 7 /* timer I_max */
193 #define EC_TIMEOUT_INMAX 8 /* timer IN_max */
194 #define EC_TEST_DONE 9 /* path test done */
199 #define CF_LOOP 1 /* cf_loop flag from PCM */
200 #define CF_LOOP_A 1 /* cf_loop flag from PCM */
201 #define CF_LOOP_B 2 /* cf_loop flag from PCM */
202 #define CF_JOIN 3 /* cf_join flag from PCM */
203 #define CF_JOIN_A 3 /* cf_join flag from PCM */
204 #define CF_JOIN_B 4 /* cf_join flag from PCM */
219 #define PC_DISABLE 11
222 * must be ordered as in LineStateType
229 #define PC_LS_NONE 17
230 #define LS2MIB(x) ((x)-PC_QLS)
231 #define MIB2LS(x) ((x)+PC_QLS)
233 #define PC_TIMEOUT_TB_MAX 18 /* timer TB_max */
234 #define PC_TIMEOUT_TB_MIN 19 /* timer TB_min */
235 #define PC_TIMEOUT_C_MIN 20 /* timer C_Min */
236 #define PC_TIMEOUT_T_OUT 21 /* timer T_Out */
237 #define PC_TIMEOUT_TL_MIN 22 /* timer TL_Min */
238 #define PC_TIMEOUT_T_NEXT 23 /* timer t_next[] */
239 #define PC_TIMEOUT_LCT 24
240 #define PC_NSE 25 /* NOISE hardware timer */
241 #define PC_LEM 26 /* LEM done */
244 * RMT events meaning from
246 #define RM_RING_OP 1 /* ring operational MAC */
247 #define RM_RING_NON_OP 2 /* ring not operational MAC */
248 #define RM_MY_BEACON 3 /* recvd my beacon MAC */
249 #define RM_OTHER_BEACON 4 /* recvd other beacon MAC */
250 #define RM_MY_CLAIM 5 /* recvd my claim MAC */
251 #define RM_TRT_EXP 6 /* TRT exp MAC */
252 #define RM_VALID_CLAIM 7 /* claim from dup addr MAC */
253 #define RM_JOIN 8 /* signal rm_join CFM */
254 #define RM_LOOP 9 /* signal rm_loop CFM */
255 #define RM_DUP_ADDR 10 /* dup_addr_test hange SMT-NIF */
256 #define RM_ENABLE_FLAG 11 /* enable flag */
258 #define RM_TIMEOUT_NON_OP 12 /* timeout T_Non_OP */
259 #define RM_TIMEOUT_T_STUCK 13 /* timeout T_Stuck */
260 #define RM_TIMEOUT_ANNOUNCE 14 /* timeout T_Announce */
261 #define RM_TIMEOUT_T_DIRECT 15 /* timeout T_Direct */
262 #define RM_TIMEOUT_D_MAX 16 /* timeout D_Max */
263 #define RM_TIMEOUT_POLL 17 /* claim/beacon poller */
264 #define RM_TX_STATE_CHANGE 18 /* To restart timer for D_Max */
269 #define SM_TIMER 1 /* timer */
270 #define SM_FAST 2 /* smt_force_irq */
279 * MIB PC-WithholdType ENUM
281 #define PC_WH_NONE 0 /* ok */
282 #define PC_WH_M_M 1 /* M to M */
283 #define PC_WH_OTHER 2 /* other incompatible phys */
284 #define PC_WH_PATH 3 /* path not available */
288 #define LC_SHORT 1 /* short LCT */
289 #define LC_MEDIUM 2 /* medium LCT */
290 #define LC_LONG 3 /* long LCT */
291 #define LC_EXTENDED 4 /* extended LCT */
297 #define PT_TESTING 1 /* test is running */
298 #define PT_PASSED 2 /* test passed */
299 #define PT_FAILED 3 /* test failed */
300 #define PT_PENDING 4 /* path test follows */
301 #define PT_EXITING 5 /* disconnected while in trace/leave */
304 * duplicate address test
305 * MIB DupAddressTest ENUM
307 #define DA_NONE 0 /* */
308 #define DA_PASSED 1 /* test passed */
309 #define DA_FAILED 2 /* test failed */
315 #define BP_DEINSERT 0 /* disable bypass */
316 #define BP_INSERT 1 /* enable bypass */
321 #define PM_TRANSMIT_DISABLE 0 /* disable xmit */
322 #define PM_TRANSMIT_ENABLE 1 /* enable xmit */
325 * parameter for config_mux
326 * note : number is index in config_endec table !
328 #define MUX_THRUA 0 /* through A */
329 #define MUX_THRUB 1 /* through B */
330 #define MUX_WRAPA 2 /* wrap A */
331 #define MUX_WRAPB 3 /* wrap B */
332 #define MUX_ISOLATE 4 /* isolated */
333 #define MUX_WRAPS 5 /* SAS */
341 #define MA_DIRECTED 3 /* directed beacon */
342 #define MA_TREQ 4 /* change T_Req */
343 #define MA_OFFLINE 5 /* switch MAC to offline */
348 * bit map for trace propagation
350 #define ENTITY_MAC (NUMPHYS)
351 #define ENTITY_PHY(p) (p)
352 #define ENTITY_BIT(m) (1<<(m))
357 #define PATH_ISO 0 /* isolated */
358 #define PATH_PRIM 3 /* primary path */
359 #define PATH_THRU 5 /* through path */
361 #define RES_MAC 2 /* resource type MAC */
362 #define RES_PORT 4 /* resource type PORT */
367 * oops: MUST MATCH CF-StateType in SMT7.2 !
369 #define SC0_ISOLATED 0 /* isolated */
370 #define SC1_WRAP_A 5 /* wrap A (not used) */
371 #define SC2_WRAP_B 6 /* wrap B (not used) */
372 #define SC4_THRU_A 12 /* through A */
373 #define SC5_THRU_B 7 /* through B (used in SMT 6.2) */
374 #define SC7_WRAP_S 8 /* SAS (not used) */
375 #define SC9_C_WRAP_A 9 /* c wrap A */
376 #define SC10_C_WRAP_B 10 /* c wrap B */
377 #define SC11_C_WRAP_S 11 /* c wrap S */
380 * convert MIB time in units of 80nS to uS
382 #define MIB2US(t) ((t)/12)
383 #define SEC2MIB(s) ((s)*12500000L)
388 struct smt_timer
*tm_next
; /* linked list */
389 struct s_smc
*tm_smc
; /* pointer to context */
390 u_long tm_delta
; /* delta time */
391 u_long tm_token
; /* token value */
392 u_short tm_active
; /* flag : active/inactive */
393 u_short tm_pad
; /* pad field */
397 * communication structures
399 struct mac_parameter
{
400 u_long t_neg
; /* T_Neg parameter */
401 u_long t_pri
; /* T_Pri register in MAC */
408 u_long mac_nobuf_counter
; /* MAC SW counter: no buffer */
409 u_long mac_r_restart_counter
; /* MAC SW counter: rx restarted */
413 * para struct context for SMT parameters
431 u_long lem_tsymbols
;
436 int lem_avg_ber
[LEM_AVG
] ;
439 u_short lem_float_ber
; /* 10E-nn bit error rate */
440 u_long lem_errors
; /* accumulated error count */
453 u_short p_state
; /* current state */
454 u_short p_bits
; /* number of bits to send */
455 u_short p_start
; /* first bit pos */
456 u_short p_pad
; /* padding for alignment */
457 u_long soft_err
; /* error counter */
458 u_long parity_err
; /* error counter */
459 u_long ebuf_err
; /* error counter */
460 u_long ebuf_cont
; /* continuous error counter */
461 u_long phyinv
; /* error counter */
462 u_long vsym_ctr
; /* error counter */
463 u_long mini_ctr
; /* error counter */
464 u_long tpc_exp
; /* error counter */
465 u_long np_err
; /* error counter */
466 u_long b_pcs
; /* error counter */
467 u_long b_tpc
; /* error counter */
468 u_long b_tne
; /* error counter */
469 u_long b_qls
; /* error counter */
470 u_long b_ils
; /* error counter */
471 u_long b_hls
; /* error counter */
476 #include "fddi/driver.pro"
477 #else /* PROTOTYP_INC */
479 * function prototypes
481 #include "mbuf.h" /* Type definitions for MBUFs */
482 #include "smtstate.h" /* struct smt_state */
484 void hwt_restart(struct s_smc
*smc
); /* hwt.c */
485 SMbuf
*smt_build_frame(struct s_smc
*smc
, int class, int type
,
486 int length
); /* smt.c */
487 SMbuf
*smt_get_mbuf(struct s_smc
*smc
); /* drvsr.c */
488 void *sm_to_para(struct s_smc
*smc
, struct smt_header
*sm
,
489 int para
); /* smt.c */
492 #define SK_UNUSED(var) (void)(var)
495 void queue_event(struct s_smc
*smc
, int class, int event
);
496 void ecm(struct s_smc
*smc
, int event
);
497 void ecm_init(struct s_smc
*smc
);
498 void rmt(struct s_smc
*smc
, int event
);
499 void rmt_init(struct s_smc
*smc
);
500 void pcm(struct s_smc
*smc
, const int np
, int event
);
501 void pcm_init(struct s_smc
*smc
);
502 void cfm(struct s_smc
*smc
, int event
);
503 void cfm_init(struct s_smc
*smc
);
504 void smt_timer_start(struct s_smc
*smc
, struct smt_timer
*timer
, u_long time
,
506 void smt_timer_stop(struct s_smc
*smc
, struct smt_timer
*timer
);
507 void pcm_status_state(struct s_smc
*smc
, int np
, int *type
, int *state
,
508 int *remote
, int *mac
);
509 void plc_config_mux(struct s_smc
*smc
, int mux
);
510 void sm_lem_evaluate(struct s_smc
*smc
);
511 void mac_update_counter(struct s_smc
*smc
);
512 void sm_ma_control(struct s_smc
*smc
, int mode
);
513 void sm_mac_check_beacon_claim(struct s_smc
*smc
);
514 void config_mux(struct s_smc
*smc
, int mux
);
515 void smt_agent_init(struct s_smc
*smc
);
516 void smt_timer_init(struct s_smc
*smc
);
517 void smt_received_pack(struct s_smc
*smc
, SMbuf
*mb
, int fs
);
518 void smt_add_para(struct s_smc
*smc
, struct s_pcon
*pcon
, u_short para
,
519 int index
, int local
);
520 void smt_swap_para(struct smt_header
*sm
, int len
, int direction
);
521 void ev_init(struct s_smc
*smc
);
522 void hwt_init(struct s_smc
*smc
);
523 u_long
hwt_read(struct s_smc
*smc
);
524 void hwt_stop(struct s_smc
*smc
);
525 void hwt_start(struct s_smc
*smc
, u_long time
);
526 void smt_send_mbuf(struct s_smc
*smc
, SMbuf
*mb
, int fc
);
527 void smt_free_mbuf(struct s_smc
*smc
, SMbuf
*mb
);
528 void sm_pm_bypass_req(struct s_smc
*smc
, int mode
);
529 void rmt_indication(struct s_smc
*smc
, int i
);
530 void cfm_state_change(struct s_smc
*smc
, int c_state
);
532 #if defined(DEBUG) || !defined(NO_SMT_PANIC)
533 void smt_panic(struct s_smc
*smc
, char *text
);
535 #define smt_panic(smc,text)
536 #endif /* DEBUG || !NO_SMT_PANIC */
538 void smt_stat_counter(struct s_smc
*smc
, int stat
);
539 void smt_timer_poll(struct s_smc
*smc
);
540 u_long
smt_get_time(void);
541 u_long
smt_get_tid(struct s_smc
*smc
);
542 void smt_timer_done(struct s_smc
*smc
);
543 void smt_fixup_mib(struct s_smc
*smc
);
544 void smt_reset_defaults(struct s_smc
*smc
, int level
);
545 void smt_agent_task(struct s_smc
*smc
);
546 int smt_check_para(struct s_smc
*smc
, struct smt_header
*sm
,
547 const u_short list
[]);
548 void driver_get_bia(struct s_smc
*smc
, struct fddi_addr
*bia_addr
);
551 void drv_reset_indication(struct s_smc
*smc
);
552 #endif /* SUPERNET_3 */
554 void smt_start_watchdog(struct s_smc
*smc
);
555 void smt_event(struct s_smc
*smc
, int event
);
556 void timer_event(struct s_smc
*smc
, u_long token
);
557 void ev_dispatcher(struct s_smc
*smc
);
558 void pcm_get_state(struct s_smc
*smc
, struct smt_state
*state
);
559 void ecm_state_change(struct s_smc
*smc
, int e_state
);
560 int sm_pm_bypass_present(struct s_smc
*smc
);
561 void pcm_state_change(struct s_smc
*smc
, int plc
, int p_state
);
562 void rmt_state_change(struct s_smc
*smc
, int r_state
);
563 int sm_pm_get_ls(struct s_smc
*smc
, int phy
);
564 int pcm_get_s_port(struct s_smc
*smc
);
565 int pcm_rooted_station(struct s_smc
*smc
);
566 int cfm_get_mac_input(struct s_smc
*smc
);
567 int cfm_get_mac_output(struct s_smc
*smc
);
568 int cem_build_path(struct s_smc
*smc
, char *to
, int path_index
);
569 int sm_mac_get_tx_state(struct s_smc
*smc
);
570 char *get_pcmstate(struct s_smc
*smc
, int np
);
571 int smt_action(struct s_smc
*smc
, int class, int code
, int index
);
572 u_short
smt_online(struct s_smc
*smc
, int on
);
573 void smt_force_irq(struct s_smc
*smc
);
574 void smt_pmf_received_pack(struct s_smc
*smc
, SMbuf
*mb
, int local
);
575 void smt_send_frame(struct s_smc
*smc
, SMbuf
*mb
, int fc
, int local
);
576 void smt_set_timestamp(struct s_smc
*smc
, u_char
*p
);
577 void mac_set_rx_mode(struct s_smc
*smc
, int mode
);
578 int mac_add_multicast(struct s_smc
*smc
, struct fddi_addr
*addr
, int can
);
579 void mac_update_multicast(struct s_smc
*smc
);
580 void mac_clear_multicast(struct s_smc
*smc
);
581 void set_formac_tsync(struct s_smc
*smc
, long sync_bw
);
582 void formac_reinit_tx(struct s_smc
*smc
);
583 void formac_tx_restart(struct s_smc
*smc
);
584 void process_receive(struct s_smc
*smc
);
585 void init_driver_fplus(struct s_smc
*smc
);
586 void rtm_irq(struct s_smc
*smc
);
587 void rtm_set_timer(struct s_smc
*smc
);
588 void ring_status_indication(struct s_smc
*smc
, u_long status
);
589 void llc_recover_tx(struct s_smc
*smc
);
590 void llc_restart_tx(struct s_smc
*smc
);
591 void plc_clear_irq(struct s_smc
*smc
, int p
);
592 void plc_irq(struct s_smc
*smc
, int np
, unsigned int cmd
);
593 int smt_set_mac_opvalues(struct s_smc
*smc
);
596 void mac_do_pci_fix(struct s_smc
*smc
);
597 void mac_drv_clear_tx_queue(struct s_smc
*smc
);
598 void mac_drv_repair_descr(struct s_smc
*smc
);
599 u_long
hwt_quick_read(struct s_smc
*smc
);
600 void hwt_wait_time(struct s_smc
*smc
, u_long start
, long duration
);
604 int pnmi_init(struct s_smc
* smc
);
605 int pnmi_process_ndis_id(struct s_smc
*smc
, u_long ndis_oid
, void *buf
, int len
,
606 int *BytesAccessed
, int *BytesNeeded
, u_char action
);
613 void sba_raf_received_pack();
614 void sba_timer_poll();
619 int ess_raf_received_pack(struct s_smc
*smc
, SMbuf
*mb
, struct smt_header
*sm
,
621 void ess_timer_poll(struct s_smc
*smc
);
622 void ess_para_change(struct s_smc
*smc
);
626 void smt_init_evc(struct s_smc
*smc
);
627 void smt_srf_event(struct s_smc
*smc
, int code
, int index
, int cond
);
629 #define smt_init_evc(smc)
630 #define smt_srf_event(smc,code,index,cond)
633 #ifndef SMT_REAL_TOKEN_CT
634 void smt_emulate_token_ct(struct s_smc
*smc
, int mac_index
);
637 #if defined(DEBUG) && !defined(BOOT)
638 void dump_smt(struct s_smc
*smc
, struct smt_header
*sm
, char *text
);
640 #define dump_smt(smc,sm,text)
643 char* addr_to_string(struct fddi_addr
*addr
);
645 void dump_hex(char *p
, int len
);
648 #endif /* PROTOTYP_INC */
650 /* PNMI default defines */
652 #define PNMI_INIT(smc) /* Nothing */
659 #define SMT_PANIC(smc,nr,msg) smt_panic (smc, msg)
663 #define SMT_ERR_LOG(smc,nr,msg) SMT_PANIC (smc, nr, msg)
667 #define SMT_EBASE 100
670 #define SMT_E0100 SMT_EBASE + 0
671 #define SMT_E0100_MSG "cfm FSM: invalid ce_type"
672 #define SMT_E0101 SMT_EBASE + 1
673 #define SMT_E0101_MSG "CEM: case ???"
674 #define SMT_E0102 SMT_EBASE + 2
675 #define SMT_E0102_MSG "CEM A: invalid state"
676 #define SMT_E0103 SMT_EBASE + 3
677 #define SMT_E0103_MSG "CEM B: invalid state"
678 #define SMT_E0104 SMT_EBASE + 4
679 #define SMT_E0104_MSG "CEM M: invalid state"
680 #define SMT_E0105 SMT_EBASE + 5
681 #define SMT_E0105_MSG "CEM S: invalid state"
682 #define SMT_E0106 SMT_EBASE + 6
683 #define SMT_E0106_MSG "CFM : invalid state"
684 #define SMT_E0107 SMT_EBASE + 7
685 #define SMT_E0107_MSG "ECM : invalid state"
686 #define SMT_E0108 SMT_EBASE + 8
687 #define SMT_E0108_MSG "prop_actions : NAC in DAS CFM"
688 #define SMT_E0109 SMT_EBASE + 9
689 #define SMT_E0109_MSG "ST2U.FM_SERRSF error in special frame"
690 #define SMT_E0110 SMT_EBASE + 10
691 #define SMT_E0110_MSG "ST2U.FM_SRFRCTOV recv. count. overflow"
692 #define SMT_E0111 SMT_EBASE + 11
693 #define SMT_E0111_MSG "ST2U.FM_SNFSLD NP & FORMAC simult. load"
694 #define SMT_E0112 SMT_EBASE + 12
695 #define SMT_E0112_MSG "ST2U.FM_SRCVFRM single-frame recv.-mode"
696 #define SMT_E0113 SMT_EBASE + 13
697 #define SMT_E0113_MSG "FPLUS: Buffer Memory Error"
698 #define SMT_E0114 SMT_EBASE + 14
699 #define SMT_E0114_MSG "ST2U.FM_SERRSF error in special frame"
700 #define SMT_E0115 SMT_EBASE + 15
701 #define SMT_E0115_MSG "ST3L: parity error in receive queue 2"
702 #define SMT_E0116 SMT_EBASE + 16
703 #define SMT_E0116_MSG "ST3L: parity error in receive queue 1"
704 #define SMT_E0117 SMT_EBASE + 17
705 #define SMT_E0117_MSG "E_SMT_001: RxD count for receive queue 1 = 0"
706 #define SMT_E0118 SMT_EBASE + 18
707 #define SMT_E0118_MSG "PCM : invalid state"
708 #define SMT_E0119 SMT_EBASE + 19
709 #define SMT_E0119_MSG "smt_add_para"
710 #define SMT_E0120 SMT_EBASE + 20
711 #define SMT_E0120_MSG "smt_set_para"
712 #define SMT_E0121 SMT_EBASE + 21
713 #define SMT_E0121_MSG "invalid event in dispatcher"
714 #define SMT_E0122 SMT_EBASE + 22
715 #define SMT_E0122_MSG "RMT : invalid state"
716 #define SMT_E0123 SMT_EBASE + 23
717 #define SMT_E0123_MSG "SBA: state machine has invalid state"
718 #define SMT_E0124 SMT_EBASE + 24
719 #define SMT_E0124_MSG "sba_free_session() called with NULL pointer"
720 #define SMT_E0125 SMT_EBASE + 25
721 #define SMT_E0125_MSG "SBA : invalid session pointer"
722 #define SMT_E0126 SMT_EBASE + 26
723 #define SMT_E0126_MSG "smt_free_mbuf() called with NULL pointer\n"
724 #define SMT_E0127 SMT_EBASE + 27
725 #define SMT_E0127_MSG "sizeof evcs"
726 #define SMT_E0128 SMT_EBASE + 28
727 #define SMT_E0128_MSG "evc->evc_cond_state = 0"
728 #define SMT_E0129 SMT_EBASE + 29
729 #define SMT_E0129_MSG "evc->evc_multiple = 0"
730 #define SMT_E0130 SMT_EBASE + 30
731 #define SMT_E0130_MSG write_mdr_warning
732 #define SMT_E0131 SMT_EBASE + 31
733 #define SMT_E0131_MSG cam_warning
734 #define SMT_E0132 SMT_EBASE + 32
735 #define SMT_E0132_MSG "ST1L.FM_SPCEPDx parity/coding error"
736 #define SMT_E0133 SMT_EBASE + 33
737 #define SMT_E0133_MSG "ST1L.FM_STBURx tx buffer underrun"
738 #define SMT_E0134 SMT_EBASE + 34
739 #define SMT_E0134_MSG "ST1L.FM_SPCEPDx parity error"
740 #define SMT_E0135 SMT_EBASE + 35
741 #define SMT_E0135_MSG "RMT: duplicate MAC address detected. Ring left!"
742 #define SMT_E0136 SMT_EBASE + 36
743 #define SMT_E0136_MSG "Elasticity Buffer hang-up"
744 #define SMT_E0137 SMT_EBASE + 37
745 #define SMT_E0137_MSG "SMT: queue overrun"
746 #define SMT_E0138 SMT_EBASE + 38
747 #define SMT_E0138_MSG "RMT: duplicate MAC address detected. Ring NOT left!"
748 #endif /* _CMTDEF_ */