From 042231951b17bd4b7f7fc00d0091066676a534b6 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Thu, 7 Jan 2016 21:16:44 +0000 Subject: [PATCH] ismt: fix ISMT_DESC_ADDR_RW macro Submitted by: Masanobu SAITOH MFC after: 3 days --- sys/dev/ismt/ismt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ismt/ismt.c b/sys/dev/ismt/ismt.c index dc90e3f07d41..3fbcfed0af62 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 + ) */ #define ISMT_GR_GCTRL 0x000 /* General Control */