Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cmtdef.h File Reference
#include "mbuf.h"
#include "smtstate.h"

Go to the source code of this file.

Data Structures

struct  smt_timer
 
struct  mac_parameter
 
struct  mac_counter
 
struct  s_pcon
 
struct  lem_counter
 
struct  s_plc
 

Macros

#define AMDPLC   /* if Amd PLC chip used */
 
#define NUMPHYS   2 /* 2 for SAS or DAS, more for Concentrator */
 
#define NUMMACS   1 /* only 1 supported at the moment */
 
#define NUMPATHS   2 /* primary and secondary path supported */
 
#define LINT_USE(x)
 
#define DB_PR(flag, a, b, c)
 
#define DB_ECM(a, b, c)   DB_PR((debug.d_smt&1),a,b,c)
 
#define DB_ECMN(n, a, b, c)   DB_PR((debug.d_ecm >=(n)),a,b,c)
 
#define DB_RMT(a, b, c)   DB_PR((debug.d_smt&2),a,b,c)
 
#define DB_RMTN(n, a, b, c)   DB_PR((debug.d_rmt >=(n)),a,b,c)
 
#define DB_CFM(a, b, c)   DB_PR((debug.d_smt&4),a,b,c)
 
#define DB_CFMN(n, a, b, c)   DB_PR((debug.d_cfm >=(n)),a,b,c)
 
#define DB_PCM(a, b, c)   DB_PR((debug.d_smt&8),a,b,c)
 
#define DB_PCMN(n, a, b, c)   DB_PR((debug.d_pcm >=(n)),a,b,c)
 
#define DB_SMT(a, b, c)   DB_PR((debug.d_smtf),a,b,c)
 
#define DB_SMTN(n, a, b, c)   DB_PR((debug.d_smtf >=(n)),a,b,c)
 
#define DB_SBA(a, b, c)   DB_PR((debug.d_sba),a,b,c)
 
#define DB_SBAN(n, a, b, c)   DB_PR((debug.d_sba >=(n)),a,b,c)
 
#define DB_ESS(a, b, c)   DB_PR((debug.d_ess),a,b,c)
 
#define DB_ESSN(n, a, b, c)   DB_PR((debug.d_ess >=(n)),a,b,c)
 
#define SK_LOC_DECL(type, var)   type var
 
#define PA   0
 
#define PB   1
 
#define PS   1
 
#define PM   2 /* PM .. PA+NUM_PHYS-1 */
 
#define TA   0 /* A port */
 
#define TB   1 /* B port */
 
#define TS   2 /* S port */
 
#define TM   3 /* M port */
 
#define TNONE   4
 
#define INDEX_MAC   1
 
#define INDEX_PATH   1
 
#define INDEX_PORT   1
 
#define POLICY_AA   (1<<0) /* reject AA */
 
#define POLICY_AB   (1<<1) /* reject AB */
 
#define POLICY_AS   (1<<2) /* reject AS */
 
#define POLICY_AM   (1<<3) /* reject AM */
 
#define POLICY_BA   (1<<4) /* reject BA */
 
#define POLICY_BB   (1<<5) /* reject BB */
 
#define POLICY_BS   (1<<6) /* reject BS */
 
#define POLICY_BM   (1<<7) /* reject BM */
 
#define POLICY_SA   (1<<8) /* reject SA */
 
#define POLICY_SB   (1<<9) /* reject SB */
 
#define POLICY_SS   (1<<10) /* reject SS */
 
#define POLICY_SM   (1<<11) /* reject SM */
 
#define POLICY_MA   (1<<12) /* reject MA */
 
#define POLICY_MB   (1<<13) /* reject MB */
 
#define POLICY_MS   (1<<14) /* reject MS */
 
#define POLICY_MM   (1<<15) /* reject MM */
 
#define EVENT_ECM   1 /* event class ECM */
 
#define EVENT_CFM   2 /* event class CFM */
 
#define EVENT_RMT   3 /* event class RMT */
 
#define EVENT_SMT   4 /* event class SMT */
 
#define EVENT_PCM   5 /* event class PCM */
 
#define EVENT_PCMA   5 /* event class PCMA */
 
#define EVENT_PCMB   6 /* event class PCMB */
 
#define EV_TOKEN(class, event)   (((u_long)(class)<<16L)|((u_long)(event)))
 
#define EV_T_CLASS(token)   ((int)((token)>>16)&0xffff)
 
#define EV_T_EVENT(token)   ((int)(token)&0xffff)
 
#define EC_CONNECT   1 /* connect request */
 
#define EC_DISCONNECT   2 /* disconnect request */
 
#define EC_TRACE_PROP   3 /* trace propagation */
 
#define EC_PATH_TEST   4 /* path test */
 
#define EC_TIMEOUT_TD   5 /* timer TD_min */
 
#define EC_TIMEOUT_TMAX   6 /* timer trace_max */
 
#define EC_TIMEOUT_IMAX   7 /* timer I_max */
 
#define EC_TIMEOUT_INMAX   8 /* timer IN_max */
 
#define EC_TEST_DONE   9 /* path test done */
 
#define CF_LOOP   1 /* cf_loop flag from PCM */
 
#define CF_LOOP_A   1 /* cf_loop flag from PCM */
 
#define CF_LOOP_B   2 /* cf_loop flag from PCM */
 
#define CF_JOIN   3 /* cf_join flag from PCM */
 
#define CF_JOIN_A   3 /* cf_join flag from PCM */
 
#define CF_JOIN_B   4 /* cf_join flag from PCM */
 
#define PC_START   1
 
#define PC_STOP   2
 
#define PC_LOOP   3
 
#define PC_JOIN   4
 
#define PC_SIGNAL   5
 
#define PC_REJECT   6
 
#define PC_MAINT   7
 
#define PC_TRACE   8
 
#define PC_PDR   9
 
#define PC_ENABLE   10
 
#define PC_DISABLE   11
 
#define PC_QLS   12
 
#define PC_ILS   13
 
#define PC_MLS   14
 
#define PC_HLS   15
 
#define PC_LS_PDR   16
 
#define PC_LS_NONE   17
 
#define LS2MIB(x)   ((x)-PC_QLS)
 
#define MIB2LS(x)   ((x)+PC_QLS)
 
#define PC_TIMEOUT_TB_MAX   18 /* timer TB_max */
 
#define PC_TIMEOUT_TB_MIN   19 /* timer TB_min */
 
#define PC_TIMEOUT_C_MIN   20 /* timer C_Min */
 
#define PC_TIMEOUT_T_OUT   21 /* timer T_Out */
 
#define PC_TIMEOUT_TL_MIN   22 /* timer TL_Min */
 
#define PC_TIMEOUT_T_NEXT   23 /* timer t_next[] */
 
#define PC_TIMEOUT_LCT   24
 
#define PC_NSE   25 /* NOISE hardware timer */
 
#define PC_LEM   26 /* LEM done */
 
#define RM_RING_OP   1 /* ring operational MAC */
 
#define RM_RING_NON_OP   2 /* ring not operational MAC */
 
#define RM_MY_BEACON   3 /* recvd my beacon MAC */
 
#define RM_OTHER_BEACON   4 /* recvd other beacon MAC */
 
#define RM_MY_CLAIM   5 /* recvd my claim MAC */
 
#define RM_TRT_EXP   6 /* TRT exp MAC */
 
#define RM_VALID_CLAIM   7 /* claim from dup addr MAC */
 
