Merge branch 'akpm'
[linux-2.6/next.git] / arch / sh / include / asm / dma-register.h
blob51cd78feacff0bea6a442e37df7f532e62bfe3f5
1 /*
2 * Common header for the legacy SH DMA driver and the new dmaengine driver
4 * extracted from arch/sh/include/asm/dma-sh.h:
6 * Copyright (C) 2000 Takashi YOSHII
7 * Copyright (C) 2003 Paul Mundt
9 * This file is subject to the terms and conditions of the GNU General Public
10 * License. See the file "COPYING" in the main directory of this archive
11 * for more details.
13 #ifndef DMA_REGISTER_H
14 #define DMA_REGISTER_H
16 /* DMA register */
17 #define SAR 0x00
18 #define DAR 0x04
19 #define TCR 0x08
20 #define CHCR 0x0C
21 #define DMAOR 0x40
23 /* DMAOR definitions */
24 #define DMAOR_AE 0x00000004
25 #define DMAOR_NMIF 0x00000002
26 #define DMAOR_DME 0x00000001
28 /* Definitions for the SuperH DMAC */
29 #define REQ_L 0x00000000
30 #define REQ_E 0x00080000
31 #define RACK_H 0x00000000
32 #define RACK_L 0x00040000
33 #define ACK_R 0x00000000
34 #define ACK_W 0x00020000
35 #define ACK_H 0x00000000
36 #define ACK_L 0x00010000
37 #define DM_INC 0x00004000
38 #define DM_DEC 0x00008000
39 #define DM_FIX 0x0000c000
40 #define SM_INC 0x00001000
41 #define SM_DEC 0x00002000
42 #define SM_FIX 0x00003000
43 #define RS_IN 0x00000200
44 #define RS_OUT 0x00000300
45 #define TS_BLK 0x00000040
46 #define TM_BUR 0x00000020
47 #define CHCR_DE 0x00000001
48 #define CHCR_TE 0x00000002
49 #define CHCR_IE 0x00000004
51 #endif