Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dbdma.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/syscore_ops.h>
#include <asm/mach-au1x00/au1000.h>
#include <asm/mach-au1x00/au1xxx_dbdma.h>

Go to the source code of this file.

Macros

#define ALIGN_ADDR(x, a)   ((((u32)(x)) + (a-1)) & ~(a-1))
 
#define DBDEV_TAB_SIZE   64
 

Functions

voidau1xxx_ddma_get_nextptr_virt (au1x_ddma_desc_t *dp)
 
 EXPORT_SYMBOL (au1xxx_ddma_get_nextptr_virt)
 
u32 au1xxx_ddma_add_device (dbdev_tab_t *dev)
 
 EXPORT_SYMBOL (au1xxx_ddma_add_device)
 
void au1xxx_ddma_del_device (u32 devid)
 
 EXPORT_SYMBOL (au1xxx_ddma_del_device)
 
u32 au1xxx_dbdma_chan_alloc (u32 srcid, u32 destid, void(*callback)(int, void *), void *callparam)
 
 EXPORT_SYMBOL (au1xxx_dbdma_chan_alloc)
 
u32 au1xxx_dbdma_set_devwidth (u32 chanid, int bits)
 
 EXPORT_SYMBOL (au1xxx_dbdma_set_devwidth)
 
u32 au1xxx_dbdma_ring_alloc (u32 chanid, int entries)
 
 EXPORT_SYMBOL (au1xxx_dbdma_ring_alloc)
 
u32 au1xxx_dbdma_put_source (u32 chanid, dma_addr_t buf, int nbytes, u32 flags)
 
 EXPORT_SYMBOL (au1xxx_dbdma_put_source)
 
u32 au1xxx_dbdma_put_dest (u32 chanid, dma_addr_t buf, int nbytes, u32 flags)
 
 EXPORT_SYMBOL (au1xxx_dbdma_put_dest)
 
u32 au1xxx_dbdma_get_dest (u32 chanid, void **buf, int *nbytes)
 
 EXPORT_SYMBOL_GPL (au1xxx_dbdma_get_dest)
 
void au1xxx_dbdma_stop (u32 chanid)
 
 EXPORT_SYMBOL (au1xxx_dbdma_stop)
 
void au1xxx_dbdma_start (u32 chanid)
 
 EXPORT_SYMBOL (au1xxx_dbdma_start)
 
void au1xxx_dbdma_reset (u32 chanid)
 
 EXPORT_SYMBOL (au1xxx_dbdma_reset)
 
u32 au1xxx_get_dma_residue (u32 chanid)
 
 EXPORT_SYMBOL_GPL (au1xxx_get_dma_residue)
 
void au1xxx_dbdma_chan_free (u32 chanid)
 
 EXPORT_SYMBOL (au1xxx_dbdma_chan_free)
 
void au1xxx_dbdma_dump (u32 chanid)
 
u32 au1xxx_dbdma_put_dscr (u32 chanid, au1x_ddma_desc_t *dscr)
 
 subsys_initcall (alchemy_dbdma_init)
 

Macro Definition Documentation

#define ALIGN_ADDR (   x,
  a 
)    ((((u32)(x)) + (a-1)) & ~(a-1))

Definition at line 57 of file dbdma.c.

#define DBDEV_TAB_SIZE   64

Definition at line 196 of file dbdma.c.

Function Documentation

u32 au1xxx_dbdma_chan_alloc ( u32  srcid,
u32  destid,
void(*)(int, void *)  callback,
void callparam 
)

Definition at line 252 of file dbdma.c.

void au1xxx_dbdma_chan_free ( u32  chanid)

Definition at line 841 of file dbdma.c.

void au1xxx_dbdma_dump ( u32  chanid)

Definition at line 889 of file dbdma.c.

u32 au1xxx_dbdma_get_dest ( u32  chanid,
void **  buf,
int nbytes 
)

Definition at line 714 of file dbdma.c.

u32 au1xxx_dbdma_put_dest ( u32  chanid,
dma_addr_t  buf,
int  nbytes,
u32  flags 
)

Definition at line 650 of file dbdma.c.

u32 au1xxx_dbdma_put_dscr ( u32  chanid,
au1x_ddma_desc_t dscr 
)

Definition at line 934 of file dbdma.c.

u32 au1xxx_dbdma_put_source ( u32  chanid,
dma_addr_t  buf,
int  nbytes,
u32  flags 
)

Definition at line 591 of file dbdma.c.

void au1xxx_dbdma_reset ( u32  chanid)

Definition at line 798 of file dbdma.c.

u32 au1xxx_dbdma_ring_alloc ( u32  chanid,
int  entries 
)

Definition at line 390 of file dbdma.c.

u32 au1xxx_dbdma_set_devwidth ( u32  chanid,
int  bits 
)

Definition at line 365 of file dbdma.c.

void au1xxx_dbdma_start ( u32  chanid)

Definition at line 783 of file dbdma.c.

void au1xxx_dbdma_stop ( u32  chanid)

Definition at line 753 of file dbdma.c.

u32 au1xxx_ddma_add_device ( dbdev_tab_t dev)

Definition at line 218 of file dbdma.c.

void au1xxx_ddma_del_device ( u32  devid)

Definition at line 240 of file dbdma.c.

void* au1xxx_ddma_get_nextptr_virt ( au1x_ddma_desc_t dp)

Definition at line 212 of file dbdma.c.

u32 au1xxx_get_dma_residue ( u32  chanid)

Definition at line 824 of file dbdma.c.

EXPORT_SYMBOL ( au1xxx_ddma_get_nextptr_virt  )
EXPORT_SYMBOL ( au1xxx_ddma_add_device  )
EXPORT_SYMBOL ( au1xxx_ddma_del_device  )
EXPORT_SYMBOL ( au1xxx_dbdma_chan_alloc  )
EXPORT_SYMBOL ( au1xxx_dbdma_set_devwidth  )
EXPORT_SYMBOL ( au1xxx_dbdma_ring_alloc  )
EXPORT_SYMBOL ( au1xxx_dbdma_put_source  )
EXPORT_SYMBOL ( au1xxx_dbdma_put_dest  )
EXPORT_SYMBOL ( au1xxx_dbdma_stop  )
EXPORT_SYMBOL ( au1xxx_dbdma_start  )
EXPORT_SYMBOL ( au1xxx_dbdma_reset  )
EXPORT_SYMBOL ( au1xxx_dbdma_chan_free  )
EXPORT_SYMBOL_GPL ( au1xxx_dbdma_get_dest  )
EXPORT_SYMBOL_GPL ( au1xxx_get_dma_residue  )
subsys_initcall ( alchemy_dbdma_init  )