ismt: fix ISMT_DESC_ADDR_RW macro

Submitted by:	Masanobu SAITOH <msaitoh@netbsd.org>
MFC after:	3 days
This commit is contained in:
Jim Harris 2016-01-07 21:16:44 +00:00
parent 1f2c926407
commit 042231951b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293369

View File

@ -72,7 +72,7 @@ __FBSDID("$FreeBSD$");
#define ISMT_DESC_LPR 0x80 /* Large Packet Received */ #define ISMT_DESC_LPR 0x80 /* Large Packet Received */
/* Macros */ /* 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>) */ /* iSMT General Register address offsets (SMBBAR + <addr>) */
#define ISMT_GR_GCTRL 0x000 /* General Control */ #define ISMT_GR_GCTRL 0x000 /* General Control */