Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
gen_bd.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <asm/errno.h>
#include <asm/io.h>
#include <asm/mpc52xx.h>
#include <asm/mpc52xx_psc.h>
#include "bestcomm.h"
#include "bestcomm_priv.h"
#include "gen_bd.h"

Go to the source code of this file.

Data Structures

struct  bcom_gen_bd_rx_var
 
struct  bcom_gen_bd_rx_inc
 
struct  bcom_gen_bd_tx_var
 
struct  bcom_gen_bd_tx_inc
 
struct  bcom_gen_bd_priv
 
struct  bcom_psc_params
 

Functions

struct bcom_taskbcom_gen_bd_rx_init (int queue_len, phys_addr_t fifo, int initiator, int ipr, int maxbufsize)
 
 EXPORT_SYMBOL_GPL (bcom_gen_bd_rx_init)
 
int bcom_gen_bd_rx_reset (struct bcom_task *tsk)
 
 EXPORT_SYMBOL_GPL (bcom_gen_bd_rx_reset)
 
void bcom_gen_bd_rx_release (struct bcom_task *tsk)
 
 EXPORT_SYMBOL_GPL (bcom_gen_bd_rx_release)
 
struct bcom_taskbcom_gen_bd_tx_init (int queue_len, phys_addr_t fifo, int initiator, int ipr)
 
 EXPORT_SYMBOL_GPL (bcom_gen_bd_tx_init)
 
int bcom_gen_bd_tx_reset (struct bcom_task *tsk)
 
 EXPORT_SYMBOL_GPL (bcom_gen_bd_tx_reset)
 
void bcom_gen_bd_tx_release (struct bcom_task *tsk)
 
 EXPORT_SYMBOL_GPL (bcom_gen_bd_tx_release)
 
struct bcom_taskbcom_psc_gen_bd_rx_init (unsigned psc_num, int queue_len, phys_addr_t fifo, int maxbufsize)
 
 EXPORT_SYMBOL_GPL (bcom_psc_gen_bd_rx_init)
 
struct bcom_taskbcom_psc_gen_bd_tx_init (unsigned psc_num, int queue_len, phys_addr_t fifo)
 
 EXPORT_SYMBOL_GPL (bcom_psc_gen_bd_tx_init)
 
 MODULE_DESCRIPTION ("BestComm General Buffer Descriptor tasks driver")
 
 MODULE_AUTHOR ("Jeff Gibbons <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 

Variables

u32 bcom_gen_bd_rx_task []
 
u32 bcom_gen_bd_tx_task []
 

Function Documentation

struct bcom_task* bcom_gen_bd_rx_init ( int  queue_len,
phys_addr_t  fifo,
int  initiator,
int  ipr,
int  maxbufsize 
)
read

Definition at line 89 of file gen_bd.c.

void bcom_gen_bd_rx_release ( struct bcom_task tsk)

Definition at line 165 of file gen_bd.c.

int bcom_gen_bd_rx_reset ( struct bcom_task tsk)

Definition at line 118 of file gen_bd.c.

struct bcom_task* bcom_gen_bd_tx_init ( int  queue_len,
phys_addr_t  fifo,
int  initiator,
int  ipr 
)
read

Definition at line 174 of file gen_bd.c.

void bcom_gen_bd_tx_release ( struct bcom_task tsk)

Definition at line 249 of file gen_bd.c.

int bcom_gen_bd_tx_reset ( struct bcom_task tsk)

Definition at line 202 of file gen_bd.c.

struct bcom_task* bcom_psc_gen_bd_rx_init ( unsigned  psc_num,
int  queue_len,
phys_addr_t  fifo,
int  maxbufsize 
)
read

bcom_psc_gen_bd_rx_init - Allocate a receive bcom_task for a PSC port : Number of the PSC to allocate a task for : number of buffer descriptors to allocate for the task : physical address of FIFO register : Maximum receive data size in bytes.

Allocate a bestcomm task structure for receiving data from a PSC.

Definition at line 319 of file gen_bd.c.

struct bcom_task* bcom_psc_gen_bd_tx_init ( unsigned  psc_num,
int  queue_len,
phys_addr_t  fifo 
)
read

bcom_psc_gen_bd_tx_init - Allocate a transmit bcom_task for a PSC port : Number of the PSC to allocate a task for : number of buffer descriptors to allocate for the task : physical address of FIFO register

Allocate a bestcomm task structure for transmitting data to a PSC.

Definition at line 341 of file gen_bd.c.

EXPORT_SYMBOL_GPL ( bcom_gen_bd_rx_init  )
EXPORT_SYMBOL_GPL ( bcom_gen_bd_rx_reset  )
EXPORT_SYMBOL_GPL ( bcom_gen_bd_rx_release  )
EXPORT_SYMBOL_GPL ( bcom_gen_bd_tx_init  )
EXPORT_SYMBOL_GPL ( bcom_gen_bd_tx_reset  )
EXPORT_SYMBOL_GPL ( bcom_gen_bd_tx_release  )
EXPORT_SYMBOL_GPL ( bcom_psc_gen_bd_rx_init  )
EXPORT_SYMBOL_GPL ( bcom_psc_gen_bd_tx_init  )
MODULE_AUTHOR ( "Jeff Gibbons <[email protected]>"  )
MODULE_DESCRIPTION ( "BestComm General Buffer Descriptor tasks driver )
MODULE_LICENSE ( "GPL v2 )

Variable Documentation

u32 bcom_gen_bd_rx_task[]

Definition at line 31 of file bcom_gen_bd_rx_task.c.

u32 bcom_gen_bd_tx_task[]

Definition at line 31 of file bcom_gen_bd_tx_task.c.