aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi/mfi.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-04-16 16:44:13 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-04-28 13:48:41 +0200
commit34bb4d02e00e508fa9d111a6a31b45bbfecbdba5 (patch)
tree0158a41c026b07d61c3368b3f12e4d4363b987af /hw/scsi/mfi.h
parent6ee143a0a4f8b5c437ac327e3d694a6a0e5380ad (diff)
downloadqemu-34bb4d02e00e508fa9d111a6a31b45bbfecbdba5.zip
qemu-34bb4d02e00e508fa9d111a6a31b45bbfecbdba5.tar.gz
qemu-34bb4d02e00e508fa9d111a6a31b45bbfecbdba5.tar.bz2
megasas: Implement LD_LIST_QUERY
Newer firmware implement a LD_LIST_QUERY command, and due to a driver issue no drives might be detected if this command isn't supported. So add emulation for this command, too. Cc: qemu-stable@nongnu.org Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/mfi.h')
-rw-r--r--hw/scsi/mfi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/scsi/mfi.h b/hw/scsi/mfi.h
index cd8355b..a3034f6 100644
--- a/hw/scsi/mfi.h
+++ b/hw/scsi/mfi.h
@@ -164,6 +164,7 @@ typedef enum {
MFI_DCMD_PD_BLINK = 0x02070100,
MFI_DCMD_PD_UNBLINK = 0x02070200,
MFI_DCMD_LD_GET_LIST = 0x03010000,
+ MFI_DCMD_LD_LIST_QUERY = 0x03010100,
MFI_DCMD_LD_GET_INFO = 0x03020000,
MFI_DCMD_LD_GET_PROP = 0x03030000,
MFI_DCMD_LD_SET_PROP = 0x03040000,
@@ -411,6 +412,14 @@ typedef enum {
MR_PD_QUERY_TYPE_EXPOSED_TO_HOST = 5, /*query for system drives */
} mfi_pd_query_type;
+typedef enum {
+ MR_LD_QUERY_TYPE_ALL = 0,
+ MR_LD_QUERY_TYPE_EXPOSED_TO_HOST = 1,
+ MR_LD_QUERY_TYPE_USED_TGT_IDS = 2,
+ MR_LD_QUERY_TYPE_CLUSTER_ACCESS = 3,
+ MR_LD_QUERY_TYPE_CLUSTER_LOCALE = 4,
+} mfi_ld_query_type;
+
/*
* Other propertities and definitions
*/