Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
musycc.c File Reference
#include <linux/types.h>
#include "pmcc4_sysdep.h"
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include "sbecom_inline_linux.h"
#include "libsbew.h"
#include "pmcc4_private.h"
#include "pmcc4.h"
#include "musycc.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define STATIC   static
 
#define sd_find_chan(ci, ch)   c4_find_chan(ch)
 
#define MUSYCC_SR_RETRY_CNT   9
 
#define INT_QUEUE_BOUNDARY   4
 
#define GROUP_BOUNDARY   0x800
 

Functions

void c4_fifo_free (mpi_t *, int)
 
void c4_wk_chan_restart (mch_t *)
 
void musycc_bh_tx_eom (mpi_t *, int)
 
int musycc_chan_up (ci_t *, int)
 
status_t __init musycc_init (ci_t *)
 
STATIC void __init musycc_init_port (mpi_t *)
 
void musycc_intr_bh_tasklet (ci_t *)
 
void musycc_serv_req (mpi_t *, u_int32_t)
 
void musycc_update_timeslots (mpi_t *)
 
STATIC int musycc_dump_rxbuffer_ring (mch_t *ch, int lockit)
 
STATIC int musycc_dump_txbuffer_ring (mch_t *ch, int lockit)
 
status_t musycc_dump_ring (ci_t *ci, unsigned int chan)
 
status_t musycc_dump_rings (ci_t *ci, unsigned int start_chan)
 
void musycc_init_mdt (mpi_t *pi)
 
void musycc_update_tx_thp (mch_t *ch)
 
void musycc_wq_chan_restart (void *arg)
 
void musycc_chan_restart (mch_t *ch)
 
void rld_put_led (mpi_t *pi, u_int32_t ledval)
 
u_int32_t musycc_chan_proto (int proto)
 
STATIC void musycc_bh_rx_eom (mpi_t *pi, int gchan)
 
irqreturn_t musycc_intr_th_handler (void *devp)
 
int musycc_del_chan (ci_t *ci, int channum)
 
int musycc_del_chan_stats (ci_t *ci, int channum)
 
int musycc_start_xmit (ci_t *ci, int channum, void *mem_token)
 

Variables

unsigned int max_intcnt = 0
 
unsigned int max_bh = 0
 
ci_tc4_list
 
int drvr_state
 
int cxt1e1_log_level
 
int cxt1e1_max_mru
 
int cxt1e1_max_mtu
 
int max_rxdesc_used
 
int max_txdesc_used
 
ci_tCI
 

Macro Definition Documentation

#define GROUP_BOUNDARY   0x800
#define INT_QUEUE_BOUNDARY   4
#define MUSYCC_SR_RETRY_CNT   9

Definition at line 507 of file musycc.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 25 of file musycc.c.

#define sd_find_chan (   ci,
  ch 
)    c4_find_chan(ch)

Definition at line 44 of file musycc.c.

#define STATIC   static

Definition at line 41 of file musycc.c.

Function Documentation

void c4_fifo_free ( mpi_t ,
int   
)

Definition at line 1224 of file pmcc4_drv.c.

void c4_wk_chan_restart ( mch_t )

queue_work (struct workqueue_struct *queue, struct work_struct *work);

Definition at line 188 of file linux.c.

STATIC void musycc_bh_rx_eom ( mpi_t pi,
int  gchan 
)

Definition at line 1081 of file musycc.c.

void musycc_bh_tx_eom ( mpi_t pi,
int  gchan 
)

Definition at line 889 of file musycc.c.

u_int32_t musycc_chan_proto ( int  proto)

Definition at line 726 of file musycc.c.

void musycc_chan_restart ( mch_t ch)

Definition at line 476 of file musycc.c.

int musycc_chan_up ( ci_t ,
int   
)
int musycc_del_chan ( ci_t ci,
int  channum 
)

Definition at line 1721 of file musycc.c.

int musycc_del_chan_stats ( ci_t ci,
int  channum 
)

Definition at line 1737 of file musycc.c.

status_t musycc_dump_ring ( ci_t ci,
unsigned int  chan 
)

Definition at line 223 of file musycc.c.

status_t musycc_dump_rings ( ci_t ci,
unsigned int  start_chan 
)

Definition at line 269 of file musycc.c.

STATIC int musycc_dump_rxbuffer_ring ( mch_t ch,
int  lockit 
)

Definition at line 77 of file musycc.c.

STATIC int musycc_dump_txbuffer_ring ( mch_t ch,
int  lockit 
)

Definition at line 150 of file musycc.c.

status_t __init musycc_init ( ci_t ci)

Definition at line 787 of file musycc.c.

void musycc_init_mdt ( mpi_t pi)

Definition at line 285 of file musycc.c.

STATIC void __init musycc_init_port ( mpi_t )
void musycc_intr_bh_tasklet ( ci_t ci)

Definition at line 1323 of file musycc.c.

irqreturn_t musycc_intr_th_handler ( void devp)

Definition at line 1172 of file musycc.c.

void musycc_serv_req ( mpi_t pi,
u_int32_t  req 
)

Definition at line 510 of file musycc.c.

int musycc_start_xmit ( ci_t ci,
int  channum,
void mem_token 
)

Determine total amount of data to be sent

Are there sufficient descriptors available?

flow control the line if not enough descriptors remain

Put the user data into MUSYCC data buffer(s)

Definition at line 1752 of file musycc.c.

void musycc_update_timeslots ( mpi_t )
void musycc_update_tx_thp ( mch_t ch)

Definition at line 311 of file musycc.c.

void musycc_wq_chan_restart ( void arg)

check for RX restart request

check for TX restart request

Definition at line 369 of file musycc.c.

void rld_put_led ( mpi_t pi,
u_int32_t  ledval 
)

Definition at line 494 of file musycc.c.

Variable Documentation

ci_t* c4_list

Definition at line 80 of file pmcc4_drv.c.

ci_t* CI

Read some reserved location w/in the COMET chip as a usable VMETRO trigger point or other trace marking event.

Definition at line 81 of file pmcc4_drv.c.

int cxt1e1_log_level

Definition at line 112 of file linux.c.

int cxt1e1_max_mru

Definition at line 116 of file linux.c.

int cxt1e1_max_mtu

Definition at line 120 of file linux.c.

int drvr_state

Definition at line 79 of file pmcc4_drv.c.

unsigned int max_bh = 0

Definition at line 2 of file musycc.c.

unsigned int max_intcnt = 0

Definition at line 1 of file musycc.c.

int max_rxdesc_used

Definition at line 128 of file linux.c.

int max_txdesc_used

Definition at line 124 of file linux.c.