From: Frank Mori Hess Date: Thu, 2 Nov 2006 03:22:10 +0000 (+0000) Subject: Fixed decode of write post fifo depth. X-Git-Tag: r0_7_74~165 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=34856d2c9c07fe9f97867b9c3d718792bf643841;p=comedi.git Fixed decode of write post fifo depth. --- diff --git a/comedi/drivers/mite.h b/comedi/drivers/mite.h index db7759a0..ed996a9c 100644 --- 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); };