Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
shdma-base.h File Reference
#include <linux/dmaengine.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  shdma_slave
 
struct  shdma_desc
 
struct  shdma_chan
 
struct  shdma_ops
 
struct  shdma_dev
 

Macros

#define shdma_for_each_chan(c, d, i)
 

Enumerations

enum  shdma_pm_state { SHDMA_PM_ESTABLISHED, SHDMA_PM_BUSY, SHDMA_PM_PENDING }
 

Functions

int shdma_request_irq (struct shdma_chan *, int, unsigned long, const char *)
 
void shdma_free_irq (struct shdma_chan *)
 
bool shdma_reset (struct shdma_dev *sdev)
 
void shdma_chan_probe (struct shdma_dev *sdev, struct shdma_chan *schan, int id)
 
void shdma_chan_remove (struct shdma_chan *schan)
 
int shdma_init (struct device *dev, struct shdma_dev *sdev, int chan_num)
 
void shdma_cleanup (struct shdma_dev *sdev)
 

Macro Definition Documentation

#define shdma_for_each_chan (   c,
  d,
  i 
)
Value:
for (i = 0, c = (d)->schan[0]; \
i < (d)->dma_dev.chancnt; c = (d)->schan[++i])

Definition at line 112 of file shdma-base.h.

Enumeration Type Documentation

shdma_pm_state - DMA channel PM state SHDMA_PM_ESTABLISHED: either idle or during data transfer SHDMA_PM_BUSY: during the transfer preparation, when we have to drop the lock temporarily SHDMA_PM_PENDING: transfers pending

Enumerator:
SHDMA_PM_ESTABLISHED 
SHDMA_PM_BUSY 
SHDMA_PM_PENDING 

Definition at line 31 of file shdma-base.h.

Function Documentation

void shdma_chan_probe ( struct shdma_dev sdev,
struct shdma_chan schan,
int  id 
)

Definition at line 839 of file shdma-base.c.

void shdma_chan_remove ( struct shdma_chan schan)

Definition at line 867 of file shdma-base.c.

void shdma_cleanup ( struct shdma_dev sdev)

Definition at line 919 of file shdma-base.c.

void shdma_free_irq ( struct shdma_chan )

Definition at line 832 of file shdma-base.c.

int shdma_init ( struct device dev,
struct shdma_dev sdev,
int  chan_num 
)

Definition at line 873 of file shdma-base.c.

int shdma_request_irq ( struct shdma_chan ,
int  ,
unsigned  long,
const char  
)

Definition at line 820 of file shdma-base.c.

bool shdma_reset ( struct shdma_dev sdev)

Definition at line 729 of file shdma-base.c.