📄 cmtdef.h
字号:
/* * MAC counters */struct mac_counter { u_long mac_nobuf_counter ; /* MAC SW counter: no buffer */ u_long mac_r_restart_counter ; /* MAC SW counter: rx restarted */} ;/* * para struct context for SMT parameters */struct s_pcon { int pc_len ; int pc_err ; int pc_badset ; void *pc_p ;} ;/* * link error monitor */#define LEM_AVG 5struct lem_counter {#ifdef AM29K int lem_on ; u_long lem_errors ; u_long lem_symbols ; u_long lem_tsymbols ; int lem_s_count ; int lem_n_s ; int lem_values ; int lem_index ; int lem_avg_ber[LEM_AVG] ; int lem_sum ;#else u_short lem_float_ber ; /* 10E-nn bit error rate */ u_long lem_errors ; /* accumulated error count */ u_short lem_on ;#endif} ;#define NUMBITS 10#ifdef AMDPLC/* * PLC state table */struct s_plc { u_short p_state ; /* current state */ u_short p_bits ; /* number of bits to send */ u_short p_start ; /* first bit pos */ u_short p_pad ; /* padding for alignment */ u_long soft_err ; /* error counter */ u_long parity_err ; /* error counter */ u_long ebuf_err ; /* error counter */ u_long ebuf_cont ; /* continous error counter */ u_long phyinv ; /* error counter */ u_long vsym_ctr ; /* error counter */ u_long mini_ctr ; /* error counter */ u_long tpc_exp ; /* error counter */ u_long np_err ; /* error counter */ u_long b_pcs ; /* error counter */ u_long b_tpc ; /* error counter */ u_long b_tne ; /* error counter */ u_long b_qls ; /* error counter */ u_long b_ils ; /* error counter */ u_long b_hls ; /* error counter */} ;#endif#ifdef PROTOTYP_INC#include "fddi/driver.pro"#else /* PROTOTYP_INC *//* * function prototypes */#include "h/mbuf.h" /* Type definitions for MBUFs */void hwt_restart( /* hwt.c */#ifdef ANSIC struct s_smc *smc#endif ) ;SMbuf *smt_build_frame( /* smt.c */#ifdef ANSIC struct s_smc *smc, int class, int type, int length#endif ) ;SMbuf *smt_get_mbuf( /* drvsr.c */#ifdef ANSIC struct s_smc *smc#endif ) ;void *sm_to_para( /* smt.c */#ifdef ANSIC struct s_smc *smc, struct smt_header *sm, int para#endif ) ;#ifndef SK_UNUSED#define SK_UNUSED(var) (void)(var)#endifvoid queue_event() ;void ecm() ;void ecm_init() ;void rmt() ;void rmt_init() ;void pcm() ;void pcm_init() ;void cfm() ;void cfm_init() ;void smt_timer_start() ;void smt_timer_stop() ;void pcm_status_state() ;void plc_config_mux() ;void sm_lem_evaluate() ;void smt_clear_una_dna() ;void mac_status_para() ;void mac_update_counter() ;void sm_pm_ls_latch() ;void sm_ma_control() ;void sm_mac_check_beacon_claim() ;void config_mux() ;void smt_agent_init() ;void smt_timer_init() ;void smt_received_pack() ;void smt_add_para() ;void smt_swap_para() ;void ev_init() ;void hwt_init() ;u_long hwt_read() ;void hwt_stop() ;void hwt_start() ;void smt_send_mbuf() ;void smt_free_mbuf() ;void sm_pm_bypass_req() ;void rmt_indication() ;void cfm_state_change() ;void rx_indication() ;void tx_indication() ;#ifndef NO_SMT_PANICvoid smt_panic() ;#else#ifdef DEBUGvoid smt_panic() ;#else#define smt_panic(smc,text)#endif /* DEBUG */#endif /* NO_SMT_PANIC */void smt_stat_counter() ;void smt_timer_poll() ;u_long smt_get_time() ;u_long smt_get_tid() ;void smt_timer_done() ;void smt_set_defaults() ;void smt_fixup_mib() ;void smt_reset_defaults() ;void smt_agent_task() ;void smt_please_reconnect() ;int smt_check_para() ;void driver_get_bia() ;#ifdef SUPERNET_3void drv_reset_indication() ;#endif /* SUPERNET_3 */void smt_start_watchdog() ;void smt_event() ;void pcm_event() ;void rmt_event() ;void cfm_event() ;void timer_event() ;void ev_dispatcher() ;void smt_get_state() ;void ecm_get_state() ;void pcm_get_state() ;void rmt_get_state() ;void ecm_state_change() ;int sm_pm_bypass_present() ;void pcm_state_change() ;void rmt_state_change() ;int sm_pm_get_ls() ;int pcm_get_s_port() ;int pcm_rooted_station() ;int cfm_get_mac_input() ;int cfm_get_mac_output() ;int port_to_mib() ;int cem_build_path() ;int sm_mac_get_tx_state() ;int is_individual() ;int is_my_addr() ;int is_broadcast() ;int is_equal() ;char *get_pcmstate() ;int smt_action() ;u_short smt_online() ;void smt_force_irq() ;void smt_pmf_received_pack() ;void smt_send_frame() ;void smt_set_timestamp() ;void mac_set_rx_mode() ;int mac_add_multicast() ;int mac_set_func_addr() ;void mac_del_multicast() ;void mac_update_multicast() ;void mac_clear_multicast() ;void mac_rx_directed_beacon() ;void set_formac_tsync() ;void formac_reinit_tx() ;void formac_tx_restart() ;void process_receive() ;void init_driver_fplus() ;void rtm_irq() ;void rtm_set_timer() ;void ring_status_indication() ;void llc_recover_tx() ;void llc_restart_tx() ;void plc_clear_irq() ;void plc_irq() ;int smt_set_mac_opvalues() ;#ifdef TAG_MODEvoid mac_drv_pci_fix() ;void mac_do_pci_fix() ;void mac_drv_clear_tx_queue() ;void mac_drv_repair_descr() ;u_long hwt_quick_read() ;void hwt_wait_time() ;#endif#ifdef SMT_PNMI#ifdef ANSICint pnmi_init (struct s_smc* smc);int pnmi_process_ndis_id (struct s_smc* smc, u_long ndis_oid, void* buf, int len, int* BytesAccessed, int* BytesNeeded, u_char action);#elseint pnmi_init ();int pnmi_process_ndis_id ();#endif#endif#ifdef SBA#ifndef _H2INCvoid sba() ;#endifvoid sba_raf_received_pack() ;void sba_timer_poll() ;void smt_init_sba() ;#endif#ifdef ESSint ess_raf_received_pack() ;void ess_timer_poll() ;void ess_para_change() ;#endif#ifdef BOOT#define smt_srf_event(a,b,c,d)#define smt_init_evc(a)#elsevoid smt_init_evc() ;void smt_srf_event() ;#endif#ifndef SMT_REAL_TOKEN_CTvoid smt_emulate_token_ct();#endif#if defined(DEBUG) && !defined(BOOT)void dump_smt() ;#else#define dump_smt(smc,sm,text)#endif#ifdef DEBUGchar *addr_to_string() ;void dump_hex() ;#endif#endif /* PROTOTYP_INC *//* PNMI default defines */#ifndef PNMI_INIT#define PNMI_INIT(smc) /* Nothing */#endif#ifndef PNMI_GET_ID#define PNMI_GET_ID( smc, ndis_oid, buf, len, BytesWritten, BytesNeeded ) \ ( 1 ? (-1) : (-1) )#endif#ifndef PNMI_SET_ID#define PNMI_SET_ID( smc, ndis_oid, buf, len, BytesRead, BytesNeeded, \ set_type) ( 1 ? (-1) : (-1) )#endif/* * SMT_PANIC defines */#ifndef SMT_PANIC#define SMT_PANIC(smc,nr,msg) smt_panic (smc, msg)#endif#ifndef SMT_ERR_LOG#define SMT_ERR_LOG(smc,nr,msg) SMT_PANIC (smc, nr, msg)#endif#ifndef SMT_EBASE#define SMT_EBASE 100#endif#define SMT_E0100 SMT_EBASE + 0#define SMT_E0100_MSG "cfm FSM: illegal ce_type"#define SMT_E0101 SMT_EBASE + 1#define SMT_E0101_MSG "CEM: case ???"#define SMT_E0102 SMT_EBASE + 2#define SMT_E0102_MSG "CEM A: illegal state"#define SMT_E0103 SMT_EBASE + 3#define SMT_E0103_MSG "CEM B: illegal state"#define SMT_E0104 SMT_EBASE + 4#define SMT_E0104_MSG "CEM M: illegal state"#define SMT_E0105 SMT_EBASE + 5#define SMT_E0105_MSG "CEM S: illegal state"#define SMT_E0106 SMT_EBASE + 6#define SMT_E0106_MSG "CFM : illegal state"#define SMT_E0107 SMT_EBASE + 7#define SMT_E0107_MSG "ECM : illegal state"#define SMT_E0108 SMT_EBASE + 8#define SMT_E0108_MSG "prop_actions : NAC in DAS CFM"#define SMT_E0109 SMT_EBASE + 9#define SMT_E0109_MSG "ST2U.FM_SERRSF error in special frame"#define SMT_E0110 SMT_EBASE + 10#define SMT_E0110_MSG "ST2U.FM_SRFRCTOV recv. count. overflow"#define SMT_E0111 SMT_EBASE + 11#define SMT_E0111_MSG "ST2U.FM_SNFSLD NP & FORMAC simult. load"#define SMT_E0112 SMT_EBASE + 12#define SMT_E0112_MSG "ST2U.FM_SRCVFRM single-frame recv.-mode"#define SMT_E0113 SMT_EBASE + 13#define SMT_E0113_MSG "FPLUS: Buffer Memory Error"#define SMT_E0114 SMT_EBASE + 14#define SMT_E0114_MSG "ST2U.FM_SERRSF error in special frame"#define SMT_E0115 SMT_EBASE + 15#define SMT_E0115_MSG "ST3L: parity error in receive queue 2"#define SMT_E0116 SMT_EBASE + 16#define SMT_E0116_MSG "ST3L: parity error in receive queue 1"#define SMT_E0117 SMT_EBASE + 17#define SMT_E0117_MSG "E_SMT_001: RxD count for receive queue 1 = 0"#define SMT_E0118 SMT_EBASE + 18#define SMT_E0118_MSG "PCM : illegal state"#define SMT_E0119 SMT_EBASE + 19#define SMT_E0119_MSG "smt_add_para"#define SMT_E0120 SMT_EBASE + 20#define SMT_E0120_MSG "smt_set_para"#define SMT_E0121 SMT_EBASE + 21#define SMT_E0121_MSG "illegal event in dispatcher"#define SMT_E0122 SMT_EBASE + 22#define SMT_E0122_MSG "RMT : illegal state"#define SMT_E0123 SMT_EBASE + 23#define SMT_E0123_MSG "SBA: state machine has illegal state"#define SMT_E0124 SMT_EBASE + 24#define SMT_E0124_MSG "sba_free_session() called with NULL pointer"#define SMT_E0125 SMT_EBASE + 25#define SMT_E0125_MSG "SBA : illegal session pointer"#define SMT_E0126 SMT_EBASE + 26#define SMT_E0126_MSG "smt_free_mbuf() called with NULL pointer\n"#define SMT_E0127 SMT_EBASE + 27#define SMT_E0127_MSG "sizeof evcs"#define SMT_E0128 SMT_EBASE + 28#define SMT_E0128_MSG "evc->evc_cond_state = 0"#define SMT_E0129 SMT_EBASE + 29#define SMT_E0129_MSG "evc->evc_multiple = 0"#define SMT_E0130 SMT_EBASE + 30#define SMT_E0130_MSG write_mdr_warning#define SMT_E0131 SMT_EBASE + 31#define SMT_E0131_MSG cam_warning#define SMT_E0132 SMT_EBASE + 32#define SMT_E0132_MSG "ST1L.FM_SPCEPDx parity/coding error"#define SMT_E0133 SMT_EBASE + 33#define SMT_E0133_MSG "ST1L.FM_STBURx tx buffer underrun"#define SMT_E0134 SMT_EBASE + 34#define SMT_E0134_MSG "ST1L.FM_SPCEPDx parity error"#define SMT_E0135 SMT_EBASE + 35#define SMT_E0135_MSG "RMT: duplicate MAC address detected. Ring left!"#define SMT_E0136 SMT_EBASE + 36#define SMT_E0136_MSG "Elasticity Buffer hang-up"#define SMT_E0137 SMT_EBASE + 37#define SMT_E0137_MSG "SMT: queue overrun"#define SMT_E0138 SMT_EBASE + 38#define SMT_E0138_MSG "RMT: duplicate MAC address detected. Ring NOT left!"#endif /* _CMTDEF_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -