Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
bf5xx-sport.h File Reference
#include <linux/types.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
#include <linux/platform_device.h>
#include <asm/dma.h>
#include <asm/bfin_sport.h>

Go to the source code of this file.

Data Structures

struct  sport_device
 
struct  sport_param
 

Macros

#define DESC_ELEMENT_COUNT   9
 

Functions

struct sport_devicesport_init (struct platform_device *pdev, unsigned int wdsize, unsigned int dummy_count, size_t priv_size)
 
void sport_done (struct sport_device *sport)
 
int sport_set_multichannel (struct sport_device *sport, int tdm_count, u32 mask, int packed)
 
int sport_config_rx (struct sport_device *sport, unsigned int rcr1, unsigned int rcr2, unsigned int clkdiv, unsigned int fsdiv)
 
int sport_config_tx (struct sport_device *sport, unsigned int tcr1, unsigned int tcr2, unsigned int clkdiv, unsigned int fsdiv)
 
int sport_config_rx_dma (struct sport_device *sport, void *buf, int fragcount, size_t fragsize_bytes)
 
int sport_config_tx_dma (struct sport_device *sport, void *buf, int fragcount, size_t fragsize_bytes)
 
int sport_tx_start (struct sport_device *sport)
 
int sport_tx_stop (struct sport_device *sport)
 
int sport_rx_start (struct sport_device *sport)
 
int sport_rx_stop (struct sport_device *sport)
 
unsigned long sport_curr_offset_rx (struct sport_device *sport)
 
unsigned long sport_curr_offset_tx (struct sport_device *sport)
 
void sport_incfrag (struct sport_device *sport, int *frag, int tx)
 
void sport_decfrag (struct sport_device *sport, int *frag, int tx)
 
int sport_set_rx_callback (struct sport_device *sport, void(*rx_callback)(void *), void *rx_data)
 
int sport_set_tx_callback (struct sport_device *sport, void(*tx_callback)(void *), void *tx_data)
 
int sport_set_err_callback (struct sport_device *sport, void(*err_callback)(void *), void *err_data)
 
int sport_send_and_recv (struct sport_device *sport, u8 *out_data, u8 *in_data, int len)
 

Macro Definition Documentation

#define DESC_ELEMENT_COUNT   9

Definition at line 40 of file bf5xx-sport.h.

Function Documentation

int sport_config_rx ( struct sport_device sport,
unsigned int  rcr1,
unsigned int  rcr2,
unsigned int  clkdiv,
unsigned int  fsdiv 
)

Definition at line 93 of file bf5xx-sport.c.

int sport_config_rx_dma ( struct sport_device sport,
void buf,
int  fragcount,
size_t  fragsize_bytes 
)

Definition at line 389 of file bf5xx-sport.c.

int sport_config_tx ( struct sport_device sport,
unsigned int  tcr1,
unsigned int  tcr2,
unsigned int  clkdiv,
unsigned int  fsdiv 
)

Definition at line 110 of file bf5xx-sport.c.

int sport_config_tx_dma ( struct sport_device sport,
void buf,
int  fragcount,
size_t  fragsize_bytes 
)

Definition at line 454 of file bf5xx-sport.c.

unsigned long sport_curr_offset_rx ( struct sport_device sport)

Definition at line 586 of file bf5xx-sport.c.

unsigned long sport_curr_offset_tx ( struct sport_device sport)

Definition at line 594 of file bf5xx-sport.c.

void sport_decfrag ( struct sport_device sport,
int frag,
int  tx 
)

Definition at line 613 of file bf5xx-sport.c.

void sport_done ( struct sport_device sport)

Definition at line 971 of file bf5xx-sport.c.

void sport_incfrag ( struct sport_device sport,
int frag,
int  tx 
)

Definition at line 602 of file bf5xx-sport.c.

struct sport_device* sport_init ( struct platform_device pdev,
unsigned int  wdsize,
unsigned int  dummy_count,
size_t  priv_size 
)
read

Definition at line 847 of file bf5xx-sport.c.

int sport_rx_start ( struct sport_device sport)

Definition at line 245 of file bf5xx-sport.c.

int sport_rx_stop ( struct sport_device sport)

Definition at line 274 of file bf5xx-sport.c.

int sport_send_and_recv ( struct sport_device sport,
u8 out_data,
u8 in_data,
int  len 
)

Definition at line 1010 of file bf5xx-sport.c.

int sport_set_err_callback ( struct sport_device sport,
void(*)(void *)  err_callback,
void err_data 
)

Definition at line 789 of file bf5xx-sport.c.

int sport_set_multichannel ( struct sport_device sport,
int  tdm_count,
u32  mask,
int  packed 
)

Definition at line 48 of file bf5xx-sport.c.

int sport_set_rx_callback ( struct sport_device sport,
void(*)(void *)  rx_callback,
void rx_data 
)

Definition at line 767 of file bf5xx-sport.c.

int sport_set_tx_callback ( struct sport_device sport,
void(*)(void *)  tx_callback,
void tx_data 
)

Definition at line 778 of file bf5xx-sport.c.

int sport_tx_start ( struct sport_device sport)

Definition at line 326 of file bf5xx-sport.c.

int sport_tx_stop ( struct sport_device sport)

Definition at line 356 of file bf5xx-sport.c.