Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hwmtm.c File Reference
#include "h/types.h"
#include "h/fddi.h"
#include "h/smc.h"
#include "h/supern_2.h"
#include "h/skfbiinc.h"

Go to the source code of this file.

Macros

#define HWMTM
 
#define FDDI
 
#define UNUSED(x)
 
#define MA   smc->hw.fddi_home_addr.a
 
#define GROUP_ADDR_BIT   0x80
 
#define RXD_TXD_COUNT
 
#define EXT_VIRT_MEM   ((RXD_TXD_COUNT+1)*sizeof(struct s_smt_fp_txd))
 
#define CR_READ(var)   (__le32)(var)
 
#define IMASK_SLOW
 

Functions

voidmac_drv_get_space (struct s_smc *smc, unsigned int size)
 
voidmac_drv_get_desc_mem (struct s_smc *smc, unsigned int size)
 
void mac_drv_fill_rxd (struct s_smc *smc)
 
void mac_drv_tx_complete (struct s_smc *smc, volatile struct s_smt_fp_txd *txd)
 
void mac_drv_rx_complete (struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, int frag_count, int len)
 
void mac_drv_requeue_rxd (struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, int frag_count)
 
void mac_drv_clear_rxd (struct s_smc *smc, volatile struct s_smt_fp_rxd *rxd, int frag_count)
 
u_long mac_drv_virt2phys (struct s_smc *smc, void *virt)
 
u_long dma_master (struct s_smc *smc, void *virt, int len, int flag)
 
void dma_complete (struct s_smc *smc, volatile union s_fp_descr *descr, int flag)
 
int mac_drv_rx_init (struct s_smc *smc, int len, int fc, char *look_ahead, int la_len)
 
void process_receive (struct s_smc *smc)
 
void fddi_isr (struct s_smc *smc)
 
void smt_free_mbuf (struct s_smc *smc, SMbuf *mb)
 
void init_driver_fplus (struct s_smc *smc)
 
void mac_drv_rx_mode (struct s_smc *smc, int mode)
 
void init_fddi_driver (struct s_smc *smc, u_char *mac_addr)
 
void mac_drv_clear_tx_queue (struct s_smc *smc)
 
void mac_drv_clear_rx_queue (struct s_smc *smc)
 
void hwm_tx_frag (struct s_smc *smc, char far *virt, u_long phys, int len, int frame_status)
 
void hwm_rx_frag (struct s_smc *smc, char far *virt, u_long phys, int len, int frame_status)
 
int mac_drv_init (struct s_smc *smc)
 
int hwm_tx_init (struct s_smc *smc, u_char fc, int frag_count, int frame_len, int frame_status)
 
u_int mac_drv_check_space (void)
 
SMbufsmt_get_mbuf (struct s_smc *smc)
 
void mac_drv_repair_descr (struct s_smc *smc)
 
void smt_send_mbuf (struct s_smc *smc, SMbuf *mb, int fc)
 

Macro Definition Documentation

#define CR_READ (   var)    (__le32)(var)

Definition at line 202 of file hwmtm.c.

#define EXT_VIRT_MEM   ((RXD_TXD_COUNT+1)*sizeof(struct s_smt_fp_txd))

Definition at line 193 of file hwmtm.c.

#define FDDI

Definition at line 24 of file hwmtm.c.

#define GROUP_ADDR_BIT   0x80

Definition at line 182 of file hwmtm.c.

#define HWMTM

Definition at line 21 of file hwmtm.c.

#define IMASK_SLOW
Value:
(IS_PLINT1 | IS_PLINT2 | IS_TIMINT | IS_TOKEN | \
IS_MINTR1 | IS_MINTR2 | IS_MINTR3 | IS_R1_P | \
IS_R1_C | IS_XA_C | IS_XS_C)

Definition at line 205 of file hwmtm.c.

#define MA   smc->hw.fddi_home_addr.a

Definition at line 181 of file hwmtm.c.

#define RXD_TXD_COUNT
Value:

Definition at line 185 of file hwmtm.c.

#define UNUSED (   x)

Definition at line 173 of file hwmtm.c.

Function Documentation

void dma_complete ( struct s_smc smc,
volatile union s_fp_descr descr,
int  flag 
)

Definition at line 1448 of file skfddi.c.

u_long dma_master ( struct s_smc smc,
void virt,
int  len,
int  flag 
)
void fddi_isr ( struct s_smc smc)

Definition at line 709 of file hwmtm.c.

void hwm_rx_frag ( struct s_smc smc,
char far virt,
u_long  phys,
int  len,
int  frame_status 
)

Definition at line 1415 of file hwmtm.c.

void hwm_tx_frag ( struct s_smc smc,
char far virt,
u_long  phys,
int  len,
int  frame_status 
)

Definition at line 1628 of file hwmtm.c.

int hwm_tx_init ( struct s_smc smc,
u_char  fc,
int  frag_count,
int  frame_len,
int  frame_status 
)

Definition at line 1550 of file hwmtm.c.

void init_driver_fplus ( struct s_smc smc)

Definition at line 309 of file hwmtm.c.

void init_fddi_driver ( struct s_smc smc,
u_char mac_addr 
)

Definition at line 422 of file hwmtm.c.

u_int mac_drv_check_space ( void  )

Definition at line 229 of file hwmtm.c.

void mac_drv_clear_rx_queue ( struct s_smc smc)

Definition at line 1463 of file hwmtm.c.

void mac_drv_clear_rxd ( struct s_smc smc,
volatile struct s_smt_fp_rxd rxd,
int  frag_count 
)

Definition at line 1837 of file skfddi.c.

void mac_drv_clear_tx_queue ( struct s_smc smc)

Definition at line 2031 of file hwmtm.c.

void mac_drv_fill_rxd ( struct s_smc smc)

Definition at line 1770 of file skfddi.c.

void * mac_drv_get_desc_mem ( struct s_smc smc,
unsigned int  size 
)

Definition at line 1347 of file skfddi.c.

void * mac_drv_get_space ( struct s_smc smc,
unsigned int  size 
)

Definition at line 1307 of file skfddi.c.

int mac_drv_init ( struct s_smc smc)

Definition at line 259 of file hwmtm.c.

void mac_drv_repair_descr ( struct s_smc smc)

Definition at line 554 of file hwmtm.c.

void mac_drv_requeue_rxd ( struct s_smc smc,
volatile struct s_smt_fp_rxd rxd,
int  frag_count 
)

Definition at line 1693 of file skfddi.c.

void mac_drv_rx_complete ( struct s_smc smc,
volatile struct s_smt_fp_rxd rxd,
int  frag_count,
int  len 
)

Definition at line 1574 of file skfddi.c.

int mac_drv_rx_init ( struct s_smc smc,
int  len,
int  fc,
char look_ahead,
int  la_len 
)

Definition at line 1894 of file skfddi.c.

void mac_drv_rx_mode ( struct s_smc smc,
int  mode 
)

Definition at line 992 of file hwmtm.c.

void mac_drv_tx_complete ( struct s_smc smc,
volatile struct s_smt_fp_txd txd 
)

Definition at line 1492 of file skfddi.c.

unsigned long mac_drv_virt2phys ( struct s_smc smc,
void virt 
)

Definition at line 1385 of file skfddi.c.

void process_receive ( struct s_smc smc)

Definition at line 1041 of file hwmtm.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.

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

Definition at line 1806 of file hwmtm.c.