From: <mar...@us...> - 2008-05-27 17:19:47
|
Revision: 579 http://openamt.svn.sourceforge.net/openamt/?rev=579&view=rev Author: marcin_obara Date: 2008-05-27 10:19:49 -0700 (Tue, 27 May 2008) Log Message: ----------- revert changes in count_full_read_slots() Modified Paths: -------------- heci/trunk/src/heci_interface.c Modified: heci/trunk/src/heci_interface.c =================================================================== --- heci/trunk/src/heci_interface.c 2008-05-26 17:48:04 UTC (rev 578) +++ heci/trunk/src/heci_interface.c 2008-05-27 17:19:49 UTC (rev 579) @@ -235,11 +235,14 @@ */ __s32 count_full_read_slots(struct iamt_heci_device *dev) { + char read_ptr, write_ptr; unsigned char buffer_depth, filled_slots; dev->me_hw_state = read_heci_register(dev, ME_CSR_HA); buffer_depth = (unsigned char)((dev->me_hw_state & ME_CBD_HRA) >> 24); - filled_slots = _host_get_filled_slots(dev); + read_ptr = (char) ((dev->me_hw_state & ME_CBRP_HRA) >> 8); + write_ptr = (char) ((dev->me_hw_state & ME_CBWP_HRA) >> 16); + filled_slots = (unsigned char) (write_ptr - read_ptr); if (filled_slots > buffer_depth) { /* overflow */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |