Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dma.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/syscore_ops.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <asm/irq.h>
#include <mach/hardware.h>
#include <mach/dma.h>
#include <mach/map.h>
#include <plat/dma-s3c24xx.h>
#include <plat/regs-dma.h>

Go to the source code of this file.

Data Structures

struct  s3c2410_dma_regstate
 

Macros

#define BUF_MAGIC   (0xcafebabe)
 
#define dmawarn(fmt...)   printk(KERN_DEBUG fmt)
 
#define dma_regaddr(chan, reg)   ((chan)->regs + (reg))
 
#define dma_wrreg(chan, reg, val)   writel((val), (chan)->regs + (reg))
 
#define dma_rdreg(chan, reg)   readl((chan)->regs + (reg))
 
#define dbg_showregs(chan)   do { } while(0)
 
#define dbg_showchan(chan)   do { } while(0)
 
#define dmadbg2(x...)
 
#define s3c2410_dma_suspend   NULL
 
#define s3c2410_dma_resume   NULL
 

Functions

int s3c2410_dma_enqueue (enum dma_ch channel, void *id, dma_addr_t data, int size)
 
 EXPORT_SYMBOL (s3c2410_dma_enqueue)
 
int s3c2410_dma_request (enum dma_ch channel, struct s3c2410_dma_client *client, void *dev)
 
 EXPORT_SYMBOL (s3c2410_dma_request)
 
int s3c2410_dma_free (enum dma_ch channel, struct s3c2410_dma_client *client)
 
 EXPORT_SYMBOL (s3c2410_dma_free)
 
int s3c2410_dma_ctrl (enum dma_ch channel, enum s3c2410_chan_op op)
 
 EXPORT_SYMBOL (s3c2410_dma_ctrl)
 
int s3c2410_dma_config (enum dma_ch channel, int xferunit)
 
 EXPORT_SYMBOL (s3c2410_dma_config)
 
int s3c2410_dma_devconfig (enum dma_ch channel, enum dma_data_direction source, unsigned long devaddr)
 
 EXPORT_SYMBOL (s3c2410_dma_devconfig)
 
int s3c2410_dma_getposition (enum dma_ch channel, dma_addr_t *src, dma_addr_t *dst)
 
 EXPORT_SYMBOL (s3c2410_dma_getposition)
 
 late_initcall (s3c24xx_dma_syscore_init)
 
int __init s3c24xx_dma_init (unsigned int channels, unsigned int irq, unsigned int stride)
 
int __init s3c2410_dma_init (void)
 
int __init s3c24xx_dma_init_map (struct s3c24xx_dma_selection *sel)
 
int __init s3c24xx_dma_order_set (struct s3c24xx_dma_order *ord)
 

Variables

struct syscore_ops dma_syscore_ops
 

Macro Definition Documentation

#define BUF_MAGIC   (0xcafebabe)

Definition at line 49 of file dma.c.

#define dbg_showchan (   chan)    do { } while(0)

Definition at line 132 of file dma.c.

#define dbg_showregs (   chan)    do { } while(0)

Definition at line 131 of file dma.c.

#define dma_rdreg (   chan,
  reg 
)    readl((chan)->regs + (reg))

Definition at line 66 of file dma.c.

#define dma_regaddr (   chan,
  reg 
)    ((chan)->regs + (reg))

Definition at line 53 of file dma.c.

#define dma_wrreg (   chan,
  reg,
  val 
)    writel((val), (chan)->regs + (reg))

Definition at line 56 of file dma.c.

#define dmadbg2 (   x...)

Definition at line 577 of file dma.c.

#define dmawarn (   fmt...)    printk(KERN_DEBUG fmt)

Definition at line 51 of file dma.c.

#define s3c2410_dma_resume   NULL

Definition at line 1258 of file dma.c.

#define s3c2410_dma_suspend   NULL

Definition at line 1257 of file dma.c.

Function Documentation

EXPORT_SYMBOL ( s3c2410_dma_enqueue  )
EXPORT_SYMBOL ( s3c2410_dma_request  )
EXPORT_SYMBOL ( s3c2410_dma_free  )
EXPORT_SYMBOL ( s3c2410_dma_ctrl  )
EXPORT_SYMBOL ( s3c2410_dma_config  )
EXPORT_SYMBOL ( s3c2410_dma_devconfig  )
EXPORT_SYMBOL ( s3c2410_dma_getposition  )
late_initcall ( s3c24xx_dma_syscore_init  )
int s3c2410_dma_config ( enum dma_ch  channel,
int  xferunit 
)

Definition at line 1024 of file dma.c.

int s3c2410_dma_ctrl ( enum dma_ch  channel,
enum s3c2410_chan_op  op 
)

Definition at line 977 of file dma.c.

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

Definition at line 1103 of file dma.c.

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

Definition at line 433 of file dma.c.

int s3c2410_dma_free ( enum dma_ch  channel,
struct s3c2410_dma_client client 
)

Definition at line 786 of file dma.c.

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

Definition at line 1176 of file dma.c.

int __init s3c2410_dma_init ( void  )

Definition at line 1343 of file dma.c.

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

Definition at line 715 of file dma.c.

int __init s3c24xx_dma_init ( unsigned int  channels,
unsigned int  irq,
unsigned int  stride 
)

Definition at line 1284 of file dma.c.

int __init s3c24xx_dma_init_map ( struct s3c24xx_dma_selection sel)

Definition at line 1434 of file dma.c.

int __init s3c24xx_dma_order_set ( struct s3c24xx_dma_order ord)

Definition at line 1454 of file dma.c.

Variable Documentation

struct syscore_ops dma_syscore_ops
Initial value:
= {
.suspend = s3c2410_dma_suspend,
.resume = s3c2410_dma_resume,
}

Definition at line 1261 of file dma.c.