mpt3sas: Define 'hba_mpi_version_belonged' IOC variable
1. Use 'hba_mpi_version_belonged' IOC varable to uniquely identify each individual generation driver functionality at runtime. 2. Declare global variable 'driver_name' and use this variable while reserving PCI regions and while allocating the IRQs. Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com> Acked-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
09ec55ed74
commit
d357e84d65
@@ -870,6 +870,7 @@ struct MPT3SAS_ADAPTER {
|
||||
MPT_BUILD_SG build_sg;
|
||||
MPT_BUILD_ZERO_LEN_SGE build_zero_len_sge;
|
||||
u16 sge_size_ieee;
|
||||
u16 hba_mpi_version_belonged;
|
||||
|
||||
/* function ptr for MPI sg elements only */
|
||||
MPT_BUILD_SG build_sg_mpi;
|
||||
@@ -1023,6 +1024,8 @@ typedef u8 (*MPT_CALLBACK)(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index,
|
||||
|
||||
/* base shared API */
|
||||
extern struct list_head mpt3sas_ioc_list;
|
||||
extern char driver_name[MPT_NAME_LENGTH];
|
||||
|
||||
void mpt3sas_base_start_watchdog(struct MPT3SAS_ADAPTER *ioc);
|
||||
void mpt3sas_base_stop_watchdog(struct MPT3SAS_ADAPTER *ioc);
|
||||
|
||||
|
Reference in New Issue
Block a user