diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2017-02-06 06:16:37 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2017-02-06 06:16:37 +0000 |
commit | bc0218ee3bffcfd0c180b2e2f5d63203de8051ca (patch) | |
tree | 2206f29f18c29954a1639d6f73710cadee7542ef /sys/dev | |
parent | c8d3bdd3fb794c82e60d873b645216154e19f9f5 (diff) |
megaraid sas fusion chips have their own command for aborting tasks
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/mfii.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c index 43d828054ae..49848a83c07 100644 --- a/sys/dev/pci/mfii.c +++ b/sys/dev/pci/mfii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfii.c,v 1.32 2017/01/23 05:18:45 dlg Exp $ */ +/* $OpenBSD: mfii.c,v 1.33 2017/02/06 06:16:36 dlg Exp $ */ /* * Copyright (c) 2012 David Gwynne <dlg@openbsd.org> @@ -141,6 +141,23 @@ struct mfii_ld_map { struct mfii_dev_handle mlm_dev_handle[MFI_MAX_PD]; } __packed; +struct mfii_task_mgmt { + union { + uint8_t request[128]; + struct mpii_msg_scsi_task_request + mpii_request; + } __packed __aligned(8); + + union { + uint8_t reply[128]; + uint32_t flags; +#define MFII_TASK_MGMT_FLAGS_PD (1 << 0) +#define MFII_TASK_MGMT_FLAGS_LD (1 << 1) + struct mpii_msg_scsi_task_reply + mpii_reply; + } __packed __aligned(8); +} __packed __aligned(8); + struct mfii_dmamem { bus_dmamap_t mdm_map; bus_dma_segment_t mdm_seg; |