Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
smt.c File Reference
#include "h/types.h"
#include "h/fddi.h"
#include "h/smc.h"
#include "h/smt_p.h"
#include <linux/bitrev.h>
#include <linux/kernel.h>
#include "h/smtstate.h"

Go to the source code of this file.

Data Structures

struct  smt_pdef
 

Macros

#define KERNEL
 
#define m_fc(mb)   ((mb)->sm_data[0])
 
#define SMT_TID_MAGIC   0x1f0a7b3c
 
#define LAST_CLASS   (SMT_PMF_SET)
 
#define hwm_conv_can(smc, data, len)
 
#define ALLPHYS   ((smc->s.sas == SMT_SAS) ? 1 : 2)
 
#define N_SMT_PLEN   ARRAY_SIZE(smt_pdef)
 

Functions

void smt_agent_init (struct s_smc *smc)
 
void smt_agent_task (struct s_smc *smc)
 
void smt_emulate_token_ct (struct s_smc *smc, int mac_index)
 
void smt_event (struct s_smc *smc, int event)
 
void smt_received_pack (struct s_smc *smc, SMbuf *mb, int fs)
 
void smt_send_frame (struct s_smc *smc, SMbuf *mb, int fc, int local)
 
SMbufsmt_build_frame (struct s_smc *smc, int class, int type, int length)
 
void smt_set_timestamp (struct s_smc *smc, u_char *p)
 
u_long smt_get_tid (struct s_smc *smc)
 
int smt_check_para (struct s_smc *smc, struct smt_header *sm, const u_short list[])
 
voidsm_to_para (struct s_smc *smc, struct smt_header *sm, int para)
 
void smt_swap_para (struct smt_header *sm, int len, int direction)
 
int smt_action (struct s_smc *smc, int class, int code, int index)
 

Macro Definition Documentation

#define ALLPHYS   ((smc->s.sas == SMT_SAS) ? 1 : 2)

Definition at line 1333 of file smt.c.

#define hwm_conv_can (   smc,
  data,
  len 
)

Definition at line 113 of file smt.c.

#define KERNEL

Definition at line 24 of file smt.c.

#define LAST_CLASS   (SMT_PMF_SET)

Definition at line 51 of file smt.c.

#define m_fc (   mb)    ((mb)->sm_data[0])

Definition at line 34 of file smt.c.

#define N_SMT_PLEN   ARRAY_SIZE(smt_pdef)

Definition at line 1648 of file smt.c.

#define SMT_TID_MAGIC   0x1f0a7b3c

Definition at line 36 of file smt.c.

Function Documentation

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_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.

u_long smt_get_tid ( struct s_smc smc)

Definition at line 1561 of file smt.c.

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

Definition at line 469 of file smt.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_set_timestamp ( struct s_smc smc,
u_char p 
)

Definition at line 1229 of file smt.c.

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

Definition at line 1936 of file smt.c.