~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to arch/arm/mach-tegra/dma.c

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
#define NV_DMA_MAX_TRASFER_SIZE 0x10000
107
107
 
108
 
const unsigned int ahb_addr_wrap_table[8] = {
 
108
static const unsigned int ahb_addr_wrap_table[8] = {
109
109
        0, 32, 64, 128, 256, 512, 1024, 2048
110
110
};
111
111
 
112
 
const unsigned int apb_addr_wrap_table[8] = {0, 1, 2, 4, 8, 16, 32, 64};
 
112
static const unsigned int apb_addr_wrap_table[8] = {
 
113
        0, 1, 2, 4, 8, 16, 32, 64
 
114
};
113
115
 
114
 
const unsigned int bus_width_table[5] = {8, 16, 32, 64, 128};
 
116
static const unsigned int bus_width_table[5] = {
 
117
        8, 16, 32, 64, 128
 
118
};
115
119
 
116
120
#define TEGRA_DMA_NAME_SIZE 16
117
121
struct tegra_dma_channel {
157
161
        return;
158
162
}
159
163
 
160
 
void tegra_dma_stop(struct tegra_dma_channel *ch)
 
164
static void tegra_dma_stop(struct tegra_dma_channel *ch)
161
165
{
162
166
        u32 csr;
163
167
        u32 status;
174
178
                writel(status, ch->addr + APB_DMA_CHAN_STA);
175
179
}
176
180
 
177
 
int tegra_dma_cancel(struct tegra_dma_channel *ch)
 
181
static int tegra_dma_cancel(struct tegra_dma_channel *ch)
178
182
{
179
183
        u32 csr;
180
184
        unsigned long irq_flags;