aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_base.h
diff options
context:
space:
mode:
authorKashyap, Desai <kashyap.desai@lsi.com>2009-10-05 06:26:56 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-10-29 13:03:16 -0400
commit744090d38b47ed8ead8f68b6f0c65866c0b9b17a (patch)
tree2154fc14b1da12517f280c6e9ca5b4d3f1662c10 /drivers/scsi/mpt2sas/mpt2sas_base.h
parent8ffc457ed6fe33728657a0cfb7509b90d554c21f (diff)
[SCSI] mpt2sas : Add support for RAID Action System Shutdown Initiated at OS shutdown
(1) Added new function _scsih_ir_shutdown. This function will issue the MPI2_RAID_ACTION_SYSTEM_SHUTDOWN_INITIATED request via MPI2_FUNCTION_RAID_ACTION. The function will wait 10 seconds for reply message frame, then print out the ioc status and loginfo. This function is only called when there are raid volumes present. (2) Add shutdown callback in the struct pci_driver object scsih_driver. This will be called only when the system is shutting down. From this function, we will call _scsih_ir_shutdown mentioned above. (3) Add support in _scsih_remove to call _scsih_ir_shutdown. The function _scsih_remove will be called when the driver is unloaded (and system is still running). scsih internal command contex is added to send internal message frames from mpt2sas_scsih.c. Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by: Eric Moore <Eric.moore@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_base.h')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h
index 7efb6ab749df..eb51fe9f369d 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_base.h
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.h
@@ -492,12 +492,14 @@ typedef void (*MPT_ADD_SGE)(void *paddr, u32 flags_length, dma_addr_t dma_addr);
492 * @msix_table_backup: backup msix table 492 * @msix_table_backup: backup msix table
493 * @scsi_io_cb_idx: shost generated commands 493 * @scsi_io_cb_idx: shost generated commands
494 * @tm_cb_idx: task management commands 494 * @tm_cb_idx: task management commands
495 * @scsih_cb_idx: scsih internal commands
495 * @transport_cb_idx: transport internal commands 496 * @transport_cb_idx: transport internal commands
496 * @ctl_cb_idx: clt internal commands 497 * @ctl_cb_idx: clt internal commands
497 * @base_cb_idx: base internal commands 498 * @base_cb_idx: base internal commands
498 * @config_cb_idx: base internal commands 499 * @config_cb_idx: base internal commands
499 * @base_cmds: 500 * @base_cmds:
500 * @transport_cmds: 501 * @transport_cmds:
502 * @scsih_cmds:
501 * @tm_cmds: 503 * @tm_cmds:
502 * @ctl_cmds: 504 * @ctl_cmds:
503 * @config_cmds: 505 * @config_cmds:
@@ -624,6 +626,7 @@ struct MPT2SAS_ADAPTER {
624 u8 scsi_io_cb_idx; 626 u8 scsi_io_cb_idx;
625 u8 tm_cb_idx; 627 u8 tm_cb_idx;
626 u8 transport_cb_idx; 628 u8 transport_cb_idx;
629 u8 scsih_cb_idx;
627 u8 ctl_cb_idx; 630 u8 ctl_cb_idx;
628 u8 base_cb_idx; 631 u8 base_cb_idx;
629 u8 config_cb_idx; 632 u8 config_cb_idx;
@@ -631,6 +634,7 @@ struct MPT2SAS_ADAPTER {
631 u8 tm_sas_control_cb_idx; 634 u8 tm_sas_control_cb_idx;
632 struct _internal_cmd base_cmds; 635 struct _internal_cmd base_cmds;
633 struct _internal_cmd transport_cmds; 636 struct _internal_cmd transport_cmds;
637 struct _internal_cmd scsih_cmds;
634 struct _internal_cmd tm_cmds; 638 struct _internal_cmd tm_cmds;
635 struct _internal_cmd ctl_cmds; 639 struct _internal_cmd ctl_cmds;
636 struct _internal_cmd config_cmds; 640 struct _internal_cmd config_cmds;