#define RM_JOIN   8 /* signal rm_join CFM */
 
#define RM_LOOP   9 /* signal rm_loop CFM */
 
#define RM_DUP_ADDR   10 /* dup_addr_test hange SMT-NIF */
 
#define RM_ENABLE_FLAG   11 /* enable flag */
 
#define RM_TIMEOUT_NON_OP   12 /* timeout T_Non_OP */
 
#define RM_TIMEOUT_T_STUCK   13 /* timeout T_Stuck */
 
#define RM_TIMEOUT_ANNOUNCE   14 /* timeout T_Announce */
 
#define RM_TIMEOUT_T_DIRECT   15 /* timeout T_Direct */
 
#define RM_TIMEOUT_D_MAX   16 /* timeout D_Max */
 
#define RM_TIMEOUT_POLL   17 /* claim/beacon poller */
 
#define RM_TX_STATE_CHANGE   18 /* To restart timer for D_Max */
 
#define SM_TIMER   1 /* timer */
 
#define SM_FAST   2 /* smt_force_irq */
 
#define PM_NONE   0
 
#define PM_PEER   1
 
#define PM_TREE   2
 
#define PC_WH_NONE   0 /* ok */
 
#define PC_WH_M_M   1 /* M to M */
 
#define PC_WH_OTHER   2 /* other incompatible phys */
 
#define PC_WH_PATH   3 /* path not available */
 
#define LC_SHORT   1 /* short LCT */
 
#define LC_MEDIUM   2 /* medium LCT */
 
#define LC_LONG   3 /* long LCT */
 
#define LC_EXTENDED   4 /* extended LCT */
 
#define PT_NONE   0
 
#define PT_TESTING   1 /* test is running */
 
#define PT_PASSED   2 /* test passed */
 
#define PT_FAILED   3 /* test failed */
 
#define PT_PENDING   4 /* path test follows */
 
#define PT_EXITING   5 /* disconnected while in trace/leave */
 
#define DA_NONE   0 /* */
 
#define DA_PASSED   1 /* test passed */
 
#define DA_FAILED   2 /* test failed */
 
#define BP_DEINSERT   0 /* disable bypass */
 
#define BP_INSERT   1 /* enable bypass */
 
#define PM_TRANSMIT_DISABLE   0 /* disable xmit */
 
#define PM_TRANSMIT_ENABLE   1 /* enable xmit */
 
#define MUX_THRUA   0 /* through A */
 
#define MUX_THRUB   1 /* through B */
 
#define MUX_WRAPA   2 /* wrap A */
 
#define MUX_WRAPB   3 /* wrap B */
 
#define MUX_ISOLATE   4 /* isolated */
 
#define MUX_WRAPS   5 /* SAS */
 
#define MA_RESET   0
 
#define MA_BEACON   1
 
#define MA_CLAIM   2
 
#define MA_DIRECTED   3 /* directed beacon */
 
#define MA_TREQ   4 /* change T_Req */
 
#define MA_OFFLINE   5 /* switch MAC to offline */
 
#define ENTITY_MAC   (NUMPHYS)
 
#define ENTITY_PHY(p)   (p)
 
#define ENTITY_BIT(m)   (1<<(m))
 
#define PATH_ISO   0 /* isolated */
 
#define PATH_PRIM   3 /* primary path */
 
#define PATH_THRU   5 /* through path */
 
#define RES_MAC   2 /* resource type MAC */
 
#define RES_PORT   4 /* resource type PORT */
 
#define SC0_ISOLATED   0 /* isolated */
 
#define SC1_WRAP_A   5 /* wrap A (not used) */
 
#define SC2_WRAP_B   6 /* wrap B (not used) */
 
#define SC4_THRU_A   12 /* through A */
 
#define SC5_THRU_B   7 /* through B (used in SMT 6.2) */
 
#define SC7_WRAP_S   8 /* SAS (not used) */
 
#define SC9_C_WRAP_A   9 /* c wrap A */
 
#define SC10_C_WRAP_B   10 /* c wrap B */
 
#define SC11_C_WRAP_S   11 /* c wrap S */
 
#define MIB2US(t)   ((t)/12)
 
#define SEC2MIB(s)   ((s)*12500000L)
 
#define LEM_AVG   5
 
#define NUMBITS   10
 
#define SK_UNUSED(var)   (void)(var)
 
#define dump_smt(smc, sm, text)
 
#define PNMI_INIT(smc)   /* Nothing */
 
#define PNMI_GET_ID(smc, ndis_oid, buf, len, BytesWritten, BytesNeeded)   ( 1 ? (-1) : (-1) )
 
#define PNMI_SET_ID(smc, ndis_oid, buf, len, BytesRead, BytesNeeded, set_type)   ( 1 ? (-1) : (-1) )
 
#define SMT_PANIC(smc, nr, msg)   smt_panic (smc, msg)
 
#define SMT_ERR_LOG(smc, nr, msg)   SMT_PANIC (smc, nr, msg)
 
#define SMT_EBASE   100
 
#define SMT_E0100   SMT_EBASE + 0
 
#define SMT_E0100_MSG   "cfm FSM: invalid 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: invalid state"
 
#define SMT_E0103   SMT_EBASE + 3
 
#define SMT_E0103_MSG   "CEM B: invalid state"
 
#define SMT_E0104   SMT_EBASE + 4
 
#define SMT_E0104_MSG   "CEM M: invalid state"
 
#define SMT_E0105   SMT_EBASE + 5
 
#define SMT_E0105_MSG   "CEM S: invalid state"
 
#define SMT_E0106   SMT_EBASE + 6
 
#define SMT_E0106_MSG   "CFM : invalid state"
 
#define SMT_E0107   SMT_EBASE + 7
 
#define SMT_E0107_MSG   "ECM : invalid 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 : invalid 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   "invalid event in dispatcher"
 
#define SMT_E0122   SMT_EBASE + 22
 
#define SMT_E0122_MSG   "RMT : invalid state"
 
#define SMT_E0123   SMT_EBASE + 23
 
#define SMT_E0123_MSG   "SBA: state machine has invalid 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 : invalid 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!"
 

Functions

void hwt_restart (struct s_smc *smc)
 
SMbufsmt_build_frame (struct s_smc *smc, int class, int type, int length)
 
SMbufsmt_get_mbuf (struct s_smc *smc)
 
voidsm_to_para (struct s_smc *smc, struct smt_header *sm, int para)
 
void queue_event (struct s_smc *smc, int class, int event)
 
void ecm (struct s_smc *smc, int event)
 
void ecm_init (struct s_smc *smc)
 
void rmt (struct s_smc *smc, int event)
 
void rmt_init (struct s_smc *smc)
 
void pcm (struct s_smc *smc, const int np, int event)
 
void pcm_init (struct s_smc *smc)
 
void cfm (struct s_smc *smc, int event)
 
void cfm_init (struct s_smc *smc)
 
void smt_timer_start (struct s_smc *smc, struct smt_timer *timer, u_long time, u_long token)
 
void smt_timer_stop (struct s_smc *smc, struct smt_timer *timer)
 
void pcm_status_state (struct s_smc *smc, int np, int *type, int *state, int *remote, int *mac)
 
void plc_config_mux (struct s_smc *smc, int mux)
 
void sm_lem_evaluate (struct s_smc *smc)
 
void mac_update_counter (struct s_smc *smc)
 
