summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2005-01-23 06:28:08 +0000
committermjacob <mjacob@FreeBSD.org>2005-01-23 06:28:08 +0000
commit4358fbbb7e2b1c1c2993239697dd04e13408c9a8 (patch)
treecf772ea98748cdc35edfd1d3bacf52b77fced2e6 /sys/dev
parent1f05b78eb2745d7882b974e54e552c4eed054c17 (diff)
downloadFreeBSD-src-4358fbbb7e2b1c1c2993239697dd04e13408c9a8.zip
FreeBSD-src-4358fbbb7e2b1c1c2993239697dd04e13408c9a8.tar.gz
Macroize the making of tag ids.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isp/isp_target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_target.c b/sys/dev/isp/isp_target.c
index 1d4dc6b..1d4b397 100644
--- a/sys/dev/isp/isp_target.c
+++ b/sys/dev/isp/isp_target.c
@@ -578,7 +578,7 @@ isp_got_msg(struct ispsoftc *isp, int bus, in_entry_t *inp)
msg.nt_tgt = inp->in_tgt;
msg.nt_lun = inp->in_lun;
msg.nt_tagtype = inp->in_tag_type;
- msg.nt_tagval = inp->in_tag_val;
+ IN_MAKE_TAGID(msg.nt_tagval, 0, inp);
MEMCPY(msg.nt_msg, inp->in_msg, IN_MSGLEN);
(void) isp_async(isp, ISPASYNC_TARGET_MESSAGE, &msg);
} else {
@@ -614,7 +614,7 @@ isp_got_msg_fc(struct ispsoftc *isp, int bus, in_fcentry_t *inp)
MEMZERO(&msg, sizeof (msg));
msg.nt_bus = bus;
msg.nt_iid = inp->in_iid;
- msg.nt_tagval = inp->in_seqid;
+ IN_FC_MAKE_TAGID(msg.nt_tagval, 0, inp);
msg.nt_lun = lun;
if (inp->in_task_flags & TASK_FLAGS_ABORT_TASK_SET) {
OpenPOWER on IntegriCloud