Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16747
b: refs/heads/master
c: 95ba9fb
h: refs/heads/master
i:
  16745: afbf3d6
  16743: 7ef5083
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jan 4, 2006
1 parent be20fb0 commit 6fff5b3
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 123 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 065909b91581cf2438d901a7811a82af3476bdab
refs/heads/master: 95ba9fb06be4a8714c98df6097eab1808c72fa98
28 changes: 0 additions & 28 deletions trunk/arch/arm/kernel/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

DEFINE_SPINLOCK(dma_spin_lock);

#if MAX_DMA_CHANNELS > 0

static dma_t dma_chan[MAX_DMA_CHANNELS];

/*
Expand Down Expand Up @@ -256,32 +254,6 @@ static int __init init_dma(void)

core_initcall(init_dma);

#else

int request_dma(dmach_t channel, const char *device_id)
{
return -EINVAL;
}

int get_dma_residue(dmach_t channel)
{
return 0;
}

#define GLOBAL_ALIAS(_a,_b) asm (".set " #_a "," #_b "; .globl " #_a)
GLOBAL_ALIAS(disable_dma, get_dma_residue);
GLOBAL_ALIAS(enable_dma, get_dma_residue);
GLOBAL_ALIAS(free_dma, get_dma_residue);
GLOBAL_ALIAS(get_dma_list, get_dma_residue);
GLOBAL_ALIAS(set_dma_mode, get_dma_residue);
GLOBAL_ALIAS(set_dma_page, get_dma_residue);
GLOBAL_ALIAS(set_dma_count, get_dma_residue);
GLOBAL_ALIAS(__set_dma_addr, get_dma_residue);
GLOBAL_ALIAS(set_dma_sg, get_dma_residue);
GLOBAL_ALIAS(set_dma_speed, get_dma_residue);

#endif

EXPORT_SYMBOL(request_dma);
EXPORT_SYMBOL(free_dma);
EXPORT_SYMBOL(enable_dma);
Expand Down
7 changes: 0 additions & 7 deletions trunk/include/asm-arm/arch-aaec2000/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,3 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/

#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0

#endif
1 change: 0 additions & 1 deletion trunk/include/asm-arm/arch-cl7500/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* bytes of RAM.
*/
#define MAX_DMA_ADDRESS 0xd0000000
#define MAX_DMA_CHANNELS 0

#define DMA_S0 0

Expand Down
7 changes: 0 additions & 7 deletions trunk/include/asm-arm/arch-clps711x/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,3 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */

7 changes: 0 additions & 7 deletions trunk/include/asm-arm/arch-ebsa110/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,3 @@
*
* EBSA110 DMA definitions
*/
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */

7 changes: 0 additions & 7 deletions trunk/include/asm-arm/arch-epxa10db/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,3 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */

2 changes: 0 additions & 2 deletions trunk/include/asm-arm/arch-imx/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0

/*
* DMA registration
*/
Expand Down
7 changes: 0 additions & 7 deletions trunk/include/asm-arm/arch-integrator/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,3 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */

5 changes: 0 additions & 5 deletions trunk/include/asm-arm/arch-iop3xx/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,3 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/

#ifndef _IOP3XX_DMA_H_P
#define _IOP3XX_DMA_H_P

#endif /* _ASM_ARCH_DMA_H_P */
7 changes: 0 additions & 7 deletions trunk/include/asm-arm/arch-ixp2000/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,3 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

/* No DMA */
#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */
3 changes: 0 additions & 3 deletions trunk/include/asm-arm/arch-ixp4xx/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,4 @@

#define MAX_DMA_ADDRESS (PAGE_OFFSET + SZ_64M)

/* No DMA */
#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */
1 change: 0 additions & 1 deletion trunk/include/asm-arm/arch-l7200/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* bytes of RAM.
*/
#define MAX_DMA_ADDRESS 0xd0000000
#define MAX_DMA_CHANNELS 0

#define DMA_S0 0

Expand Down
7 changes: 0 additions & 7 deletions trunk/include/asm-arm/arch-lh7a40x/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,3 @@
* version 2 as published by the Free Software Foundation.
*
*/

#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0 /* All DMA is internal to CPU */

#endif /* _ASM_ARCH_DMA_H */
2 changes: 0 additions & 2 deletions trunk/include/asm-arm/arch-omap/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0

/* Hardware registers for omap1 */
#define OMAP_DMA_BASE (0xfffed800)
#define OMAP_DMA_GCR (OMAP_DMA_BASE + 0x400)
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-arm/arch-pxa/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

/* No DMA as the rest of the world see it */
#define MAX_DMA_CHANNELS 0

/*
* Descriptor structure for PXA's DMA engine
* Note: this structure must always be aligned to a 16-byte boundary.
Expand Down
6 changes: 0 additions & 6 deletions trunk/include/asm-arm/arch-realview/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,3 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */
8 changes: 0 additions & 8 deletions trunk/include/asm-arm/arch-s3c2410/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@
#define MAX_DMA_TRANSFER_SIZE 0x100000 /* Data Unit is half word */


/* according to the samsung port, we cannot use the regular
* dma channels... we must therefore provide our own interface
* for DMA, and allow our drivers to use that.
*/

#define MAX_DMA_CHANNELS 0


/* we have 4 dma channels */
#define S3C2410_DMA_CHANNELS (4)

Expand Down
8 changes: 0 additions & 8 deletions trunk/include/asm-arm/arch-sa1100/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
#include "hardware.h"


/*
* The regular generic DMA interface is inappropriate for the
* SA1100 DMA model. None of the SA1100 specific drivers using
* DMA are portable anyway so it's pointless to try to twist the
* regular DMA API to accommodate them.
*/
#define MAX_DMA_CHANNELS 0

/*
* The SA1100 has six internal DMA channels.
*/
Expand Down
6 changes: 0 additions & 6 deletions trunk/include/asm-arm/arch-versatile/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,3 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_DMA_H
#define __ASM_ARCH_DMA_H

#define MAX_DMA_CHANNELS 0

#endif /* _ASM_ARCH_DMA_H */

0 comments on commit 6fff5b3

Please sign in to comment.