Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
dma.h File Reference
#include <linux/device.h>
#include <plat/dma.h>

Go to the source code of this file.

Data Structures

struct  s3c2410_dma_buf
 
struct  s3c2410_dma_stats
 
struct  s3c2410_dma_chan
 

Macros

#define __ASM_ARCH_DMA_H   __FILE__
 
#define MAX_DMA_TRANSFER_SIZE   0x100000 /* Data Unit is half word */
 
#define DMACH_LOW_LEVEL   (1<<28) /* use this to specifiy hardware ch no */
 
#define S3C_DMA_CHANNELS   (4)
 
#define S3C2410_DMAF_SLOW
 
#define S3C2410_DMAF_AUTOSTART   (1<<1) /* auto-start if buffer queued */
 
#define S3C2410_DMAF_CIRCULAR   (1 << 2) /* no circular dma support */
 

Typedefs

typedef unsigned long dma_device_t
 

Enumerations

enum  dma_ch {
  DMACH_DT_PROP = -1, DMACH_XD0 = 0, DMACH_XD1, DMACH_SDI,
  DMACH_SPI0, DMACH_SPI1, DMACH_UART0, DMACH_UART1,
  DMACH_UART2, DMACH_TIMER, DMACH_I2S_IN, DMACH_I2S_OUT,
  DMACH_PCM_IN, DMACH_PCM_OUT, DMACH_MIC_IN, DMACH_USB_EP1,
  DMACH_USB_EP2, DMACH_USB_EP3, DMACH_USB_EP4, DMACH_UART0_SRC2,
  DMACH_UART1_SRC2, DMACH_UART2_SRC2, DMACH_UART3, DMACH_UART3_SRC2,
  DMACH_SPI0_TX, DMACH_SPI0_RX, DMACH_SPI1_TX, DMACH_SPI1_RX,
  DMACH_MAX, DMACH_DT_PROP = -1, DMACH_UART0 = 0, DMACH_UART0_SRC2,
  DMACH_UART1, DMACH_UART1_SRC2, DMACH_UART2, DMACH_UART2_SRC2,
  DMACH_UART3, DMACH_UART3_SRC2, DMACH_PCM0_TX, DMACH_PCM0_RX,
  DMACH_I2S0_OUT, DMACH_I2S0_IN, DMACH_SPI0_TX, DMACH_SPI0_RX,
  DMACH_HSI_I2SV40_TX, DMACH_HSI_I2SV40_RX, DMACH_PCM1_TX = 16, DMACH_PCM1_RX,
  DMACH_I2S1_OUT, DMACH_I2S1_IN, DMACH_SPI1_TX, DMACH_SPI1_RX,
  DMACH_AC97_PCMOUT, DMACH_AC97_PCMIN, DMACH_AC97_MICIN, DMACH_PWM,
  DMACH_IRDA, DMACH_EXTERNAL, DMACH_RES1, DMACH_RES2,
  DMACH_SECURITY_RX, DMACH_SECURITY_TX, DMACH_MAX, DMACH_DT_PROP = -1,
  DMACH_UART0_RX = 0, DMACH_UART0_TX, DMACH_UART1_RX, DMACH_UART1_TX,
  DMACH_UART2_RX, DMACH_UART2_TX, DMACH_UART3_RX, DMACH_UART3_TX,
  DMACH_UART4_RX, DMACH_UART4_TX, DMACH_UART5_RX, DMACH_UART5_TX,
  DMACH_USI_RX, DMACH_USI_TX, DMACH_IRDA, DMACH_I2S0_RX,
  DMACH_I2S0_TX, DMACH_I2S0S_TX, DMACH_I2S1_RX, DMACH_I2S1_TX,
  DMACH_I2S2_RX, DMACH_I2S2_TX, DMACH_SPI0_RX, DMACH_SPI0_TX,
  DMACH_SPI1_RX, DMACH_SPI1_TX, DMACH_SPI2_RX, DMACH_SPI2_TX,
  DMACH_AC97_MICIN, DMACH_AC97_PCMIN, DMACH_AC97_PCMOUT, DMACH_EXTERNAL,
  DMACH_PWM, DMACH_SPDIF, DMACH_HSI_RX, DMACH_HSI_TX,
  DMACH_PCM0_TX, DMACH_PCM0_RX, DMACH_PCM1_TX, DMACH_PCM1_RX,
  DMACH_PCM2_TX, DMACH_PCM2_RX, DMACH_MSM_REQ3, DMACH_MSM_REQ2,
  DMACH_MSM_REQ1, DMACH_MSM_REQ0, DMACH_SLIMBUS0_RX, DMACH_SLIMBUS0_TX,
  DMACH_SLIMBUS0AUX_RX, DMACH_SLIMBUS0AUX_TX, DMACH_SLIMBUS1_RX, DMACH_SLIMBUS1_TX,
  DMACH_SLIMBUS2_RX, DMACH_SLIMBUS2_TX, DMACH_SLIMBUS3_RX, DMACH_SLIMBUS3_TX,
  DMACH_SLIMBUS4_RX, DMACH_SLIMBUS4_TX, DMACH_SLIMBUS5_RX, DMACH_SLIMBUS5_TX,
  DMACH_MIPI_HSI0, DMACH_MIPI_HSI1, DMACH_MIPI_HSI2, DMACH_MIPI_HSI3,
  DMACH_MIPI_HSI4, DMACH_MIPI_HSI5, DMACH_MIPI_HSI6, DMACH_MIPI_HSI7,
  DMACH_DISP1, DMACH_MTOM_0, DMACH_MTOM_1, DMACH_MTOM_2,
  DMACH_MTOM_3, DMACH_MTOM_4, DMACH_MTOM_5, DMACH_MTOM_6,
  DMACH_MTOM_7, DMACH_MAX
}
 
