diff options
Diffstat (limited to 'arch/arm/mach-bcmring/csp/dmac/dmacHw.c')
-rw-r--r-- | arch/arm/mach-bcmring/csp/dmac/dmacHw.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/arch/arm/mach-bcmring/csp/dmac/dmacHw.c b/arch/arm/mach-bcmring/csp/dmac/dmacHw.c index 6b9be2e98e5..547f746c7ff 100644 --- a/arch/arm/mach-bcmring/csp/dmac/dmacHw.c +++ b/arch/arm/mach-bcmring/csp/dmac/dmacHw.c | |||
@@ -25,11 +25,11 @@ | |||
25 | /****************************************************************************/ | 25 | /****************************************************************************/ |
26 | 26 | ||
27 | /* ---- Include Files ---------------------------------------------------- */ | 27 | /* ---- Include Files ---------------------------------------------------- */ |
28 | #include <csp/stdint.h> | 28 | #include <linux/types.h> |
29 | #include <csp/string.h> | 29 | #include <linux/string.h> |
30 | #include <stddef.h> | 30 | #include <linux/stddef.h> |
31 | 31 | ||
32 | #include <csp/dmacHw.h> | 32 | #include <mach/csp/dmacHw.h> |
33 | #include <mach/csp/dmacHw_reg.h> | 33 | #include <mach/csp/dmacHw_reg.h> |
34 | #include <mach/csp/dmacHw_priv.h> | 34 | #include <mach/csp/dmacHw_priv.h> |
35 | #include <mach/csp/chipcHw_inline.h> | 35 | #include <mach/csp/chipcHw_inline.h> |
@@ -55,33 +55,32 @@ static uint32_t GetFifoSize(dmacHw_HANDLE_t handle /* [ IN ] DMA Channel handl | |||
55 | ) { | 55 | ) { |
56 | uint32_t val = 0; | 56 | uint32_t val = 0; |
57 | dmacHw_CBLK_t *pCblk = dmacHw_HANDLE_TO_CBLK(handle); | 57 | dmacHw_CBLK_t *pCblk = dmacHw_HANDLE_TO_CBLK(handle); |
58 | dmacHw_MISC_t *pMiscReg = | 58 | dmacHw_MISC_t __iomem *pMiscReg = (void __iomem *)dmacHw_REG_MISC_BASE(pCblk->module); |
59 | (dmacHw_MISC_t *) dmacHw_REG_MISC_BASE(pCblk->module); | ||
60 | 59 | ||
61 | switch (pCblk->channel) { | 60 | switch (pCblk->channel) { |
62 | case 0: | 61 | case 0: |
63 | val = (pMiscReg->CompParm2.lo & 0x70000000) >> 28; | 62 | val = (readl(&pMiscReg->CompParm2.lo) & 0x70000000) >> 28; |
64 | break; | 63 | break; |
65 | case 1: | 64 | case 1: |
66 | val = (pMiscReg->CompParm3.hi & 0x70000000) >> 28; | 65 | val = (readl(&pMiscReg->CompParm3.hi) & 0x70000000) >> 28; |
67 | break; | 66 | break; |
68 | case 2: | 67 | case 2: |
69 | val = (pMiscReg->CompParm3.lo & 0x70000000) >> 28; | 68 | val = (readl(&pMiscReg->CompParm3.lo) & 0x70000000) >> 28; |
70 | break; | 69 | break; |
71 | case 3: | 70 | case 3: |
72 | val = (pMiscReg->CompParm4.hi & 0x70000000) >> 28; | 71 | val = (readl(&pMiscReg->CompParm4.hi) & 0x70000000) >> 28; |
73 | break; | 72 | break; |
74 | case 4: | 73 | case 4: |
75 | val = (pMiscReg->CompParm4.lo & 0x70000000) >> 28; | 74 | val = (readl(&pMiscReg->CompParm4.lo) & 0x70000000) >> 28; |
76 | break; | 75 | break; |
77 | case 5: | 76 | case 5: |
78 | val = (pMiscReg->CompParm5.hi & 0x70000000) >> 28; | 77 | val = (readl(&pMiscReg->CompParm5.hi) & 0x70000000) >> 28; |
79 | break; | 78 | break; |
80 | case 6: | 79 | case 6: |
81 | val = (pMiscReg->CompParm5.lo & 0x70000000) >> 28; | 80 | val = (readl(&pMiscReg->CompParm5.lo) & 0x70000000) >> 28; |
82 | break; | 81 | break; |
83 | case 7: | 82 | case 7: |
84 | val = (pMiscReg->CompParm6.hi & 0x70000000) >> 28; | 83 | val = (readl(&pMiscReg->CompParm6.hi) & 0x70000000) >> 28; |
85 | break; | 84 | break; |
86 | } | 85 | } |
87 | 86 | ||