Author: jchandra Date: Thu Jan 24 15:23:01 2013 New Revision: 245883 URL: http://svnweb.freebsd.org/changeset/base/245883
Log: Fix credit configuration on Broadcom XLP CMS The CMS output queue credit configuration register is 64 bit, so use a 64 bit variable while updating it. Obtained from: Venkatesh J V <venkatesh.vivekanan...@broadcom.com> Modified: head/sys/mips/nlm/hal/fmn.c Modified: head/sys/mips/nlm/hal/fmn.c ============================================================================== --- head/sys/mips/nlm/hal/fmn.c Thu Jan 24 15:18:41 2013 (r245882) +++ head/sys/mips/nlm/hal/fmn.c Thu Jan 24 15:23:01 2013 (r245883) @@ -138,9 +138,9 @@ uint32_t nlm_cms_total_stations = 18 * 4 void nlm_cms_setup_credits(uint64_t base, int destid, int srcid, int credit) { - uint32_t val; + uint64_t val; - val = ((credit << 24) | (destid << 12) | (srcid << 0)); + val = (((uint64_t)credit << 24) | (destid << 12) | (srcid << 0)); nlm_write_cms_reg(base, CMS_OUTPUTQ_CREDIT_CFG, val); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"