aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2011-05-24 11:41:34 -0400
committerJames Bottomley <jbottomley@parallels.com>2011-05-26 23:49:36 -0400
commitc0c1151276aae83dffbe3f2837a3b1d893894115 (patch)
tree60942e578180d31b37c4ae989c6bd98657362792 /drivers/scsi/lpfc/lpfc_init.c
parent0558056c1ecd177f2621fc2a0484d565270f7ae1 (diff)
[SCSI] lpfc 8.3.24: Extended hardware support and support dump images
Extended hardware support and support dump images: - Make the size to be MAILBOX_SYSFS_MAX (4096) so that it allows the maximum sysfs binary access interface possible. - Add ids and model names for new hardware - Add capability of inducing SLI4 firmware dump obj file Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <jbottomley@parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index f297f9d027dc..16b4da4530b1 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -1784,7 +1784,9 @@ lpfc_get_hba_model_desc(struct lpfc_hba *phba, uint8_t *mdp, uint8_t *descp)
1784 && descp && descp[0] != '\0') 1784 && descp && descp[0] != '\0')
1785 return; 1785 return;
1786 1786
1787 if (phba->lmt & LMT_10Gb) 1787 if (phba->lmt & LMT_16Gb)
1788 max_speed = 16;
1789 else if (phba->lmt & LMT_10Gb)
1788 max_speed = 10; 1790 max_speed = 10;
1789 else if (phba->lmt & LMT_8Gb) 1791 else if (phba->lmt & LMT_8Gb)
1790 max_speed = 8; 1792 max_speed = 8;
@@ -1951,12 +1953,13 @@ lpfc_get_hba_model_desc(struct lpfc_hba *phba, uint8_t *mdp, uint8_t *descp)
1951 "Fibre Channel Adapter"}; 1953 "Fibre Channel Adapter"};
1952 break; 1954 break;
1953 case PCI_DEVICE_ID_LANCER_FC: 1955 case PCI_DEVICE_ID_LANCER_FC:
1954 oneConnect = 1; 1956 case PCI_DEVICE_ID_LANCER_FC_VF:
1955 m = (typeof(m)){"Undefined", "PCIe", "Fibre Channel Adapter"}; 1957 m = (typeof(m)){"LPe16000", "PCIe", "Fibre Channel Adapter"};
1956 break; 1958 break;
1957 case PCI_DEVICE_ID_LANCER_FCOE: 1959 case PCI_DEVICE_ID_LANCER_FCOE:
1960 case PCI_DEVICE_ID_LANCER_FCOE_VF:
1958 oneConnect = 1; 1961 oneConnect = 1;
1959 m = (typeof(m)){"Undefined", "PCIe", "FCoE"}; 1962 m = (typeof(m)){"OCe50100", "PCIe", "FCoE"};
1960 break; 1963 break;
1961 default: 1964 default:
1962 m = (typeof(m)){"Unknown", "", ""}; 1965 m = (typeof(m)){"Unknown", "", ""};
@@ -1965,7 +1968,8 @@ lpfc_get_hba_model_desc(struct lpfc_hba *phba, uint8_t *mdp, uint8_t *descp)
1965 1968
1966 if (mdp && mdp[0] == '\0') 1969 if (mdp && mdp[0] == '\0')
1967 snprintf(mdp, 79,"%s", m.name); 1970 snprintf(mdp, 79,"%s", m.name);
1968 /* oneConnect hba requires special processing, they are all initiators 1971 /*
1972 * oneConnect hba requires special processing, they are all initiators
1969 * and we put the port number on the end 1973 * and we put the port number on the end
1970 */ 1974 */
1971 if (descp && descp[0] == '\0') { 1975 if (descp && descp[0] == '\0') {
@@ -9580,6 +9584,10 @@ static struct pci_device_id lpfc_id_table[] = {
9580 PCI_ANY_ID, PCI_ANY_ID, }, 9584 PCI_ANY_ID, PCI_ANY_ID, },
9581 {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_LANCER_FCOE, 9585 {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_LANCER_FCOE,
9582 PCI_ANY_ID, PCI_ANY_ID, }, 9586 PCI_ANY_ID, PCI_ANY_ID, },
9587 {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_LANCER_FC_VF,
9588 PCI_ANY_ID, PCI_ANY_ID, },
9589 {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_LANCER_FCOE_VF,
9590 PCI_ANY_ID, PCI_ANY_ID, },
9583 { 0 } 9591 { 0 }
9584}; 9592};
9585 9593