Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
timb_dma.c File Reference
#include <linux/dmaengine.h>
#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/timb_dma.h>
#include "dmaengine.h"

Go to the source code of this file.

Data Structures

struct  timb_dma_desc
 
struct  timb_dma_chan
 
struct  timb_dma
 

Macros

#define DRIVER_NAME   "timb-dma"
 
#define TIMBDMA_ACR   0x34
 
#define TIMBDMA_32BIT_ADDR   0x01
 
#define TIMBDMA_ISR   0x080000
 
#define TIMBDMA_IPR   0x080004
 
#define TIMBDMA_IER   0x080008
 
#define TIMBDMA_INSTANCE_OFFSET   0x40
 
#define TIMBDMA_INSTANCE_TX_OFFSET   0x18
 
#define TIMBDMA_OFFS_RX_DHAR   0x00
 
#define TIMBDMA_OFFS_RX_DLAR   0x04
 
#define TIMBDMA_OFFS_RX_LR   0x0C
 
#define TIMBDMA_OFFS_RX_BLR   0x10
 
#define TIMBDMA_OFFS_RX_ER   0x14
 
#define TIMBDMA_RX_EN   0x01
 
#define TIMBDMA_OFFS_RX_BPRR   0x30
 
#define TIMBDMA_OFFS_TX_DHAR   0x00
 
#define TIMBDMA_OFFS_TX_DLAR   0x04
 
#define TIMBDMA_OFFS_TX_BLR   0x0C
 
#define TIMBDMA_OFFS_TX_LR   0x14
 
#define TIMB_DMA_DESC_SIZE   8
 

Functions

 module_platform_driver (td_driver)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_DESCRIPTION ("Timberdale DMA controller driver")
 
 MODULE_AUTHOR ("Pelagicore AB <info@pelagicore.com>")
 
 MODULE_ALIAS ("platform:"DRIVER_NAME)
 

Macro Definition Documentation

#define DRIVER_NAME   "timb-dma"

Definition at line 36 of file timb_dma.c.

#define TIMB_DMA_DESC_SIZE   8

Definition at line 72 of file timb_dma.c.

#define TIMBDMA_32BIT_ADDR   0x01

Definition at line 40 of file timb_dma.c.

#define TIMBDMA_ACR   0x34

Definition at line 39 of file timb_dma.c.

#define TIMBDMA_IER   0x080008

Definition at line 44 of file timb_dma.c.

#define TIMBDMA_INSTANCE_OFFSET   0x40

Definition at line 50 of file timb_dma.c.

#define TIMBDMA_INSTANCE_TX_OFFSET   0x18

Definition at line 51 of file timb_dma.c.

#define TIMBDMA_IPR   0x080004

Definition at line 43 of file timb_dma.c.

#define TIMBDMA_ISR   0x080000

Definition at line 42 of file timb_dma.c.

#define TIMBDMA_OFFS_RX_BLR   0x10

Definition at line 57 of file timb_dma.c.

#define TIMBDMA_OFFS_RX_BPRR   0x30

Definition at line 63 of file timb_dma.c.

#define TIMBDMA_OFFS_RX_DHAR   0x00

Definition at line 54 of file timb_dma.c.

#define TIMBDMA_OFFS_RX_DLAR   0x04

Definition at line 55 of file timb_dma.c.

#define TIMBDMA_OFFS_RX_ER   0x14

Definition at line 58 of file timb_dma.c.

#define TIMBDMA_OFFS_RX_LR   0x0C

Definition at line 56 of file timb_dma.c.

#define TIMBDMA_OFFS_TX_BLR   0x0C

Definition at line 68 of file timb_dma.c.

#define TIMBDMA_OFFS_TX_DHAR   0x00

Definition at line 66 of file timb_dma.c.

#define TIMBDMA_OFFS_TX_DLAR   0x04

Definition at line 67 of file timb_dma.c.

#define TIMBDMA_OFFS_TX_LR   0x14

Definition at line 69 of file timb_dma.c.

#define TIMBDMA_RX_EN   0x01

Definition at line 59 of file timb_dma.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRIVER_NAME)
MODULE_AUTHOR ( "Pelagicore AB <info@pelagicore.com>"  )
MODULE_DESCRIPTION ( "Timberdale DMA controller driver )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( td_driver  )