void sm_pm_ls_latch (struct s_smc *smc, int phy, int on_off)
 
void sm_ma_control (struct s_smc *smc, int mode)
 
void sm_mac_check_beacon_claim (struct s_smc *smc)
 
void config_mux (struct s_smc *smc, int mux)
 
void smt_agent_init (struct s_smc *smc)
 
void smt_timer_init (struct s_smc *smc)
 
void smt_received_pack (struct s_smc *smc, SMbuf *mb, int fs)
 
void smt_add_para (struct s_smc *smc, struct s_pcon *pcon, u_short para, int index, int local)
 
void smt_swap_para (struct smt_header *sm, int len, int direction)
 
void ev_init (struct s_smc *smc)
 
void hwt_init (struct s_smc *smc)
 
u_long hwt_read (struct s_smc *smc)
 
void hwt_stop (struct s_smc *smc)
 
void hwt_start (struct s_smc *smc, u_long time)
 
void smt_send_mbuf (struct s_smc *smc, SMbuf *mb, int fc)
 
void smt_free_mbuf (struct s_smc *smc, SMbuf *mb)
 
void sm_pm_bypass_req (struct s_smc *smc, int mode)
 
void rmt_indication (struct s_smc *smc, int i)
 
void cfm_state_change (struct s_smc *smc, int c_state)
 
void smt_panic (struct s_smc *smc, char *text)
 
void smt_stat_counter (struct s_smc *smc, int stat)
 
void smt_timer_poll (struct s_smc *smc)
 
u_long smt_get_time (void)
 
u_long smt_get_tid (struct s_smc *smc)
 
void smt_timer_done (struct s_smc *smc)
 
void smt_fixup_mib (struct s_smc *smc)
 
void smt_reset_defaults (struct s_smc *smc, int level)
 
void smt_agent_task (struct s_smc *smc)
 
int smt_check_para (struct s_smc *smc, struct smt_header *sm, const u_short list[])
 
void driver_get_bia (struct s_smc *smc, struct fddi_addr *bia_addr)
 
void smt_start_watchdog (struct s_smc *smc)
 
void smt_event (struct s_smc *smc, int event)
 
void timer_event (struct s_smc *smc, u_long token)
 
void ev_dispatcher (struct s_smc *smc)
 
void pcm_get_state (struct s_smc *smc, struct smt_state *state)
 
void ecm_state_change (struct s_smc *smc, int e_state)
 
int sm_pm_bypass_present (struct s_smc *smc)
 
void pcm_state_change (struct s_smc *smc, int plc, int p_state)
 
void rmt_state_change (struct s_smc *smc, int r_state)
 
int sm_pm_get_ls (struct s_smc *smc, int phy)
 
int pcm_get_s_port (struct s_smc *smc)
 
int pcm_rooted_station (struct s_smc *smc)
 
int cfm_get_mac_input (struct s_smc *smc)
 
int cfm_get_mac_output (struct s_smc *smc)
 
int cem_build_path (struct s_smc *smc, char *to, int path_index)
 
int sm_mac_get_tx_state (struct s_smc *smc)
 
charget_pcmstate (struct s_smc *smc, int np)
 
int smt_action (struct s_smc *smc, int class, int code, int index)
 
u_short smt_online (struct s_smc *smc, int on)
 
void smt_force_irq (struct s_smc *smc)
 
void smt_pmf_received_pack (struct s_smc *smc, SMbuf *mb, int local)
 
void smt_send_frame (struct s_smc *smc, SMbuf *mb, int fc, int local)
 
void smt_set_timestamp (struct s_smc *smc, u_char *p)
 
void mac_set_rx_mode (struct s_smc *smc, int mode)
 
int mac_add_multicast (struct s_smc *smc, struct fddi_addr *addr, int can)
 
void mac_update_multicast (struct s_smc *smc)
 
void mac_clear_multicast (struct s_smc *smc)
 
void set_formac_tsync (struct s_smc *smc, long sync_bw)
 
void formac_reinit_tx (struct s_smc *smc)
 
void formac_tx_restart (struct s_smc *smc)
 
void process_receive (struct s_smc *smc)
 
void init_driver_fplus (struct s_smc *smc)
 
void rtm_irq (struct s_smc *smc)
 
void rtm_set_timer (struct s_smc *smc)
 
void ring_status_indication (struct s_smc *smc, u_long status)
 
void llc_recover_tx (struct s_smc *smc)
 
void llc_restart_tx (struct s_smc *smc)
 
void plc_clear_irq (struct s_smc *smc, int p)
 
void plc_irq (struct s_smc *smc, int np, unsigned int cmd)
 
int smt_set_mac_opvalues (struct s_smc *smc)
 
void smt_init_evc (struct s_smc *smc)
 
void smt_srf_event (struct s_smc *smc, int code, int index, int cond)
 
void smt_emulate_token_ct (struct s_smc *smc, int mac_index)
 

Macro Definition Documentation

#define AMDPLC   /* if Amd PLC chip used */

Definition at line 24 of file cmtdef.h.

#define BP_DEINSERT   0 /* disable bypass */

Definition at line 314 of file cmtdef.h.

#define BP_INSERT   1 /* enable bypass */

Definition at line 315 of file cmtdef.h.

#define CF_JOIN   3 /* cf_join flag from PCM */

Definition at line 201 of file cmtdef.h.

#define CF_JOIN_A   3 /* cf_join flag from PCM */

Definition at line 202 of file cmtdef.h.

#define CF_JOIN_B   4 /* cf_join flag from PCM */

Definition at line 203 of file cmtdef.h.

#define CF_LOOP   1 /* cf_loop flag from PCM */

Definition at line 198 of file cmtdef.h.

#define CF_LOOP_A   1 /* cf_loop flag from PCM */

Definition at line 199 of file cmtdef.h.

#define CF_LOOP_B   2 /* cf_loop flag from PCM */

Definition at line 200 of file cmtdef.h.

#define DA_FAILED   2 /* test failed */

Definition at line 308 of file cmtdef.h.

#define DA_NONE   0 /* */

Definition at line 306 of file cmtdef.h.

#define DA_PASSED   1 /* test passed */

Definition at line 307 of file cmtdef.h.

#define DB_CFM (   a,
  b,
  c 
)    DB_PR((debug.d_smt&4),a,b,c)

Definition at line 82 of file cmtdef.h.

#define DB_CFMN (   n,
  a,
  b,
  c 
)    DB_PR((debug.d_cfm >=(n)),a,b,c)

Definition at line 83 of file cmtdef.h.

#define DB_ECM (   a,
  b,
  c 
)    DB_PR((debug.d_smt&1),a,b,c)

Definition at line 78 of file cmtdef.h.

#define DB_ECMN (   n,
  a,
  b,
  c 
)    DB_PR((debug.d_ecm >=(n)),a,b,c)

Definition at line 79 of file cmtdef.h.

#define DB_ESS (   a,
  b,
  c 
)    DB_PR((debug.d_ess),a,b,c)

Definition at line 90 of file cmtdef.h.

#define DB_ESSN (   n,
  a,
  b,
  c 
)    DB_PR((debug.d_ess >=(n)),a,b,c)

Definition at line 91 of file cmtdef.h.

#define DB_PCM (   a,
  b,
  c 
)    DB_PR((debug.d_smt&8),a,b,c)

Definition at line 84 of file cmtdef.h.

