aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptbase.h
diff options
context:
space:
mode:
authorKashyap, Desai <kashyap.desai@lsi.com>2009-05-29 07:14:06 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-06-09 18:27:49 -0400
commit37c60f374a855974c27bd30d5662a8fa5e933792 (patch)
tree98e1ee9a5f54152a7dfaf9f320a87fde791f544e /drivers/message/fusion/mptbase.h
parentf0f09d3b3f06900d64971625d6753dea0623ed45 (diff)
[SCSI] mpt fusion: rewrite of all internal generated functions
Rewrite of all internal generated functions that issue commands to firmware, porting them to be single threaded using the generic MPT_MGMT struct. Implemented using completion Queue. Signed-off-by: Kashyap Desai <kadesai@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/message/fusion/mptbase.h')
-rw-r--r--drivers/message/fusion/mptbase.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptbase.h b/drivers/message/fusion/mptbase.h
index 41273fff4b01..4d77256954f9 100644
--- a/drivers/message/fusion/mptbase.h
+++ b/drivers/message/fusion/mptbase.h
@@ -465,7 +465,9 @@ typedef struct _MPT_MGMT {
465 struct mutex mutex; 465 struct mutex mutex;
466 struct completion done; 466 struct completion done;
467 u8 reply[MPT_DEFAULT_FRAME_SIZE]; /* reply frame data */ 467 u8 reply[MPT_DEFAULT_FRAME_SIZE]; /* reply frame data */
468 u8 sense[MPT_SENSE_BUFFER_ALLOC];
468 u8 status; /* current command status */ 469 u8 status; /* current command status */
470 int completion_code;
469} MPT_MGMT; 471} MPT_MGMT;
470 472
471/* 473/*
@@ -709,6 +711,7 @@ typedef struct _MPT_ADAPTER
709 int sas_index; /* index refrencing */ 711 int sas_index; /* index refrencing */
710 MPT_MGMT sas_mgmt; 712 MPT_MGMT sas_mgmt;
711 MPT_MGMT mptbase_cmds; /* for sending config pages */ 713 MPT_MGMT mptbase_cmds; /* for sending config pages */
714 MPT_MGMT internal_cmds;
712 struct work_struct sas_persist_task; 715 struct work_struct sas_persist_task;
713 716
714 struct work_struct fc_setup_reset_work; 717 struct work_struct fc_setup_reset_work;
@@ -863,8 +866,6 @@ typedef struct _MPT_SCSI_HOST {
863 unsigned long timeouts; /* cmd timeouts */ 866 unsigned long timeouts; /* cmd timeouts */
864 ushort sel_timeout[MPT_MAX_FC_DEVICES]; 867 ushort sel_timeout[MPT_MAX_FC_DEVICES];
865 char *info_kbuf; 868 char *info_kbuf;
866 wait_queue_head_t scandv_waitq;
867 int scandv_wait_done;
868 long last_queue_full; 869 long last_queue_full;
869 u16 tm_iocstatus; 870 u16 tm_iocstatus;
870 u16 spi_pending; 871 u16 spi_pending;