summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2016-01-11 17:54:23 +0000
committerjimharris <jimharris@FreeBSD.org>2016-01-11 17:54:23 +0000
commit4ee57b647acae9c87b3282cb150cb5d9ab733e28 (patch)
treee73c50488fe8b070689060381de718fb6c9574b8
parent984dd4e5531526b5078f65af5b104c2a3fddfe08 (diff)
downloadFreeBSD-src-4ee57b647acae9c87b3282cb150cb5d9ab733e28.zip
FreeBSD-src-4ee57b647acae9c87b3282cb150cb5d9ab733e28.tar.gz
MFC r293369:
ismt: fix ISMT_DESC_ADDR_RW macro
-rw-r--r--sys/dev/ismt/ismt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ismt/ismt.c b/sys/dev/ismt/ismt.c
index dc90e3f..3fbcfed 100644
--- a/sys/dev/ismt/ismt.c
+++ b/sys/dev/ismt/ismt.c
@@ -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 */
OpenPOWER on IntegriCloud