diff options
author | John Soni Jose <sony.john-n@emulex.com> | 2012-10-19 19:13:20 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-11-26 23:59:37 -0500 |
commit | 139a1b1e777144aa745f10741e2fe09b93e63c38 (patch) | |
tree | 8e5a550eb75768ac54d8d9dfba930f6f42f466e8 /drivers/scsi/be2iscsi | |
parent | 8359c79b3b89e97b7d4ef656915c1378069cfa93 (diff) |
[SCSI] be2iscsi: Fix driver support for Skyhawk-R adapter.
Fix support for Skyhawk-R adapter by populating the pci_id_table
Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be.h | 2 | ||||
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 3 | ||||
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.h | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be.h b/drivers/scsi/be2iscsi/be.h index 3c1f8e9a15e7..36777ef57ad5 100644 --- a/drivers/scsi/be2iscsi/be.h +++ b/drivers/scsi/be2iscsi/be.h | |||
@@ -28,7 +28,7 @@ | |||
28 | /* BladeEngine Generation numbers */ | 28 | /* BladeEngine Generation numbers */ |
29 | #define BE_GEN2 2 | 29 | #define BE_GEN2 2 |
30 | #define BE_GEN3 3 | 30 | #define BE_GEN3 3 |
31 | 31 | #define BE_GEN4 4 | |
32 | struct be_dma_mem { | 32 | struct be_dma_mem { |
33 | void *va; | 33 | void *va; |
34 | dma_addr_t dma; | 34 | dma_addr_t dma; |
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 0df2b2ac6ec9..3328eb8e69f0 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -521,6 +521,7 @@ static DEFINE_PCI_DEVICE_TABLE(beiscsi_pci_id_table) = { | |||
521 | { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID1) }, | 521 | { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID1) }, |
522 | { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID2) }, | 522 | { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID2) }, |
523 | { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID3) }, | 523 | { PCI_DEVICE(BE_VENDOR_ID, OC_DEVICE_ID3) }, |
524 | { PCI_DEVICE(ELX_VENDOR_ID, OC_SKH_ID1) }, | ||
524 | { 0 } | 525 | { 0 } |
525 | }; | 526 | }; |
526 | MODULE_DEVICE_TABLE(pci, beiscsi_pci_id_table); | 527 | MODULE_DEVICE_TABLE(pci, beiscsi_pci_id_table); |
@@ -4611,6 +4612,8 @@ static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev, | |||
4611 | case OC_DEVICE_ID3: | 4612 | case OC_DEVICE_ID3: |
4612 | phba->generation = BE_GEN3; | 4613 | phba->generation = BE_GEN3; |
4613 | break; | 4614 | break; |
4615 | case OC_SKH_ID1: | ||
4616 | phba->generation = BE_GEN4; | ||
4614 | default: | 4617 | default: |
4615 | phba->generation = 0; | 4618 | phba->generation = 0; |
4616 | } | 4619 | } |
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h index 02b23c954e1e..5302d3762f77 100644 --- a/drivers/scsi/be2iscsi/be_main.h +++ b/drivers/scsi/be2iscsi/be_main.h | |||
@@ -42,6 +42,7 @@ | |||
42 | #define DRV_DESC BE_NAME " " "Driver" | 42 | #define DRV_DESC BE_NAME " " "Driver" |
43 | 43 | ||
44 | #define BE_VENDOR_ID 0x19A2 | 44 | #define BE_VENDOR_ID 0x19A2 |
45 | #define ELX_VENDOR_ID 0x10DF | ||
45 | /* DEVICE ID's for BE2 */ | 46 | /* DEVICE ID's for BE2 */ |
46 | #define BE_DEVICE_ID1 0x212 | 47 | #define BE_DEVICE_ID1 0x212 |
47 | #define OC_DEVICE_ID1 0x702 | 48 | #define OC_DEVICE_ID1 0x702 |
@@ -51,6 +52,9 @@ | |||
51 | #define BE_DEVICE_ID2 0x222 | 52 | #define BE_DEVICE_ID2 0x222 |
52 | #define OC_DEVICE_ID3 0x712 | 53 | #define OC_DEVICE_ID3 0x712 |
53 | 54 | ||
55 | /* DEVICE ID for SKH */ | ||
56 | #define OC_SKH_ID1 0x722 | ||
57 | |||
54 | #define BE2_IO_DEPTH 1024 | 58 | #define BE2_IO_DEPTH 1024 |
55 | #define BE2_MAX_SESSIONS 256 | 59 | #define BE2_MAX_SESSIONS 256 |
56 | #define BE2_CMDS_PER_CXN 128 | 60 | #define BE2_CMDS_PER_CXN 128 |