#define DB_PCMN (   n,
  a,
  b,
  c 
)    DB_PR((debug.d_pcm >=(n)),a,b,c)

Definition at line 85 of file cmtdef.h.

#define DB_PR (   flag,
  a,
  b,
  c 
)

Definition at line 59 of file cmtdef.h.

#define DB_RMT (   a,
  b,
  c 
)    DB_PR((debug.d_smt&2),a,b,c)

Definition at line 80 of file cmtdef.h.

#define DB_RMTN (   n,
  a,
  b,
  c 
)    DB_PR((debug.d_rmt >=(n)),a,b,c)

Definition at line 81 of file cmtdef.h.

#define DB_SBA (   a,
  b,
  c 
)    DB_PR((debug.d_sba),a,b,c)

Definition at line 88 of file cmtdef.h.

#define DB_SBAN (   n,
  a,
  b,
  c 
)    DB_PR((debug.d_sba >=(n)),a,b,c)

Definition at line 89 of file cmtdef.h.

#define DB_SMT (   a,
  b,
  c 
)    DB_PR((debug.d_smtf),a,b,c)

Definition at line 86 of file cmtdef.h.

#define DB_SMTN (   n,
  a,
  b,
  c 
)    DB_PR((debug.d_smtf >=(n)),a,b,c)

Definition at line 87 of file cmtdef.h.

#define dump_smt (   smc,
  sm,
  text 
)

Definition at line 640 of file cmtdef.h.

#define EC_CONNECT   1 /* connect request */

Definition at line 185 of file cmtdef.h.

#define EC_DISCONNECT   2 /* disconnect request */

Definition at line 186 of file cmtdef.h.

#define EC_PATH_TEST   4 /* path test */

Definition at line 188 of file cmtdef.h.

#define EC_TEST_DONE   9 /* path test done */

Definition at line 193 of file cmtdef.h.

#define EC_TIMEOUT_IMAX   7 /* timer I_max */

Definition at line 191 of file cmtdef.h.

#define EC_TIMEOUT_INMAX   8 /* timer IN_max */

Definition at line 192 of file cmtdef.h.

#define EC_TIMEOUT_TD   5 /* timer TD_min */

Definition at line 189 of file cmtdef.h.

#define EC_TIMEOUT_TMAX   6 /* timer trace_max */

Definition at line 190 of file cmtdef.h.

#define EC_TRACE_PROP   3 /* trace propagation */

Definition at line 187 of file cmtdef.h.

#define ENTITY_BIT (   m)    (1<<(m))

Definition at line 351 of file cmtdef.h.

#define ENTITY_MAC   (NUMPHYS)

Definition at line 349 of file cmtdef.h.

#define ENTITY_PHY (   p)    (p)

Definition at line 350 of file cmtdef.h.

#define EV_T_CLASS (   token)    ((int)((token)>>16)&0xffff)

Definition at line 179 of file cmtdef.h.

#define EV_T_EVENT (   token)    ((int)(token)&0xffff)

Definition at line 180 of file cmtdef.h.

#define EV_TOKEN (   class,
  event 
)    (((u_long)(class)<<16L)|((u_long)(event)))

Definition at line 178 of file cmtdef.h.

#define EVENT_CFM   2 /* event class CFM */

Definition at line 165 of file cmtdef.h.

#define EVENT_ECM   1 /* event class ECM */

Definition at line 164 of file cmtdef.h.

#define EVENT_PCM   5 /* event class PCM */

Definition at line 168 of file cmtdef.h.

#define EVENT_PCMA   5 /* event class PCMA */

Definition at line 169 of file cmtdef.h.

#define EVENT_PCMB   6 /* event class PCMB */

Definition at line 170 of file cmtdef.h.

#define EVENT_RMT   3 /* event class RMT */

Definition at line 166 of file cmtdef.h.

#define EVENT_SMT   4 /* event class SMT */

Definition at line 167 of file cmtdef.h.

#define INDEX_MAC   1

Definition at line 131 of file cmtdef.h.

#define INDEX_PATH   1

Definition at line 132 of file cmtdef.h.

#define INDEX_PORT   1

Definition at line 133 of file cmtdef.h.

#define LC_EXTENDED   4 /* extended LCT */

Definition at line 290 of file cmtdef.h.

#define LC_LONG   3 /* long LCT */

Definition at line 289 of file cmtdef.h.

#define LC_MEDIUM   2 /* medium LCT */

Definition at line 288 of file cmtdef.h.

#define LC_SHORT   1 /* short LCT */

Definition at line 287 of file cmtdef.h.

#define LEM_AVG   5

Definition at line 424 of file cmtdef.h.

#define LINT_USE (   x)

Definition at line 53 of file cmtdef.h.

#define LS2MIB (   x)    ((x)-PC_QLS)

Definition at line 229 of file cmtdef.h.

#define MA_BEACON   1

Definition at line 338 of file cmtdef.h.

#define MA_CLAIM   2

Definition at line 339 of file cmtdef.h.

#define MA_DIRECTED   3 /* directed beacon */

Definition at line 340 of file cmtdef.h.

#define MA_OFFLINE   5 /* switch MAC to offline */

Definition at line 342 of file cmtdef.h.

#define MA_RESET   0

Definition at line 337 of file cmtdef.h.

#define MA_TREQ   4 /* change T_Req */

Definition at line 341 of file cmtdef.h.

#define MIB2LS (   x)    ((x)+PC_QLS)

Definition at line 230 of file cmtdef.h.

#define MIB2US (   t)    ((t)/12)

Definition at line 381 of file cmtdef.h.

#define MUX_ISOLATE   4 /* isolated */

Definition at line 331 of file cmtdef.h.

#define MUX_THRUA   0 /* through A */

Definition at line 327 of file cmtdef.h.

#define MUX_THRUB   1 /* through B */

Definition at line 328 of file cmtdef.h.

#define MUX_WRAPA   2 /* wrap A */

Definition at line 329 of file cmtdef.h.

#define MUX_WRAPB   3 /* wrap B */

Definition at line 330 of file cmtdef.h.

#define MUX_WRAPS   5 /* SAS */

Definition at line 332 of file cmtdef.h.

#define NUMBITS   10

Definition at line 444 of file cmtdef.h.

#define NUMMACS   1 /* only 1 supported at the moment */

Definition at line 34 of file cmtdef.h.

#define NUMPATHS   2 /* primary and secondary path supported */

Definition at line 35 of file cmtdef.h.

#define NUMPHYS   2 /* 2 for SAS or DAS, more for Concentrator */

Definition at line 31 of file cmtdef.h.

#define PA   0

Definition at line 104 of file cmtdef.h.

#define PATH_ISO   0 /* isolated */

Definition at line 356 of file cmtdef.h.

#define PATH_PRIM   3 /* primary path */

Definition at line 357 of file cmtdef.h.

#define PATH_THRU   5 /* through path */

Definition at line 358 of file cmtdef.h.

#define PB   1

Definition at line 105 of file cmtdef.h.

#define PC_DISABLE   11

Definition at line 218 of file cmtdef.h.

#define PC_ENABLE   10

Definition at line 217 of file cmtdef.h.

#define PC_HLS   15

Definition at line 226 of file cmtdef.h.

#define PC_ILS   13

Definition at line 224 of file cmtdef.h.

#define PC_JOIN   4

Definition at line 211 of file cmtdef.h.

#define PC_LEM   26 /* LEM done */

