From 34856d2c9c07fe9f97867b9c3d718792bf643841 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 2 Nov 2006 03:22:10 +0000 Subject: [PATCH] Fixed decode of write post fifo depth. --- comedi/drivers/mite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }; -- 2.26.2