svn commit: r293369 - head/sys/dev/ismt

Jim Harris jimharris at FreeBSD.org
Thu Jan 7 21:16:45 UTC 2016


Author: jimharris
Date: Thu Jan  7 21:16:44 2016
New Revision: 293369
URL: https://svnweb.freebsd.org/changeset/base/293369

Log:
  ismt: fix ISMT_DESC_ADDR_RW macro
  
  Submitted by:	Masanobu SAITOH <msaitoh at netbsd.org>
  MFC after:	3 days

Modified:
  head/sys/dev/ismt/ismt.c

Modified: head/sys/dev/ismt/ismt.c
==============================================================================
--- head/sys/dev/ismt/ismt.c	Thu Jan  7 21:02:29 2016	(r293368)
+++ head/sys/dev/ismt/ismt.c	Thu Jan  7 21:16:44 2016	(r293369)
@@ -72,7 +72,7 @@ __FBSDID("$FreeBSD$");
 #define ISMT_DESC_LPR	0x80	/* Large Packet Received */
 
 /* Macros */
-#define ISMT_DESC_ADDR_RW(addr, is_read) ((addr) | (is_read))
+#define ISMT_DESC_ADDR_RW(addr, is_read) ((addr << 1) | (is_read))
 
 /* iSMT General Register address offsets (SMBBAR + <addr>) */
 #define ISMT_GR_GCTRL		0x000	/* General Control */


More information about the svn-src-all mailing list