hisi_sas: Add scsi host registration
Add functionality to register device as a scsi host. The SAS domain transport ops are empty at this point. Signed-off-by: John Garry <john.garry@huawei.com> Reviewed-by: Arnd Bergmann <arnd@arndb.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
e8899fad96
commit
7eb7869f13
@@ -23,4 +23,38 @@
|
||||
|
||||
#define DRV_VERSION "v1.0"
|
||||
|
||||
#define HISI_SAS_MAX_PHYS 9
|
||||
#define HISI_SAS_MAX_ITCT_ENTRIES 4096
|
||||
#define HISI_SAS_MAX_DEVICES HISI_SAS_MAX_ITCT_ENTRIES
|
||||
#define HISI_SAS_COMMAND_ENTRIES 8192
|
||||
|
||||
struct hisi_sas_phy {
|
||||
struct asd_sas_phy sas_phy;
|
||||
};
|
||||
|
||||
struct hisi_sas_port {
|
||||
struct asd_sas_port sas_port;
|
||||
};
|
||||
|
||||
struct hisi_sas_hw {
|
||||
};
|
||||
|
||||
struct hisi_hba {
|
||||
/* This must be the first element, used by SHOST_TO_SAS_HA */
|
||||
struct sas_ha_struct *p;
|
||||
|
||||
struct platform_device *pdev;
|
||||
u8 sas_addr[SAS_ADDR_SIZE];
|
||||
|
||||
int n_phy;
|
||||
|
||||
/* SCSI/SAS glue */
|
||||
struct sas_ha_struct sha;
|
||||
struct Scsi_Host *shost;
|
||||
struct hisi_sas_phy phy[HISI_SAS_MAX_PHYS];
|
||||
struct hisi_sas_port port[HISI_SAS_MAX_PHYS];
|
||||
const struct hisi_sas_hw *hw; /* Low level hw interface */
|
||||
};
|
||||
|
||||
#define HISI_SAS_SGE_PAGE_CNT SCSI_MAX_SG_SEGMENTS
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user