diff options
Diffstat (limited to 'arch/mips/include/asm/jazzdma.h')
-rw-r--r-- | arch/mips/include/asm/jazzdma.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/arch/mips/include/asm/jazzdma.h b/arch/mips/include/asm/jazzdma.h index 8bb37bba68f0..2cefc3c47241 100644 --- a/arch/mips/include/asm/jazzdma.h +++ b/arch/mips/include/asm/jazzdma.h | |||
@@ -10,7 +10,7 @@ | |||
10 | extern unsigned long vdma_alloc(unsigned long paddr, unsigned long size); | 10 | extern unsigned long vdma_alloc(unsigned long paddr, unsigned long size); |
11 | extern int vdma_free(unsigned long laddr); | 11 | extern int vdma_free(unsigned long laddr); |
12 | extern int vdma_remap(unsigned long laddr, unsigned long paddr, | 12 | extern int vdma_remap(unsigned long laddr, unsigned long paddr, |
13 | unsigned long size); | 13 | unsigned long size); |
14 | extern unsigned long vdma_phys2log(unsigned long paddr); | 14 | extern unsigned long vdma_phys2log(unsigned long paddr); |
15 | extern unsigned long vdma_log2phys(unsigned long laddr); | 15 | extern unsigned long vdma_log2phys(unsigned long laddr); |
16 | extern void vdma_stats(void); /* for debugging only */ | 16 | extern void vdma_stats(void); /* for debugging only */ |
@@ -35,14 +35,14 @@ extern int vdma_get_enable(int channel); | |||
35 | * Macros to get page no. and offset of a given address | 35 | * Macros to get page no. and offset of a given address |
36 | * Note that VDMA_PAGE() works for physical addresses only | 36 | * Note that VDMA_PAGE() works for physical addresses only |
37 | */ | 37 | */ |
38 | #define VDMA_PAGE(a) ((unsigned int)(a) >> 12) | 38 | #define VDMA_PAGE(a) ((unsigned int)(a) >> 12) |
39 | #define VDMA_OFFSET(a) ((unsigned int)(a) & (VDMA_PAGESIZE-1)) | 39 | #define VDMA_OFFSET(a) ((unsigned int)(a) & (VDMA_PAGESIZE-1)) |
40 | 40 | ||
41 | /* | 41 | /* |
42 | * error code returned by vdma_alloc() | 42 | * error code returned by vdma_alloc() |
43 | * (See also arch/mips/kernel/jazzdma.c) | 43 | * (See also arch/mips/kernel/jazzdma.c) |
44 | */ | 44 | */ |
45 | #define VDMA_ERROR 0xffffffff | 45 | #define VDMA_ERROR 0xffffffff |
46 | 46 | ||
47 | /* | 47 | /* |
48 | * VDMA pagetable entry description | 48 | * VDMA pagetable entry description |
@@ -59,37 +59,37 @@ typedef volatile struct VDMA_PGTBL_ENTRY { | |||
59 | */ | 59 | */ |
60 | #define JAZZ_R4030_CHNL_MODE 0xE0000100 /* 8 DMA Channel Mode Registers, */ | 60 | #define JAZZ_R4030_CHNL_MODE 0xE0000100 /* 8 DMA Channel Mode Registers, */ |
61 | /* 0xE0000100,120,140... */ | 61 | /* 0xE0000100,120,140... */ |
62 | #define JAZZ_R4030_CHNL_ENABLE 0xE0000108 /* 8 DMA Channel Enable Regs, */ | 62 | #define JAZZ_R4030_CHNL_ENABLE 0xE0000108 /* 8 DMA Channel Enable Regs, */ |
63 | /* 0xE0000108,128,148... */ | 63 | /* 0xE0000108,128,148... */ |
64 | #define JAZZ_R4030_CHNL_COUNT 0xE0000110 /* 8 DMA Channel Byte Cnt Regs, */ | 64 | #define JAZZ_R4030_CHNL_COUNT 0xE0000110 /* 8 DMA Channel Byte Cnt Regs, */ |
65 | /* 0xE0000110,130,150... */ | 65 | /* 0xE0000110,130,150... */ |
66 | #define JAZZ_R4030_CHNL_ADDR 0xE0000118 /* 8 DMA Channel Address Regs, */ | 66 | #define JAZZ_R4030_CHNL_ADDR 0xE0000118 /* 8 DMA Channel Address Regs, */ |
67 | /* 0xE0000118,138,158... */ | 67 | /* 0xE0000118,138,158... */ |
68 | 68 | ||
69 | /* channel enable register bits */ | 69 | /* channel enable register bits */ |
70 | 70 | ||
71 | #define R4030_CHNL_ENABLE (1<<0) | 71 | #define R4030_CHNL_ENABLE (1<<0) |
72 | #define R4030_CHNL_WRITE (1<<1) | 72 | #define R4030_CHNL_WRITE (1<<1) |
73 | #define R4030_TC_INTR (1<<8) | 73 | #define R4030_TC_INTR (1<<8) |
74 | #define R4030_MEM_INTR (1<<9) | 74 | #define R4030_MEM_INTR (1<<9) |
75 | #define R4030_ADDR_INTR (1<<10) | 75 | #define R4030_ADDR_INTR (1<<10) |
76 | 76 | ||
77 | /* | 77 | /* |
78 | * Channel mode register bits | 78 | * Channel mode register bits |
79 | */ | 79 | */ |
80 | #define R4030_MODE_ATIME_40 (0) /* device access time on remote bus */ | 80 | #define R4030_MODE_ATIME_40 (0) /* device access time on remote bus */ |
81 | #define R4030_MODE_ATIME_80 (1) | 81 | #define R4030_MODE_ATIME_80 (1) |
82 | #define R4030_MODE_ATIME_120 (2) | 82 | #define R4030_MODE_ATIME_120 (2) |
83 | #define R4030_MODE_ATIME_160 (3) | 83 | #define R4030_MODE_ATIME_160 (3) |
84 | #define R4030_MODE_ATIME_200 (4) | 84 | #define R4030_MODE_ATIME_200 (4) |
85 | #define R4030_MODE_ATIME_240 (5) | 85 | #define R4030_MODE_ATIME_240 (5) |
86 | #define R4030_MODE_ATIME_280 (6) | 86 | #define R4030_MODE_ATIME_280 (6) |
87 | #define R4030_MODE_ATIME_320 (7) | 87 | #define R4030_MODE_ATIME_320 (7) |
88 | #define R4030_MODE_WIDTH_8 (1<<3) /* device data bus width */ | 88 | #define R4030_MODE_WIDTH_8 (1<<3) /* device data bus width */ |
89 | #define R4030_MODE_WIDTH_16 (2<<3) | 89 | #define R4030_MODE_WIDTH_16 (2<<3) |
90 | #define R4030_MODE_WIDTH_32 (3<<3) | 90 | #define R4030_MODE_WIDTH_32 (3<<3) |
91 | #define R4030_MODE_INTR_EN (1<<5) | 91 | #define R4030_MODE_INTR_EN (1<<5) |
92 | #define R4030_MODE_BURST (1<<6) /* Rev. 2 only */ | 92 | #define R4030_MODE_BURST (1<<6) /* Rev. 2 only */ |
93 | #define R4030_MODE_FAST_ACK (1<<7) /* Rev. 2 only */ | 93 | #define R4030_MODE_FAST_ACK (1<<7) /* Rev. 2 only */ |
94 | 94 | ||
95 | #endif /* _ASM_JAZZDMA_H */ | 95 | #endif /* _ASM_JAZZDMA_H */ |