summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-04-27 18:06:54 +0000
committermarius <marius@FreeBSD.org>2010-04-27 18:06:54 +0000
commite4de7c863563cef3e5f2ebcf832f5be8e954ad84 (patch)
treee663bfc9e47ff3e99602874c518cc29b74109990
parent810d92b3d2a82e273d353c01b779d771b914ede7 (diff)
downloadFreeBSD-src-e4de7c863563cef3e5f2ebcf832f5be8e954ad84.zip
FreeBSD-src-e4de7c863563cef3e5f2ebcf832f5be8e954ad84.tar.gz
Replace a magic value with the appropriate macro.
-rw-r--r--sys/dev/mpt/mpt_cam.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/mpt/mpt_cam.c b/sys/dev/mpt/mpt_cam.c
index 5e63ef9..56ea3e0 100644
--- a/sys/dev/mpt/mpt_cam.c
+++ b/sys/dev/mpt/mpt_cam.c
@@ -1058,12 +1058,13 @@ mpt_read_config_info_spi(struct mpt_softc *mpt)
static int
mpt_set_initial_config_spi(struct mpt_softc *mpt)
{
- int i, pp1val = ((1 << mpt->mpt_ini_id) << 16) | mpt->mpt_ini_id;
- int error;
+ int error, i, pp1val;
mpt->mpt_disc_enable = 0xff;
mpt->mpt_tag_enable = 0;
+ pp1val = ((1 << mpt->mpt_ini_id) <<
+ MPI_SCSIPORTPAGE1_CFG_SHIFT_PORT_RESPONSE_ID) | mpt->mpt_ini_id;
if (mpt->mpt_port_page1.Configuration != pp1val) {
CONFIG_PAGE_SCSI_PORT_1 tmp;
OpenPOWER on IntegriCloud