Definition at line 240 of file cmtdef.h.

#define PC_LOOP   3

Definition at line 210 of file cmtdef.h.

#define PC_LS_NONE   17

Definition at line 228 of file cmtdef.h.

#define PC_LS_PDR   16

Definition at line 227 of file cmtdef.h.

#define PC_MAINT   7

Definition at line 214 of file cmtdef.h.

#define PC_MLS   14

Definition at line 225 of file cmtdef.h.

#define PC_NSE   25 /* NOISE hardware timer */

Definition at line 239 of file cmtdef.h.

#define PC_PDR   9

Definition at line 216 of file cmtdef.h.

#define PC_QLS   12

Definition at line 223 of file cmtdef.h.

#define PC_REJECT   6

Definition at line 213 of file cmtdef.h.

#define PC_SIGNAL   5

Definition at line 212 of file cmtdef.h.

#define PC_START   1

Definition at line 208 of file cmtdef.h.

#define PC_STOP   2

Definition at line 209 of file cmtdef.h.

#define PC_TIMEOUT_C_MIN   20 /* timer C_Min */

Definition at line 234 of file cmtdef.h.

#define PC_TIMEOUT_LCT   24

Definition at line 238 of file cmtdef.h.

#define PC_TIMEOUT_T_NEXT   23 /* timer t_next[] */

Definition at line 237 of file cmtdef.h.

#define PC_TIMEOUT_T_OUT   21 /* timer T_Out */

Definition at line 235 of file cmtdef.h.

#define PC_TIMEOUT_TB_MAX   18 /* timer TB_max */

Definition at line 232 of file cmtdef.h.

#define PC_TIMEOUT_TB_MIN   19 /* timer TB_min */

Definition at line 233 of file cmtdef.h.

#define PC_TIMEOUT_TL_MIN   22 /* timer TL_Min */

Definition at line 236 of file cmtdef.h.

#define PC_TRACE   8

Definition at line 215 of file cmtdef.h.

#define PC_WH_M_M   1 /* M to M */

Definition at line 281 of file cmtdef.h.

#define PC_WH_NONE   0 /* ok */

Definition at line 280 of file cmtdef.h.

#define PC_WH_OTHER   2 /* other incompatible phys */

Definition at line 282 of file cmtdef.h.

#define PC_WH_PATH   3 /* path not available */

Definition at line 283 of file cmtdef.h.

#define PM   2 /* PM .. PA+NUM_PHYS-1 */

Definition at line 116 of file cmtdef.h.

#define PM_NONE   0

Definition at line 272 of file cmtdef.h.

#define PM_PEER   1

Definition at line 273 of file cmtdef.h.

#define PM_TRANSMIT_DISABLE   0 /* disable xmit */

Definition at line 320 of file cmtdef.h.

#define PM_TRANSMIT_ENABLE   1 /* enable xmit */

Definition at line 321 of file cmtdef.h.

#define PM_TREE   2

Definition at line 274 of file cmtdef.h.

#define PNMI_GET_ID (   smc,
  ndis_oid,
  buf,
  len,
  BytesWritten,
  BytesNeeded 
)    ( 1 ? (-1) : (-1) )

Definition at line 655 of file cmtdef.h.

#define PNMI_INIT (   smc)    /* Nothing */

Definition at line 652 of file cmtdef.h.

#define PNMI_SET_ID (   smc,
  ndis_oid,
  buf,
  len,
  BytesRead,
  BytesNeeded,
  set_type 
)    ( 1 ? (-1) : (-1) )

Definition at line 659 of file cmtdef.h.

#define POLICY_AA   (1<<0) /* reject AA */

Definition at line 139 of file cmtdef.h.

#define POLICY_AB   (1<<1) /* reject AB */

Definition at line 140 of file cmtdef.h.

#define POLICY_AM   (1<<3) /* reject AM */

Definition at line 142 of file cmtdef.h.

#define POLICY_AS   (1<<2) /* reject AS */

Definition at line 141 of file cmtdef.h.

#define POLICY_BA   (1<<4) /* reject BA */

Definition at line 143 of file cmtdef.h.

#define POLICY_BB   (1<<5) /* reject BB */

Definition at line 144 of file cmtdef.h.

#define POLICY_BM   (1<<7) /* reject BM */

Definition at line 146 of file cmtdef.h.

#define POLICY_BS   (1<<6) /* reject BS */

Definition at line 145 of file cmtdef.h.

#define POLICY_MA   (1<<12) /* reject MA */

Definition at line 151 of file cmtdef.h.

#define POLICY_MB   (1<<13) /* reject MB */

Definition at line 152 of file cmtdef.h.

#define POLICY_MM   (1<<15) /* reject MM */

Definition at line 154 of file cmtdef.h.

#define POLICY_MS   (1<<14) /* reject MS */

Definition at line 153 of file cmtdef.h.

#define POLICY_SA   (1<<8) /* reject SA */

Definition at line 147 of file cmtdef.h.

#define POLICY_SB   (1<<9) /* reject SB */

Definition at line 148 of file cmtdef.h.

#define POLICY_SM   (1<<11) /* reject SM */

Definition at line 150 of file cmtdef.h.

#define POLICY_SS   (1<<10) /* reject SS */

Definition at line 149 of file cmtdef.h.

#define PS   1

Definition at line 114 of file cmtdef.h.

#define PT_EXITING   5 /* disconnected while in trace/leave */

Definition at line 300 of file cmtdef.h.

#define PT_FAILED   3 /* test failed */

Definition at line 298 of file cmtdef.h.

#define PT_NONE   0

Definition at line 295 of file cmtdef.h.

#define PT_PASSED   2 /* test passed */

Definition at line 297 of file cmtdef.h.

#define PT_PENDING   4 /* path test follows */

Definition at line 299 of file cmtdef.h.

#define PT_TESTING   1 /* test is running */

Definition at line 296 of file cmtdef.h.

#define RES_MAC   2 /* resource type MAC */

Definition at line 360 of file cmtdef.h.

#define RES_PORT   4 /* resource type PORT */

Definition at line 361 of file cmtdef.h.

#define RM_DUP_ADDR   10 /* dup_addr_test hange SMT-NIF */

Definition at line 254 of file cmtdef.h.

#define RM_ENABLE_FLAG   11 /* enable flag */

Definition at line 255 of file cmtdef.h.

#define RM_JOIN   8 /* signal rm_join CFM */

Definition at line 252 of file cmtdef.h.

#define RM_LOOP   9 /* signal rm_loop CFM */

Definition at line 253 of file cmtdef.h.

#define RM_MY_BEACON   3 /* recvd my beacon MAC */

Definition at line 247 of file cmtdef.h.

#define RM_MY_CLAIM   5 /* recvd my claim MAC */

Definition at line 249 of file cmtdef.h.

#define RM_OTHER_BEACON   4 /* recvd other beacon MAC */

Definition at line 248 of file cmtdef.h.

#define RM_RING_NON_OP   2 /* ring not operational MAC */

Definition at line 246 of file cmtdef.h.

#define RM_RING_OP   1 /* ring operational MAC */

Definition at line 245 of file cmtdef.h.

#define RM_TIMEOUT_ANNOUNCE   14 /* timeout T_Announce */

Definition at line 259 of file cmtdef.h.

#define RM_TIMEOUT_D_MAX   16 /* timeout D_Max */

Definition at line 261 of file cmtdef.h.

