Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
dma.h File Reference
#include <linux/dma-mapping.h>
#include <plat/dma-ops.h>

Go to the source code of this file.

Data Structures

struct  s3c2410_dma_client
 

Typedefs

typedef void(* s3c2410_dma_cbfn_t )(struct s3c2410_dma_chan *, void *buf, int size, enum s3c2410_dma_buffresult result)
 
typedef int(* s3c2410_dma_opfn_t )(struct s3c2410_dma_chan *, enum s3c2410_chan_op)
 

Enumerations

enum  s3c2410_dma_buffresult { S3C2410_RES_OK, S3C2410_RES_ERR, S3C2410_RES_ABORT }
 
enum  s3c2410_chan_op {
  S3C2410_DMAOP_START, S3C2410_DMAOP_STOP, S3C2410_DMAOP_PAUSE, S3C2410_DMAOP_RESUME,
  S3C2410_DMAOP_FLUSH, S3C2410_DMAOP_TIMEOUT, S3C2410_DMAOP_STARTED
}
 

Functions

int s3c2410_dma_request (enum dma_ch channel, struct s3c2410_dma_client *, void *dev)
 
int s3c2410_dma_ctrl (enum dma_ch channel, enum s3c2410_chan_op op)
 
int s3c2410_dma_setflags (enum dma_ch channel, unsigned int flags)
 
int s3c2410_dma_free (enum dma_ch channel, struct s3c2410_dma_client *)
 
int s3c2410_dma_enqueue (enum dma_ch channel, void *id, dma_addr_t data, int size)
 
int s3c2410_dma_config (enum dma_ch channel, int xferunit)
 
int s3c2410_dma_devconfig (enum dma_ch channel, enum dma_data_direction source, unsigned long devaddr)
 
int s3c2410_dma_getposition (enum dma_ch channel, dma_addr_t *src, dma_addr_t *dest)
 
int s3c2410_dma_set_opfn (enum dma_ch, s3c2410_dma_opfn_t rtn)
 
int s3c2410_dma_set_buffdone_fn (enum dma_ch, s3c2410_dma_cbfn_t rtn)
 

Typedef Documentation

typedef void(* s3c2410_dma_cbfn_t)(struct s3c2410_dma_chan *, void *buf, int size, enum s3c2410_dma_buffresult result)

Definition at line 52 of file dma.h.

typedef int(* s3c2410_dma_opfn_t)(struct s3c2410_dma_chan *, enum s3c2410_chan_op)

Definition at line 56 of file dma.h.

Enumeration Type Documentation

Enumerator:
S3C2410_DMAOP_START 
S3C2410_DMAOP_STOP 
S3C2410_DMAOP_PAUSE 
S3C2410_DMAOP_RESUME 
S3C2410_DMAOP_FLUSH 
S3C2410_DMAOP_TIMEOUT 
S3C2410_DMAOP_STARTED 

Definition at line 30 of file dma.h.

Enumerator:
S3C2410_RES_OK 
S3C2410_RES_ERR 
S3C2410_RES_ABORT 

Definition at line 18 of file dma.h.

Function Documentation

int s3c2410_dma_config ( enum dma_ch  channel,
int  xferunit 
)

Definition at line 116 of file dma.c.

int s3c2410_dma_ctrl ( enum dma_ch  channel,
enum s3c2410_chan_op  op 
)

Definition at line 300 of file dma.c.

int s3c2410_dma_devconfig ( enum dma_ch  channel,
enum dma_data_direction  source,
unsigned long  devaddr 
)

Definition at line 418 of file dma.c.

int s3c2410_dma_enqueue ( enum dma_ch  channel,
void id,
dma_addr_t  data,
int  size 
)

Definition at line 334 of file dma.c.

int s3c2410_dma_free ( enum dma_ch  channel,
struct s3c2410_dma_client  
)

Definition at line 536 of file dma.c.

int s3c2410_dma_getposition ( enum dma_ch  channel,
dma_addr_t src,
dma_addr_t dest 
)

Definition at line 466 of file dma.c.

int s3c2410_dma_request ( enum dma_ch  channel,
struct s3c2410_dma_client ,
void dev 
)

Definition at line 490 of file dma.c.

int s3c2410_dma_set_buffdone_fn ( enum  dma_ch,
s3c2410_dma_cbfn_t  rtn 
)

Definition at line 59 of file dma.c.

int s3c2410_dma_set_opfn ( enum  dma_ch,
s3c2410_dma_opfn_t  rtn 
)

Definition at line 44 of file dma.c.

int s3c2410_dma_setflags ( enum dma_ch  channel,
unsigned int  flags 
)

Definition at line 74 of file dma.c.