Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2013 15:23:02 +0000 (UTC)
From:      "Jayachandran C." <jchandra@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245883 - head/sys/mips/nlm/hal
Message-ID:  <201301241523.r0OFN2OZ083239@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.vivekanandan@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);
 
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301241523.r0OFN2OZ083239>