#define RM_TIMEOUT_NON_OP   12 /* timeout T_Non_OP */

Definition at line 257 of file cmtdef.h.

#define RM_TIMEOUT_POLL   17 /* claim/beacon poller */

Definition at line 262 of file cmtdef.h.

#define RM_TIMEOUT_T_DIRECT   15 /* timeout T_Direct */

Definition at line 260 of file cmtdef.h.

#define RM_TIMEOUT_T_STUCK   13 /* timeout T_Stuck */

Definition at line 258 of file cmtdef.h.

#define RM_TRT_EXP   6 /* TRT exp MAC */

Definition at line 250 of file cmtdef.h.

#define RM_TX_STATE_CHANGE   18 /* To restart timer for D_Max */

Definition at line 263 of file cmtdef.h.

#define RM_VALID_CLAIM   7 /* claim from dup addr MAC */

Definition at line 251 of file cmtdef.h.

#define SC0_ISOLATED   0 /* isolated */

Definition at line 368 of file cmtdef.h.

#define SC10_C_WRAP_B   10 /* c wrap B */

Definition at line 375 of file cmtdef.h.

#define SC11_C_WRAP_S   11 /* c wrap S */

Definition at line 376 of file cmtdef.h.

#define SC1_WRAP_A   5 /* wrap A (not used) */

Definition at line 369 of file cmtdef.h.

#define SC2_WRAP_B   6 /* wrap B (not used) */

Definition at line 370 of file cmtdef.h.

#define SC4_THRU_A   12 /* through A */

Definition at line 371 of file cmtdef.h.

#define SC5_THRU_B   7 /* through B (used in SMT 6.2) */

Definition at line 372 of file cmtdef.h.

#define SC7_WRAP_S   8 /* SAS (not used) */

Definition at line 373 of file cmtdef.h.

#define SC9_C_WRAP_A   9 /* c wrap A */

Definition at line 374 of file cmtdef.h.

#define SEC2MIB (   s)    ((s)*12500000L)

Definition at line 382 of file cmtdef.h.

#define SK_LOC_DECL (   type,
  var 
)    type var

Definition at line 95 of file cmtdef.h.

#define SK_UNUSED (   var)    (void)(var)

Definition at line 491 of file cmtdef.h.

#define SM_FAST   2 /* smt_force_irq */

Definition at line 269 of file cmtdef.h.

#define SM_TIMER   1 /* timer */

Definition at line 268 of file cmtdef.h.

#define SMT_E0100   SMT_EBASE + 0

Definition at line 678 of file cmtdef.h.

#define SMT_E0100_MSG   "cfm FSM: invalid ce_type"

Definition at line 679 of file cmtdef.h.

#define SMT_E0101   SMT_EBASE + 1

Definition at line 680 of file cmtdef.h.

#define SMT_E0101_MSG   "CEM: case ???"

Definition at line 681 of file cmtdef.h.

#define SMT_E0102   SMT_EBASE + 2

Definition at line 682 of file cmtdef.h.

#define SMT_E0102_MSG   "CEM A: invalid state"

Definition at line 683 of file cmtdef.h.

#define SMT_E0103   SMT_EBASE + 3

Definition at line 684 of file cmtdef.h.

#define SMT_E0103_MSG   "CEM B: invalid state"

Definition at line 685 of file cmtdef.h.

#define SMT_E0104   SMT_EBASE + 4

Definition at line 686 of file cmtdef.h.

#define SMT_E0104_MSG   "CEM M: invalid state"

Definition at line 687 of file cmtdef.h.

#define SMT_E0105   SMT_EBASE + 5

Definition at line 688 of file cmtdef.h.

#define SMT_E0105_MSG   "CEM S: invalid state"

Definition at line 689 of file cmtdef.h.

#define SMT_E0106   SMT_EBASE + 6

Definition at line 690 of file cmtdef.h.

#define SMT_E0106_MSG   "CFM : invalid state"

Definition at line 691 of file cmtdef.h.

#define SMT_E0107   SMT_EBASE + 7

Definition at line 692 of file cmtdef.h.

#define SMT_E0107_MSG   "ECM : invalid state"

Definition at line 693 of file cmtdef.h.

#define SMT_E0108   SMT_EBASE + 8

Definition at line 694 of file cmtdef.h.

#define SMT_E0108_MSG   "prop_actions : NAC in DAS CFM"

Definition at line 695 of file cmtdef.h.

#define SMT_E0109   SMT_EBASE + 9

Definition at line 696 of file cmtdef.h.

#define SMT_E0109_MSG   "ST2U.FM_SERRSF error in special frame"

Definition at line 697 of file cmtdef.h.

#define SMT_E0110   SMT_EBASE + 10

Definition at line 698 of file cmtdef.h.

#define SMT_E0110_MSG   "ST2U.FM_SRFRCTOV recv. count. overflow"

Definition at line 699 of file cmtdef.h.

#define SMT_E0111   SMT_EBASE + 11

Definition at line 700 of file cmtdef.h.

#define SMT_E0111_MSG   "ST2U.FM_SNFSLD NP & FORMAC simult. load"

Definition at line 701 of file cmtdef.h.

#define SMT_E0112   SMT_EBASE + 12

Definition at line 702 of file cmtdef.h.

#define SMT_E0112_MSG   "ST2U.FM_SRCVFRM single-frame recv.-mode"

Definition at line 703 of file cmtdef.h.

#define SMT_E0113   SMT_EBASE + 13

Definition at line 704 of file cmtdef.h.

#define SMT_E0113_MSG   "FPLUS: Buffer Memory Error"

Definition at line 705 of file cmtdef.h.

#define SMT_E0114   SMT_EBASE + 14

Definition at line 706 of file cmtdef.h.

#define SMT_E0114_MSG   "ST2U.FM_SERRSF error in special frame"

Definition at line 707 of file cmtdef.h.

#define SMT_E0115   SMT_EBASE + 15

Definition at line 708 of file cmtdef.h.

#define SMT_E0115_MSG   "ST3L: parity error in receive queue 2"

Definition at line 709 of file cmtdef.h.

#define SMT_E0116   SMT_EBASE + 16

Definition at line 710 of file cmtdef.h.

#define SMT_E0116_MSG   "ST3L: parity error in receive queue 1"

Definition at line 711 of file cmtdef.h.

#define SMT_E0117   SMT_EBASE + 17

Definition at line 712 of file cmtdef.h.

#define SMT_E0117_MSG   "E_SMT_001: RxD count for receive queue 1 = 0"

Definition at line 713 of file cmtdef.h.

#define SMT_E0118   SMT_EBASE + 18

Definition at line 714 of file cmtdef.h.

#define SMT_E0118_MSG   "PCM : invalid state"

Definition at line 715 of file cmtdef.h.

#define SMT_E0119   SMT_EBASE + 19

Definition at line 716 of file cmtdef.h.

#define SMT_E0119_MSG   "smt_add_para"

Definition at line 717 of file cmtdef.h.

#define SMT_E0120   SMT_EBASE + 20

Definition at line 718 of file cmtdef.h.

#define SMT_E0120_MSG   "smt_set_para"

Definition at line 719 of file cmtdef.h.

#define SMT_E0121   SMT_EBASE + 21

Definition at line 720 of file cmtdef.h.

#define SMT_E0121_MSG   "invalid event in dispatcher"

Definition at line 721 of file cmtdef.h.

#define SMT_E0122   SMT_EBASE + 22

