Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
arm
plat-samsung
include
plat
dma-pl330.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010 Samsung Electronics Co. Ltd.
3
* Jaswinder Singh <
[email protected]
>
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*/
10
11
#ifndef __DMA_PL330_H_
12
#define __DMA_PL330_H_ __FILE__
13
14
/*
15
* PL330 can assign any channel to communicate with
16
* any of the peripherals attched to the DMAC.
17
* For the sake of consistency across client drivers,
18
* We keep the channel names unchanged and only add
19
* missing peripherals are added.
20
* Order is not important since DMA PL330 API driver
21
* use these just as IDs.
22
*/
23
enum
dma_ch
{
24
DMACH_DT_PROP
= -1,
25
DMACH_UART0_RX
= 0,
26
DMACH_UART0_TX
,
27
DMACH_UART1_RX
,
28
DMACH_UART1_TX
,
29
DMACH_UART2_RX
,
30
DMACH_UART2_TX
,
31
DMACH_UART3_RX
,
32
DMACH_UART3_TX
,
33
DMACH_UART4_RX
,
34
DMACH_UART4_TX
,
35
DMACH_UART5_RX
,
36
DMACH_UART5_TX
,
37
DMACH_USI_RX
,
38
DMACH_USI_TX
,
39
DMACH_IRDA
,
40
DMACH_I2S0_RX
,
41
DMACH_I2S0_TX
,
42
DMACH_I2S0S_TX
,
43
DMACH_I2S1_RX
,
44
DMACH_I2S1_TX
,
45
DMACH_I2S2_RX
,
46
DMACH_I2S2_TX
,
47
DMACH_SPI0_RX
,
48
DMACH_SPI0_TX
,
49
DMACH_SPI1_RX
,
50
DMACH_SPI1_TX
,
51
DMACH_SPI2_RX
,
52
DMACH_SPI2_TX
,
53
DMACH_AC97_MICIN
,
54
DMACH_AC97_PCMIN
,
55
DMACH_AC97_PCMOUT
,
56
DMACH_EXTERNAL
,
57
DMACH_PWM
,
58
DMACH_SPDIF
,
59
DMACH_HSI_RX
,
60
DMACH_HSI_TX
,
61
DMACH_PCM0_TX
,
62
DMACH_PCM0_RX
,
63
DMACH_PCM1_TX
,
64
DMACH_PCM1_RX
,
65
DMACH_PCM2_TX
,
66
DMACH_PCM2_RX
,
67
DMACH_MSM_REQ3
,
68
DMACH_MSM_REQ2
,
69
DMACH_MSM_REQ1
,
70
DMACH_MSM_REQ0
,
71
DMACH_SLIMBUS0_RX
,
72
DMACH_SLIMBUS0_TX
,
73
DMACH_SLIMBUS0AUX_RX
,
74
DMACH_SLIMBUS0AUX_TX
,
75
DMACH_SLIMBUS1_RX
,
76
DMACH_SLIMBUS1_TX
,
77
DMACH_SLIMBUS2_RX
,
78
DMACH_SLIMBUS2_TX
,
79
DMACH_SLIMBUS3_RX
,
80
DMACH_SLIMBUS3_TX
,
81
DMACH_SLIMBUS4_RX
,
82
DMACH_SLIMBUS4_TX
,
83
DMACH_SLIMBUS5_RX
,
84
DMACH_SLIMBUS5_TX
,
85
DMACH_MIPI_HSI0
,
86
DMACH_MIPI_HSI1
,
87
DMACH_MIPI_HSI2
,
88
DMACH_MIPI_HSI3
,
89
DMACH_MIPI_HSI4
,
90
DMACH_MIPI_HSI5
,
91
DMACH_MIPI_HSI6
,
92
DMACH_MIPI_HSI7
,
93
DMACH_DISP1
,
94
DMACH_MTOM_0
,
95
DMACH_MTOM_1
,
96
DMACH_MTOM_2
,
97
DMACH_MTOM_3
,
98
DMACH_MTOM_4
,
99
DMACH_MTOM_5
,
100
DMACH_MTOM_6
,
101
DMACH_MTOM_7
,
102
/* END Marker, also used to denote a reserved channel */
103
DMACH_MAX
,
104
};
105
106
struct
s3c2410_dma_client
{
107
char
*
name
;
108
};
109
110
static
inline
bool
samsung_dma_has_circular(
void
)
111
{
112
return
true
;
113
}
114
115
static
inline
bool
samsung_dma_is_dmadev(
void
)
116
{
117
return
true
;
118
}
119
120
#include <
plat/dma-ops.h
>
121
122
#endif
/* __DMA_PL330_H_ */
Generated on Thu Jan 10 2013 13:03:23 for Linux Kernel by
1.8.2