projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[POWERPC] Remove fixup_bigphys_addr() for arch/powerpc to avoid link error
[powerpc.git]
/
include
/
asm-powerpc
/
dbdma.h
diff --git
a/include/asm-powerpc/dbdma.h
b/include/asm-powerpc/dbdma.h
index
8973565
..
e23f07e
100644
(file)
--- a/
include/asm-powerpc/dbdma.h
+++ b/
include/asm-powerpc/dbdma.h
@@
-95,7
+95,13
@@
struct dbdma_cmd {
#define DBDMA_DO_STOP(regs) do { \
out_le32(&((regs)->control), (RUN|FLUSH)<<16); \
while(in_le32(&((regs)->status)) & (ACTIVE|FLUSH)) \
#define DBDMA_DO_STOP(regs) do { \
out_le32(&((regs)->control), (RUN|FLUSH)<<16); \
while(in_le32(&((regs)->status)) & (ACTIVE|FLUSH)) \
- ; \
+ ; \
+} while(0)
+
+#define DBDMA_DO_RESET(regs) do { \
+ out_le32(&((regs)->control), (ACTIVE|DEAD|WAKE|FLUSH|PAUSE|RUN)<<16);\
+ while(in_le32(&((regs)->status)) & (RUN)) \
+ ; \
} while(0)
#endif /* _ASM_DBDMA_H_ */
} while(0)
#endif /* _ASM_DBDMA_H_ */