Definition at line 722 of file cmtdef.h.

#define SMT_E0122_MSG   "RMT : invalid state"

Definition at line 723 of file cmtdef.h.

#define SMT_E0123   SMT_EBASE + 23

Definition at line 724 of file cmtdef.h.

#define SMT_E0123_MSG   "SBA: state machine has invalid state"

Definition at line 725 of file cmtdef.h.

#define SMT_E0124   SMT_EBASE + 24

Definition at line 726 of file cmtdef.h.

#define SMT_E0124_MSG   "sba_free_session() called with NULL pointer"

Definition at line 727 of file cmtdef.h.

#define SMT_E0125   SMT_EBASE + 25

Definition at line 728 of file cmtdef.h.

#define SMT_E0125_MSG   "SBA : invalid session pointer"

Definition at line 729 of file cmtdef.h.

#define SMT_E0126   SMT_EBASE + 26

Definition at line 730 of file cmtdef.h.

#define SMT_E0126_MSG   "smt_free_mbuf() called with NULL pointer\n"

Definition at line 731 of file cmtdef.h.

#define SMT_E0127   SMT_EBASE + 27

Definition at line 732 of file cmtdef.h.

#define SMT_E0127_MSG   "sizeof evcs"

Definition at line 733 of file cmtdef.h.

#define SMT_E0128   SMT_EBASE + 28

Definition at line 734 of file cmtdef.h.

#define SMT_E0128_MSG   "evc->evc_cond_state = 0"

Definition at line 735 of file cmtdef.h.

#define SMT_E0129   SMT_EBASE + 29

Definition at line 736 of file cmtdef.h.

#define SMT_E0129_MSG   "evc->evc_multiple = 0"

Definition at line 737 of file cmtdef.h.

#define SMT_E0130   SMT_EBASE + 30

Definition at line 738 of file cmtdef.h.

#define SMT_E0130_MSG   write_mdr_warning

Definition at line 739 of file cmtdef.h.

#define SMT_E0131   SMT_EBASE + 31

Definition at line 740 of file cmtdef.h.

#define SMT_E0131_MSG   cam_warning

Definition at line 741 of file cmtdef.h.

#define SMT_E0132   SMT_EBASE + 32

Definition at line 742 of file cmtdef.h.

#define SMT_E0132_MSG   "ST1L.FM_SPCEPDx parity/coding error"

Definition at line 743 of file cmtdef.h.

#define SMT_E0133   SMT_EBASE + 33

Definition at line 744 of file cmtdef.h.

#define SMT_E0133_MSG   "ST1L.FM_STBURx tx buffer underrun"

Definition at line 745 of file cmtdef.h.

#define SMT_E0134   SMT_EBASE + 34

Definition at line 746 of file cmtdef.h.

#define SMT_E0134_MSG   "ST1L.FM_SPCEPDx parity error"

Definition at line 747 of file cmtdef.h.

#define SMT_E0135   SMT_EBASE + 35

Definition at line 748 of file cmtdef.h.

#define SMT_E0135_MSG   "RMT: duplicate MAC address detected. Ring left!"

Definition at line 749 of file cmtdef.h.

#define SMT_E0136   SMT_EBASE + 36

Definition at line 750 of file cmtdef.h.

#define SMT_E0136_MSG   "Elasticity Buffer hang-up"

Definition at line 751 of file cmtdef.h.

#define SMT_E0137   SMT_EBASE + 37

Definition at line 752 of file cmtdef.h.

#define SMT_E0137_MSG   "SMT: queue overrun"

Definition at line 753 of file cmtdef.h.

#define SMT_E0138   SMT_EBASE + 38

Definition at line 754 of file cmtdef.h.

#define SMT_E0138_MSG   "RMT: duplicate MAC address detected. Ring NOT left!"

Definition at line 755 of file cmtdef.h.

#define SMT_EBASE   100

Definition at line 675 of file cmtdef.h.

#define SMT_ERR_LOG (   smc,
  nr,
  msg 
)    SMT_PANIC (smc, nr, msg)

Definition at line 671 of file cmtdef.h.

#define SMT_PANIC (   smc,
  nr,
  msg 
)    smt_panic (smc, msg)

Definition at line 667 of file cmtdef.h.

#define TA   0 /* A port */

Definition at line 121 of file cmtdef.h.

#define TB   1 /* B port */

Definition at line 122 of file cmtdef.h.

#define TM   3 /* M port */

Definition at line 124 of file cmtdef.h.

#define TNONE   4

Definition at line 125 of file cmtdef.h.

#define TS   2 /* S port */

Definition at line 123 of file cmtdef.h.

Function Documentation

int cem_build_path ( struct s_smc smc,
char to,
int  path_index 
)

Definition at line 594 of file cfm.c.

void cfm ( struct s_smc smc,
int  event 
)

Definition at line 213 of file cfm.c.

int cfm_get_mac_input ( struct s_smc smc)

Definition at line 543 of file cfm.c.

int cfm_get_mac_output ( struct s_smc smc)

Definition at line 554 of file cfm.c.

void cfm_init ( struct s_smc smc)

Definition at line 105 of file cfm.c.

void cfm_state_change ( struct s_smc smc,
int  c_state 
)

Definition at line 2069 of file skfddi.c.

void config_mux ( struct s_smc smc,
int  mux 
)

Definition at line 999 of file fplustm.c.

void driver_get_bia ( struct s_smc smc,
struct fddi_addr bia_addr 
)

Definition at line 540 of file drvfbi.c.

void ecm ( struct s_smc smc,
int  event 
)

Definition at line 124 of file ecm.c.

void ecm_init ( struct s_smc smc)

Definition at line 106 of file ecm.c.

void ecm_state_change ( struct s_smc smc,
int  e_state 
)

Definition at line 2127 of file skfddi.c.

void ev_dispatcher ( struct s_smc smc)

Definition at line 73 of file queue.c.

void ev_init ( struct s_smc smc)

Definition at line 34 of file queue.c.

void formac_reinit_tx ( struct s_smc smc)

Definition at line 1480 of file fplustm.c.

void formac_tx_restart ( struct s_smc smc)

Definition at line 543 of file fplustm.c.

char* get_pcmstate ( struct s_smc smc,
int  np 
)
void hwt_init ( struct s_smc smc)

Definition at line 123 of file hwt.c.

u_long hwt_read ( struct s_smc smc)

Definition at line 164 of file hwt.c.

void hwt_restart ( struct s_smc smc)

Definition at line 146 of file hwt.c.

void hwt_start ( struct s_smc smc,
u_long  time 
)

Definition at line 63 of file hwt.c.

void hwt_stop ( struct s_smc smc)

Definition at line 101 of file hwt.c.

void init_driver_fplus ( struct s_smc smc)

Definition at line 309 of file hwmtm.c.

void llc_recover_tx ( struct s_smc smc)

Definition at line 465 of file drvfbi.c.

void llc_restart_tx ( struct s_smc smc)

Definition at line 1277 of file skfddi.c.

int mac_add_multicast ( struct s_smc smc,
struct fddi_addr addr,
int  can 
)

Definition at line 1145 of file fplustm.c.

void mac_clear_multicast ( struct s_smc smc)

Definition at line 1103 of file fplustm.c.

void mac_set_rx_mode ( struct s_smc smc,
int  mode 
)

Definition at line 1275 of file fplustm.c.

void mac_update_counter ( struct s_smc smc)

