diff options
Diffstat (limited to 'include/asm-powerpc/dbdma.h')
-rw-r--r-- | include/asm-powerpc/dbdma.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-powerpc/dbdma.h b/include/asm-powerpc/dbdma.h index 8973565f95d3..e23f07e73cb3 100644 --- a/include/asm-powerpc/dbdma.h +++ b/include/asm-powerpc/dbdma.h | |||
@@ -95,7 +95,13 @@ struct dbdma_cmd { | |||
95 | #define DBDMA_DO_STOP(regs) do { \ | 95 | #define DBDMA_DO_STOP(regs) do { \ |
96 | out_le32(&((regs)->control), (RUN|FLUSH)<<16); \ | 96 | out_le32(&((regs)->control), (RUN|FLUSH)<<16); \ |
97 | while(in_le32(&((regs)->status)) & (ACTIVE|FLUSH)) \ | 97 | while(in_le32(&((regs)->status)) & (ACTIVE|FLUSH)) \ |
98 | ; \ | 98 | ; \ |
99 | } while(0) | ||
100 | |||
101 | #define DBDMA_DO_RESET(regs) do { \ | ||
102 | out_le32(&((regs)->control), (ACTIVE|DEAD|WAKE|FLUSH|PAUSE|RUN)<<16);\ | ||
103 | while(in_le32(&((regs)->status)) & (RUN)) \ | ||
104 | ; \ | ||
99 | } while(0) | 105 | } while(0) |
100 | 106 | ||
101 | #endif /* _ASM_DBDMA_H_ */ | 107 | #endif /* _ASM_DBDMA_H_ */ |