enum  s3c2410_dma_state { S3C2410_DMA_IDLE, S3C2410_DMA_RUNNING, S3C2410_DMA_PAUSED }
 
enum  s3c2410_dma_loadst { S3C2410_DMALOAD_NONE, S3C2410_DMALOAD_1LOADED, S3C2410_DMALOAD_1RUNNING, S3C2410_DMALOAD_1LOADED_1RUNNING }
 

Macro Definition Documentation

#define __ASM_ARCH_DMA_H   __FILE__

Definition at line 14 of file dma.h.

#define DMACH_LOW_LEVEL   (1<<28) /* use this to specifiy hardware ch no */

Definition at line 70 of file dma.h.

#define MAX_DMA_TRANSFER_SIZE   0x100000 /* Data Unit is half word */

Definition at line 18 of file dma.h.

#define S3C2410_DMAF_AUTOSTART   (1<<1) /* auto-start if buffer queued */

Definition at line 126 of file dma.h.

#define S3C2410_DMAF_CIRCULAR   (1 << 2) /* no circular dma support */

Definition at line 128 of file dma.h.

#define S3C2410_DMAF_SLOW
Value:
(1<<0) /* slow, so don't worry about
* waiting for reloads */

Definition at line 125 of file dma.h.

#define S3C_DMA_CHANNELS   (4)

Definition at line 74 of file dma.h.

Typedef Documentation

typedef unsigned long dma_device_t

Definition at line 212 of file dma.h.

Enumeration Type Documentation