Definition at line 119 of file fplustm.c.

void mac_update_multicast ( struct s_smc smc)

Definition at line 1199 of file fplustm.c.

void pcm ( struct s_smc smc,
const int  np,
int  event 
)

Definition at line 595 of file pcmplc.c.

int pcm_get_s_port ( struct s_smc smc)

Definition at line 267 of file drvfbi.c.

void pcm_get_state ( struct s_smc smc,
struct smt_state state 
)
void pcm_init ( struct s_smc smc)

Definition at line 237 of file pcmplc.c.

int pcm_rooted_station ( struct s_smc smc)

Definition at line 1632 of file pcmplc.c.

void pcm_state_change ( struct s_smc smc,
int  plc,
int  p_state 
)

Definition at line 440 of file drvfbi.c.

void pcm_status_state ( struct s_smc smc,
int  np,
int type,
int state,
int remote,
int mac 
)

Definition at line 1608 of file pcmplc.c.

void plc_clear_irq ( struct s_smc smc,
int  p 
)

Definition at line 372 of file drvfbi.c.

void plc_config_mux ( struct s_smc smc,
int  mux 
)

Definition at line 571 of file pcmplc.c.

void plc_irq ( struct s_smc smc,
int  np,
unsigned int  cmd 
)

Definition at line 1647 of file pcmplc.c.

void process_receive ( struct s_smc smc)

Definition at line 1041 of file hwmtm.c.

void queue_event ( struct s_smc smc,
int  class,
int  event 
)

Definition at line 42 of file queue.c.

void ring_status_indication ( struct s_smc smc,
u_long  status 
)

Definition at line 1959 of file skfddi.c.

void rmt ( struct s_smc smc,
int  event 
)

Definition at line 147 of file rmt.c.

void rmt_indication ( struct s_smc smc,
int  i 
)

Definition at line 453 of file drvfbi.c.

void rmt_init ( struct s_smc smc)

Definition at line 125 of file rmt.c.

void rmt_state_change ( struct s_smc smc,
int  r_state 
)

Definition at line 2182 of file skfddi.c.

void rtm_irq ( struct s_smc smc)

Definition at line 1331 of file fplustm.c.

void rtm_set_timer ( struct s_smc smc)

Definition at line 1350 of file fplustm.c.

void set_formac_tsync ( struct s_smc smc,
long  sync_bw 
)

Definition at line 297 of file fplustm.c.

void sm_lem_evaluate ( struct s_smc smc)

Definition at line 1177 of file pcmplc.c.

void sm_ma_control ( struct s_smc smc,
int  mode 
)

Definition at line 1026 of file fplustm.c.

void sm_mac_check_beacon_claim ( struct s_smc smc)

Definition at line 1013 of file fplustm.c.

int sm_mac_get_tx_state ( struct s_smc smc)

Definition at line 1050 of file fplustm.c.

int sm_pm_bypass_present ( struct s_smc smc)

Definition at line 367 of file drvfbi.c.

void sm_pm_bypass_req ( struct s_smc smc,
int  mode 
)

Definition at line 344 of file drvfbi.c.

int sm_pm_get_ls ( struct s_smc smc,
int  phy 
)

Definition at line 501 of file pcmplc.c.

void sm_pm_ls_latch ( struct s_smc smc,
int  phy,
int  on_off 
)

Definition at line 1256 of file pcmplc.c.

void* sm_to_para ( struct s_smc smc,
struct smt_header sm,
int  para 
)

Definition at line 1664 of file smt.c.

int smt_action ( struct s_smc smc,
int  class,
int  code,
int  index 
)

Definition at line 1948 of file smt.c.

void smt_add_para ( struct s_smc smc,
struct s_pcon pcon,
u_short  para,
int  index,
int  local 
)

Definition at line 550 of file pmf.c.

void smt_agent_init ( struct s_smc smc)

Definition at line 156 of file smt.c.

void smt_agent_task ( struct s_smc smc)

Definition at line 202 of file smt.c.

SMbuf* smt_build_frame ( struct s_smc smc,
int  class,
int  type,
int  length 
)

Definition at line 1106 of file smt.c.

int smt_check_para ( struct s_smc smc,
struct smt_header sm,
const u_short  list[] 
)

Definition at line 1650 of file smt.c.

void smt_emulate_token_ct ( struct s_smc smc,
int  mac_index 
)

Definition at line 210 of file smt.c.

void smt_event ( struct s_smc smc,
int  event 
)

Definition at line 237 of file smt.c.

void smt_fixup_mib ( struct s_smc smc)

Definition at line 309 of file smtdef.c.

void smt_force_irq ( struct s_smc smc)

Definition at line 110 of file smttimer.c.

void smt_free_mbuf ( struct s_smc smc,
SMbuf mb 
)

Definition at line 508 of file hwmtm.c.

SMbuf * smt_get_mbuf ( struct s_smc smc)

Definition at line 486 of file hwmtm.c.

u_long smt_get_tid ( struct s_smc smc)

Definition at line 1561 of file smt.c.

u_long smt_get_time ( void  )

Definition at line 2013 of file skfddi.c.

void smt_init_evc ( struct s_smc smc)

Definition at line 72 of file srf.c.

u_short smt_online ( struct s_smc smc,
int  on 
)

Definition at line 127 of file queue.c.

void smt_panic ( struct s_smc smc,
char text 
)
void smt_pmf_received_pack ( struct s_smc smc,
SMbuf mb,
int  local 
)

Definition at line 281 of file pmf.c.

void smt_received_pack ( struct s_smc smc,
SMbuf mb,
int  fs 
)

Definition at line 469 of file smt.c.

void smt_reset_defaults ( struct s_smc smc,
int  level 
)

Definition at line 82 of file smtdef.c.

void smt_send_frame ( struct s_smc smc,
SMbuf mb,
int  fc,
int  local 
)

Definition at line 833 of file smt.c.

void smt_send_mbuf ( struct s_smc smc,
SMbuf mb,
int  fc 
)

Definition at line 1806 of file hwmtm.c.

int smt_set_mac_opvalues ( struct s_smc smc)

Definition at line 284 of file smtdef.c.

void smt_set_timestamp ( struct s_smc smc,
u_char p 
)

Definition at line 1229 of file smt.c.

void smt_srf_event ( struct s_smc smc,
int  code,
int  index,
int  cond 
)

Definition at line 187 of file srf.c.

void smt_start_watchdog ( struct s_smc smc)

Definition at line 548 of file drvfbi.c.

void smt_stat_counter ( struct s_smc smc,
int  stat 
)

Definition at line 2033 of file skfddi.c.

void smt_swap_para ( struct smt_header sm,
int  len,
int  direction 
)

Definition at line 1936 of file smt.c.

void smt_timer_done ( struct s_smc smc)

Definition at line 115 of file smttimer.c.

void smt_timer_init ( struct s_smc smc)

Definition at line 31 of file smttimer.c.

void smt_timer_poll ( struct s_smc smc)

Definition at line 1941 of file skfddi.c.

void smt_timer_start ( struct s_smc smc,
struct smt_timer timer,
u_long  time,
u_long  token 
)

Definition at line 62 of file smttimer.c.

void smt_timer_stop ( struct s_smc smc,
struct smt_timer timer 
)

Definition at line 39 of file smttimer.c.

void timer_event ( struct s_smc smc,
u_long  token 
)

Definition at line 58 of file queue.c.