Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dma-g2.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <asm/cacheflush.h>
#include <mach/sysasic.h>
#include <mach/dma.h>
#include <asm/dma.h>

Go to the source code of this file.

Data Structures

struct  g2_channel
 
struct  g2_status
 
struct  g2_dma_info
 

Macros

#define g2_bytes_remaining(i)
 

Functions

struct g2_channel __attribute__ ((aligned(32)))
 
struct g2_status __attribute__ ((aligned(16)))
 
struct g2_dma_info __attribute__ ((aligned(256)))
 
 subsys_initcall (g2_dma_init)
 
 module_exit (g2_dma_exit)
 
 MODULE_AUTHOR ("Paul Mundt <[email protected]>")
 
 MODULE_DESCRIPTION ("G2 bus DMA driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

unsigned long g2_addr
 
unsigned long root_addr
 
unsigned long size
 
unsigned long direction
 
unsigned long ctrl
 
unsigned long chan_enable
 
unsigned long xfer_enable
 
unsigned long xfer_stat
 
unsigned long status
 
struct g2_channel channel [G2_NR_DMA_CHANNELS]
 
unsigned long pad1 [G2_NR_DMA_CHANNELS]
 
unsigned long wait_state
 
unsigned long pad2 [10]
 
unsigned long magic
 

Macro Definition Documentation

#define g2_bytes_remaining (   i)
Value:
((g2_dma->channel[i].size - \
g2_dma->status[i].size) & 0x0fffffff)

Definition at line 50 of file dma-g2.c.

Function Documentation

MODULE_AUTHOR ( "Paul Mundt <[email protected]>"  )
MODULE_DESCRIPTION ( "G2 bus DMA driver )
module_exit ( g2_dma_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( g2_dma_init  )

Variable Documentation

unsigned long chan_enable

Definition at line 36 of file dma-g2.c.

Definition at line 47 of file dma-g2.c.

unsigned long ctrl

Definition at line 35 of file dma-g2.c.

unsigned long direction

Definition at line 34 of file dma-g2.c.

unsigned long g2_addr

Definition at line 31 of file dma-g2.c.

unsigned long magic

Definition at line 51 of file dma-g2.c.

unsigned long pad1[G2_NR_DMA_CHANNELS]

Definition at line 48 of file dma-g2.c.

unsigned long pad2[10]

Definition at line 50 of file dma-g2.c.

unsigned long root_addr

Definition at line 32 of file dma-g2.c.

unsigned long size

Definition at line 33 of file dma-g2.c.

Definition at line 41 of file dma-g2.c.

unsigned long wait_state

Definition at line 49 of file dma-g2.c.

unsigned long xfer_enable

Definition at line 37 of file dma-g2.c.

unsigned long xfer_stat

Definition at line 38 of file dma-g2.c.