Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
txx9dmac.c File Reference
#include <linux/dma-mapping.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/scatterlist.h>
#include "dmaengine.h"
#include "txx9dmac.h"

Go to the source code of this file.

Macros

#define channel64_readq(dc, name)   __raw_readq(&(__dma_regs(dc)->name))
 
#define channel64_writeq(dc, name, val)   __raw_writeq((val), &(__dma_regs(dc)->name))
 
#define channel64_readl(dc, name)   __raw_readl(&(__dma_regs(dc)->name))
 
#define channel64_writel(dc, name, val)   __raw_writel((val), &(__dma_regs(dc)->name))
 
#define channel32_readl(dc, name)   __raw_readl(&(__dma_regs32(dc)->name))
 
#define channel32_writel(dc, name, val)   __raw_writel((val), &(__dma_regs32(dc)->name))
 
#define channel_readq(dc, name)   channel64_readq(dc, name)
 
#define channel_writeq(dc, name, val)   channel64_writeq(dc, name, val)
 
#define channel_readl(dc, name)
 
#define channel_writel(dc, name, val)
 
#define dma64_readl(ddev, name)   __raw_readl(&(__txx9dmac_regs(ddev)->name))
 
#define dma64_writel(ddev, name, val)   __raw_writel((val), &(__txx9dmac_regs(ddev)->name))
 
#define dma32_readl(ddev, name)   __raw_readl(&(__txx9dmac_regs32(ddev)->name))
 
#define dma32_writel(ddev, name, val)   __raw_writel((val), &(__txx9dmac_regs32(ddev)->name))
 
#define dma_readl(ddev, name)
 
#define dma_writel(ddev, name, val)
 
#define TXX9_DMA_MAX_COUNT   0x04000000
 
#define TXX9_DMA_INITIAL_DESC_COUNT   64
 

Functions

 module_init (txx9dmac_init)
 
 module_exit (txx9dmac_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("TXx9 DMA Controller driver")
 
 MODULE_AUTHOR ("Atsushi Nemoto <anemo@mba.ocn.ne.jp>")
 
 MODULE_ALIAS ("platform:txx9dmac")
 
 MODULE_ALIAS ("platform:txx9dmac-chan")
 

Macro Definition Documentation

#define channel32_readl (   dc,
  name 
)    __raw_readl(&(__dma_regs32(dc)->name))

Definition at line 47 of file txx9dmac.c.

#define channel32_writel (   dc,
  name,
  val 
)    __raw_writel((val), &(__dma_regs32(dc)->name))

Definition at line 49 of file txx9dmac.c.

#define channel64_readl (   dc,
  name 
)    __raw_readl(&(__dma_regs(dc)->name))

Definition at line 42 of file txx9dmac.c.

#define channel64_readq (   dc,
  name 
)    __raw_readq(&(__dma_regs(dc)->name))

Definition at line 38 of file txx9dmac.c.

#define channel64_writel (   dc,
  name,
  val 
)    __raw_writel((val), &(__dma_regs(dc)->name))

Definition at line 44 of file txx9dmac.c.

#define channel64_writeq (   dc,
  name,
  val 
)    __raw_writeq((val), &(__dma_regs(dc)->name))

Definition at line 40 of file txx9dmac.c.

#define channel_readl (   dc,
  name 
)
Value:
(is_dmac64(dc) ? \
channel64_readl(dc, name) : channel32_readl(dc, name))

Definition at line 54 of file txx9dmac.c.

#define channel_readq (   dc,
  name 
)    channel64_readq(dc, name)

Definition at line 52 of file txx9dmac.c.

#define channel_writel (   dc,
  name,
  val 
)
Value:
(is_dmac64(dc) ? \
channel64_writel(dc, name, val) : channel32_writel(dc, name, val))

Definition at line 57 of file txx9dmac.c.

#define channel_writeq (   dc,
  name,
  val 
)    channel64_writeq(dc, name, val)

Definition at line 53 of file txx9dmac.c.

#define dma32_readl (   ddev,
  name 
)    __raw_readl(&(__txx9dmac_regs32(ddev)->name))

Definition at line 120 of file txx9dmac.c.

#define dma32_writel (   ddev,
  name,
  val 
)    __raw_writel((val), &(__txx9dmac_regs32(ddev)->name))

Definition at line 122 of file txx9dmac.c.

#define dma64_readl (   ddev,
  name 
)    __raw_readl(&(__txx9dmac_regs(ddev)->name))

Definition at line 115 of file txx9dmac.c.

#define dma64_writel (   ddev,
  name,
  val 
)    __raw_writel((val), &(__txx9dmac_regs(ddev)->name))

Definition at line 117 of file txx9dmac.c.

#define dma_readl (   ddev,
  name 
)
Value:
(__is_dmac64(ddev) ? \
dma64_readl(ddev, name) : dma32_readl(ddev, name))

Definition at line 125 of file txx9dmac.c.

#define dma_writel (   ddev,
  name,
  val 
)
Value:
(__is_dmac64(ddev) ? \
dma64_writel(ddev, name, val) : dma32_writel(ddev, name, val))

Definition at line 128 of file txx9dmac.c.

#define TXX9_DMA_INITIAL_DESC_COUNT   64

Definition at line 164 of file txx9dmac.c.

#define TXX9_DMA_MAX_COUNT   0x04000000

Definition at line 162 of file txx9dmac.c.

Function Documentation

MODULE_ALIAS ( "platform:txx9dmac"  )
MODULE_ALIAS ( "platform:txx9dmac-chan )
MODULE_AUTHOR ( "Atsushi Nemoto <anemo@mba.ocn.ne.jp>"  )
MODULE_DESCRIPTION ( "TXx9 DMA Controller driver )
module_exit ( txx9dmac_exit  )
module_init ( txx9dmac_init  )
MODULE_LICENSE ( "GPL"  )