summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2018-03-16 04:30:32 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2018-03-16 04:30:32 +0000
commitd59027601ae22203988578ba31f9f2abd1e2ee9f (patch)
tree060f8e1cb6e338e9b429f6a90e9c0ad159610cc0 /sys
parent41af51526ada0b2e087ae2425257434ac1554c9d (diff)
use MFI_STAT_INVALID_STATUS where appropriate
part of a diff from Naoki Fukaumi ok dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/mfii.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c
index 4bd6fc1a1f9..0a5266acda2 100644
--- a/sys/dev/pci/mfii.c
+++ b/sys/dev/pci/mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfii.c,v 1.48 2018/03/16 04:28:14 jmatthew Exp $ */
+/* $OpenBSD: mfii.c,v 1.49 2018/03/16 04:30:31 jmatthew Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
@@ -1304,7 +1304,7 @@ mfii_mfa_poll(struct mfii_softc *sc, struct mfii_ccb *ccb)
#endif
hdr->mfh_context = ccb->ccb_smid;
- hdr->mfh_cmd_status = 0xff;
+ hdr->mfh_cmd_status = MFI_STAT_INVALID_STATUS;
hdr->mfh_flags |= htole16(MFI_FRAME_DONT_POST_IN_REPLY_QUEUE);
r = MFII_REQ_MFA(ccb->ccb_request_dva);
@@ -1317,7 +1317,7 @@ mfii_mfa_poll(struct mfii_softc *sc, struct mfii_ccb *ccb)
ccb->ccb_request_offset, MFII_REQUEST_SIZE,
BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
- if (hdr->mfh_cmd_status != 0xff)
+ if (hdr->mfh_cmd_status != MFI_STAT_INVALID_STATUS)
break;
if (to++ > 5000) { /* XXX 5 seconds busywait sucks */