enum dma_ch
Enumerator:
DMACH_DT_PROP 
DMACH_XD0 
DMACH_XD1 
DMACH_SDI 
DMACH_SPI0 
DMACH_SPI1 
DMACH_UART0 
DMACH_UART1 
DMACH_UART2 
DMACH_TIMER 
DMACH_I2S_IN 
DMACH_I2S_OUT 
DMACH_PCM_IN 
DMACH_PCM_OUT 
DMACH_MIC_IN 
DMACH_USB_EP1 
DMACH_USB_EP2 
DMACH_USB_EP3 
DMACH_USB_EP4 
DMACH_UART0_SRC2 
DMACH_UART1_SRC2 
DMACH_UART2_SRC2 
DMACH_UART3 
DMACH_UART3_SRC2 
DMACH_SPI0_TX 
DMACH_SPI0_RX 
DMACH_SPI1_TX 
DMACH_SPI1_RX 
DMACH_MAX 
DMACH_DT_PROP 
DMACH_UART0 
DMACH_UART0_SRC2 
DMACH_UART1 
DMACH_UART1_SRC2 
DMACH_UART2 
DMACH_UART2_SRC2 
DMACH_UART3 
DMACH_UART3_SRC2 
DMACH_PCM0_TX 
DMACH_PCM0_RX 
DMACH_I2S0_OUT 
DMACH_I2S0_IN 
DMACH_SPI0_TX 
DMACH_SPI0_RX 
DMACH_HSI_I2SV40_TX 
DMACH_HSI_I2SV40_RX 
DMACH_PCM1_TX 
DMACH_PCM1_RX 
DMACH_I2S1_OUT 
DMACH_I2S1_IN 
DMACH_SPI1_TX 
DMACH_SPI1_RX 
DMACH_AC97_PCMOUT 
DMACH_AC97_PCMIN 
DMACH_AC97_MICIN 
DMACH_PWM 
DMACH_IRDA 
DMACH_EXTERNAL 
DMACH_RES1 
DMACH_RES2 
DMACH_SECURITY_RX 
DMACH_SECURITY_TX 
DMACH_MAX 
DMACH_DT_PROP 
DMACH_UART0_RX 
DMACH_UART0_TX 
DMACH_UART1_RX 
DMACH_UART1_TX 
DMACH_UART2_RX 
DMACH_UART2_TX 
DMACH_UART3_RX 
DMACH_UART3_TX 
DMACH_UART4_RX 
DMACH_UART4_TX 
DMACH_UART5_RX 
DMACH_UART5_TX 
DMACH_USI_RX 
DMACH_USI_TX 
DMACH_IRDA 
DMACH_I2S0_RX 
DMACH_I2S0_TX 
DMACH_I2S0S_TX 
DMACH_I2S1_RX 
DMACH_I2S1_TX 
DMACH_I2S2_RX 
DMACH_I2S2_TX 
DMACH_SPI0_RX 
DMACH_SPI0_TX 
DMACH_SPI1_RX 
DMACH_SPI1_TX 
DMACH_SPI2_RX 
DMACH_SPI2_TX 
DMACH_AC97_MICIN 
DMACH_AC97_PCMIN 
DMACH_AC97_PCMOUT 
DMACH_EXTERNAL 
DMACH_PWM 
DMACH_SPDIF 
DMACH_HSI_RX 
DMACH_HSI_TX 
DMACH_PCM0_TX 
DMACH_PCM0_RX 
DMACH_PCM1_TX 
DMACH_PCM1_RX 
DMACH_PCM2_TX 
DMACH_PCM2_RX 
DMACH_MSM_REQ3 
DMACH_MSM_REQ2 
DMACH_MSM_REQ1 
DMACH_MSM_REQ0 
DMACH_SLIMBUS0_RX 
DMACH_SLIMBUS0_TX 
DMACH_SLIMBUS0AUX_RX 
DMACH_SLIMBUS0AUX_TX 
DMACH_SLIMBUS1_RX 
DMACH_SLIMBUS1_TX 
DMACH_SLIMBUS2_RX 
DMACH_SLIMBUS2_TX 
DMACH_SLIMBUS3_RX 
DMACH_SLIMBUS3_TX 
DMACH_SLIMBUS4_RX 
DMACH_SLIMBUS4_TX 
DMACH_SLIMBUS5_RX 
DMACH_SLIMBUS5_TX 
DMACH_MIPI_HSI0 
DMACH_MIPI_HSI1 
DMACH_MIPI_HSI2 
DMACH_MIPI_HSI3 
DMACH_MIPI_HSI4 
DMACH_MIPI_HSI5 
DMACH_MIPI_HSI6 
DMACH_MIPI_HSI7 
DMACH_DISP1 
DMACH_MTOM_0 
DMACH_MTOM_1 
DMACH_MTOM_2 
DMACH_MTOM_3 
DMACH_MTOM_4 
DMACH_MTOM_5 
DMACH_MTOM_6 
DMACH_MTOM_7 
DMACH_MAX 

Definition at line 26 of file dma.h.

Enumerator:
S3C2410_DMALOAD_NONE 
S3C2410_DMALOAD_1LOADED 
S3C2410_DMALOAD_1RUNNING 
S3C2410_DMALOAD_1LOADED_1RUNNING 

Definition at line 115 of file dma.h.

Enumerator:
S3C2410_DMA_IDLE 
S3C2410_DMA_RUNNING 
S3C2410_DMA_PAUSED 

Definition at line 81 of file dma.h.