1
2
3
4
5
6
7
8
9
10
11 #ifndef _CMTDEF_
12 #define _CMTDEF_
13
14
15
16
17
18
19
20 #define AMDPLC
21 #ifdef CONC
22 #define NUMPHYS 12
23 #else
24 #ifdef CONC_II
25 #define NUMPHYS 24
26 #else
27 #define NUMPHYS 2
28 #endif
29 #endif
30 #define NUMMACS 1
31 #define NUMPATHS 2
32
33
34
35
36
37
38
39 #if NUMPHYS > 2
40 #define CONCENTRATOR
41 #endif
42
43
44
45
46 #ifdef lint
47 #define LINT_USE(x) (x)=(x)
48 #else
49 #define LINT_USE(x)
50 #endif
51
52 #ifdef DEBUG
53 #define DB_PR(flag, fmt, ...) \
54 do { if (flag) printf(fmt "\n", ##__VA_ARGS__); } while (0)
55 #else
56 #define DB_PR(flag, fmt, ...) no_printk(fmt "\n", ##__VA_ARGS__)
57
58 #endif
59
60 #ifdef DEBUG_BRD
61 #define DB_TEST (smc->debug)
62 #else
63 #define DB_TEST (debug)
64 #endif
65
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__)
94
95 #ifndef SS_NOT_DS
96 #define SK_LOC_DECL(type,var) type var
97 #else
98 #define SK_LOC_DECL(type,var) static type var
99 #endif
100
101
102
103
104
105 #define PA 0
106 #define PB 1
107 #if defined(SUPERNET_3) || defined(CONC_II)
108
109
110
111
112
113 #define PS 0
114 #else
115 #define PS 1
116 #endif
117 #define PM 2
118
119
120
121
122 #define TA 0
123 #define TB 1
124 #define TS 2
125 #define TM 3
126 #define TNONE 4
127
128
129
130
131
132 #define INDEX_MAC 1
133 #define INDEX_PATH 1
134 #define INDEX_PORT 1
135
136
137
138
139
140 #define POLICY_AA (1<<0)
141 #define POLICY_AB (1<<1)
142 #define POLICY_AS (1<<2)
143 #define POLICY_AM (1<<3)
144 #define POLICY_BA (1<<4)
145 #define POLICY_BB (1<<5)
146 #define POLICY_BS (1<<6)
147 #define POLICY_BM (1<<7)
148 #define POLICY_SA (1<<8)
149 #define POLICY_SB (1<<9)
150 #define POLICY_SS (1<<10)
151 #define POLICY_SM (1<<11)
152 #define POLICY_MA (1<<12)
153 #define POLICY_MB (1<<13)
154 #define POLICY_MS (1<<14)
155 #define POLICY_MM (1<<15)
156
157
158
159
160
161
162
163
164
165 #define EVENT_ECM 1
166 #define EVENT_CFM 2
167 #define EVENT_RMT 3
168 #define EVENT_SMT 4
169 #define EVENT_PCM 5
170 #define EVENT_PCMA 5
171 #define EVENT_PCMB 6
172
173
174
175
176
177
178
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)
182
183
184
185
186 #define EC_CONNECT 1
187 #define EC_DISCONNECT 2
188 #define EC_TRACE_PROP 3
189 #define EC_PATH_TEST 4
190 #define EC_TIMEOUT_TD 5
191 #define EC_TIMEOUT_TMAX 6
192 #define EC_TIMEOUT_IMAX 7
193 #define EC_TIMEOUT_INMAX 8
194 #define EC_TEST_DONE 9
195
196
197
198
199 #define CF_LOOP 1
200 #define CF_LOOP_A 1
201 #define CF_LOOP_B 2
202 #define CF_JOIN 3
203 #define CF_JOIN_A 3
204 #define CF_JOIN_B 4
205
206
207
208
209 #define PC_START 1
210 #define PC_STOP 2
211 #define PC_LOOP 3
212 #define PC_JOIN 4
213 #define PC_SIGNAL 5
214 #define PC_REJECT 6
215 #define PC_MAINT 7
216 #define PC_TRACE 8
217 #define PC_PDR 9
218 #define PC_ENABLE 10
219 #define PC_DISABLE 11
220
221
222
223
224 #define PC_QLS 12
225 #define PC_ILS 13
226 #define PC_MLS 14
227 #define PC_HLS 15
228 #define PC_LS_PDR 16
229 #define PC_LS_NONE 17
230 #define LS2MIB(x) ((x)-PC_QLS)
231 #define MIB2LS(x) ((x)+PC_QLS)
232
233 #define PC_TIMEOUT_TB_MAX 18
234 #define PC_TIMEOUT_TB_MIN 19
235 #define PC_TIMEOUT_C_MIN 20
236 #define PC_TIMEOUT_T_OUT 21
237 #define PC_TIMEOUT_TL_MIN 22
238 #define PC_TIMEOUT_T_NEXT 23
239 #define PC_TIMEOUT_LCT 24
240 #define PC_NSE 25
241 #define PC_LEM 26
242
243
244
245
246 #define RM_RING_OP 1
247 #define RM_RING_NON_OP 2
248 #define RM_MY_BEACON 3
249 #define RM_OTHER_BEACON 4
250 #define RM_MY_CLAIM 5
251 #define RM_TRT_EXP 6
252 #define RM_VALID_CLAIM 7
253 #define RM_JOIN 8
254 #define RM_LOOP 9
255 #define RM_DUP_ADDR 10
256 #define RM_ENABLE_FLAG 11
257
258 #define RM_TIMEOUT_NON_OP 12
259 #define RM_TIMEOUT_T_STUCK 13
260 #define RM_TIMEOUT_ANNOUNCE 14
261 #define RM_TIMEOUT_T_DIRECT 15
262 #define RM_TIMEOUT_D_MAX 16
263 #define RM_TIMEOUT_POLL 17
264 #define RM_TX_STATE_CHANGE 18
265
266
267
268
269 #define SM_TIMER 1
270 #define SM_FAST 2
271
272
273 #define PM_NONE 0
274 #define PM_PEER 1
275 #define PM_TREE 2
276
277
278
279
280
281 #define PC_WH_NONE 0
282 #define PC_WH_M_M 1
283 #define PC_WH_OTHER 2
284 #define PC_WH_PATH 3
285
286
287
288 #define LC_SHORT 1
289 #define LC_MEDIUM 2
290 #define LC_LONG 3
291 #define LC_EXTENDED 4
292
293
294
295
296 #define PT_NONE 0
297 #define PT_TESTING 1
298 #define PT_PASSED 2
299 #define PT_FAILED 3
300 #define PT_PENDING 4
301 #define PT_EXITING 5
302
303
304
305
306
307 #define DA_NONE 0
308 #define DA_PASSED 1
309 #define DA_FAILED 2
310
311
312
313
314
315 #define BP_DEINSERT 0
316 #define BP_INSERT 1
317
318
319
320
321 #define PM_TRANSMIT_DISABLE 0
322 #define PM_TRANSMIT_ENABLE 1
323
324
325
326
327
328 #define MUX_THRUA 0
329 #define MUX_THRUB 1
330 #define MUX_WRAPA 2
331 #define MUX_WRAPB 3
332 #define MUX_ISOLATE 4
333 #define MUX_WRAPS 5
334
335
336
337
338 #define MA_RESET 0
339 #define MA_BEACON 1
340 #define MA_CLAIM 2
341 #define MA_DIRECTED 3
342 #define MA_TREQ 4
343 #define MA_OFFLINE 5
344
345
346
347
348
349
350 #define ENTITY_MAC (NUMPHYS)
351 #define ENTITY_PHY(p) (p)
352 #define ENTITY_BIT(m) (1<<(m))
353
354
355
356
357 #define PATH_ISO 0
358 #define PATH_PRIM 3
359 #define PATH_THRU 5
360
361 #define RES_MAC 2
362 #define RES_PORT 4
363
364
365
366
367
368
369 #define SC0_ISOLATED 0
370 #define SC1_WRAP_A 5
371 #define SC2_WRAP_B 6
372 #define SC4_THRU_A 12
373 #define SC5_THRU_B 7
374 #define SC7_WRAP_S 8
375 #define SC9_C_WRAP_A 9
376 #define SC10_C_WRAP_B 10
377 #define SC11_C_WRAP_S 11
378
379
380
381
382 #define MIB2US(t) ((t)/12)
383 #define SEC2MIB(s) ((s)*12500000L)
384
385
386
387 struct smt_timer {
388 struct smt_timer *tm_next ;
389 struct s_smc *tm_smc ;
390 u_long tm_delta ;
391 u_long tm_token ;
392 u_short tm_active ;
393 u_short tm_pad ;
394 } ;
395
396
397
398
399 struct mac_parameter {
400 u_long t_neg ;
401 u_long t_pri ;
402 } ;
403
404
405
406
407 struct mac_counter {
408 u_long mac_nobuf_counter ;
409 u_long mac_r_restart_counter ;
410 } ;
411
412
413
414
415 struct s_pcon {
416 int pc_len ;
417 int pc_err ;
418 int pc_badset ;
419 void *pc_p ;
420 } ;
421
422
423
424
425 #define LEM_AVG 5
426 struct lem_counter {
427 #ifdef AM29K
428 int lem_on ;
429 u_long lem_errors ;
430 u_long lem_symbols ;
431 u_long lem_tsymbols ;
432 int lem_s_count ;
433 int lem_n_s ;
434 int lem_values ;
435 int lem_index ;
436 int lem_avg_ber[LEM_AVG] ;
437 int lem_sum ;
438 #else
439 u_short lem_float_ber ;
440 u_long lem_errors ;
441 u_short lem_on ;
442 #endif
443 } ;
444
445 #define NUMBITS 10
446
447 #ifdef AMDPLC
448
449
450
451
452 struct s_plc {
453 u_short p_state ;
454 u_short p_bits ;
455 u_short p_start ;
456 u_short p_pad ;
457 u_long soft_err ;
458 u_long parity_err ;
459 u_long ebuf_err ;
460 u_long ebuf_cont ;
461 u_long phyinv ;
462 u_long vsym_ctr ;
463 u_long mini_ctr ;
464 u_long tpc_exp ;
465 u_long np_err ;
466 u_long b_pcs ;
467 u_long b_tpc ;
468 u_long b_tne ;
469 u_long b_qls ;
470 u_long b_ils ;
471 u_long b_hls ;
472 } ;
473 #endif
474
475 #ifdef PROTOTYP_INC
476 #include "fddi/driver.pro"
477 #else
478
479
480
481 #include "mbuf.h"
482 #include "smtstate.h"
483
484 void hwt_restart(struct s_smc *smc);
485 SMbuf *smt_build_frame(struct s_smc *smc, int class, int type,
486 int length);
487 SMbuf *smt_get_mbuf(struct s_smc *smc);
488 void *sm_to_para(struct s_smc *smc, struct smt_header *sm,
489 int para);
490
491 #ifndef SK_UNUSED
492 #define SK_UNUSED(var) (void)(var)
493 #endif
494
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,
505 u_long token);
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);
531
532 #if defined(DEBUG) || !defined(NO_SMT_PANIC)
533 void smt_panic(struct s_smc *smc, char *text);
534 #else
535 #define smt_panic(smc,text)
536 #endif
537
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);
549
550 #ifdef SUPERNET_3
551 void drv_reset_indication(struct s_smc *smc);
552 #endif
553
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);
594
595 #ifdef TAG_MODE
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);
601 #endif
602
603 #ifdef SMT_PNMI
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);
607 #endif
608
609 #ifdef SBA
610 #ifndef _H2INC
611 void sba();
612 #endif
613 void sba_raf_received_pack();
614 void sba_timer_poll();
615 void smt_init_sba();
616 #endif
617
618 #ifdef ESS
619 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm,
620 int fs);
621 void ess_timer_poll(struct s_smc *smc);
622 void ess_para_change(struct s_smc *smc);
623 #endif
624
625 #ifndef BOOT
626 void smt_init_evc(struct s_smc *smc);
627 void smt_srf_event(struct s_smc *smc, int code, int index, int cond);
628 #else
629 #define smt_init_evc(smc)
630 #define smt_srf_event(smc,code,index,cond)
631 #endif
632
633 #ifndef SMT_REAL_TOKEN_CT
634 void smt_emulate_token_ct(struct s_smc *smc, int mac_index);
635 #endif
636
637 #if defined(DEBUG) && !defined(BOOT)
638 void dump_smt(struct s_smc *smc, struct smt_header *sm, char *text);
639 #else
640 #define dump_smt(smc,sm,text)
641 #endif
642
643 char* addr_to_string(struct fddi_addr *addr);
644 #ifdef DEBUG
645 void dump_hex(char *p, int len);
646 #endif
647
648 #endif
649
650
651 #ifndef PNMI_INIT
652 #define PNMI_INIT(smc)
653 #endif
654
655
656
657
658 #ifndef SMT_PANIC
659 #define SMT_PANIC(smc,nr,msg) smt_panic (smc, msg)
660 #endif
661
662 #ifndef SMT_ERR_LOG
663 #define SMT_ERR_LOG(smc,nr,msg) SMT_PANIC (smc, nr, msg)
664 #endif
665
666 #ifndef SMT_EBASE
667 #define SMT_EBASE 100
668 #endif
669
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