projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b36d3ba
)
Fixed decode of write post fifo depth.
author
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 2 Nov 2006 03:22:10 +0000
(
03:22
+0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Thu, 2 Nov 2006 03:22:10 +0000
(
03:22
+0000)
comedi/drivers/mite.h
patch
|
blob
|
history
diff --git
a/comedi/drivers/mite.h
b/comedi/drivers/mite.h
index db7759a07b1a4598f93451d398df465477704956..ed996a9c4bf448ef4eb5cc095e3c3566a2789dc7 100644
(file)
--- a/
comedi/drivers/mite.h
+++ b/
comedi/drivers/mite.h
@@
-222,7
+222,7
@@
static inline int mite_csigr_dmac(u32 csigr_bits)
};
static inline int mite_csigr_wpdep(u32 csigr_bits)
{ // write post fifo depth
- unsigned int wpdep_bits = (csigr_bits >>
16) & 0xf
;
+ unsigned int wpdep_bits = (csigr_bits >>
20) & 0x7
;
if(wpdep_bits == 0) return 0;
else return 1 << (wpdep_bits - 1);
};