-
-void
-lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp)
-{
- lpfc_vpd_t *vp;
- uint32_t id;
- char str[16];
-
- vp = &phba->vpd;
- pci_read_config_dword(phba->pcidev, PCI_VENDOR_ID, &id);
-
- switch ((id >> 16) & 0xffff) {
- case PCI_DEVICE_ID_SUPERFLY:
- if (vp->rev.biuRev >= 1 && vp->rev.biuRev <= 3)
- strcpy(str, "LP7000 1");
- else
- strcpy(str, "LP7000E 1");
- break;
- case PCI_DEVICE_ID_DRAGONFLY:
- strcpy(str, "LP8000 1");
- break;
- case PCI_DEVICE_ID_CENTAUR:
- if (FC_JEDEC_ID(vp->rev.biuRev) == CENTAUR_2G_JEDEC_ID)
- strcpy(str, "LP9002 2");
- else
- strcpy(str, "LP9000 1");
- break;
- case PCI_DEVICE_ID_RFLY:
- strcpy(str, "LP952 2");
- break;
- case PCI_DEVICE_ID_PEGASUS:
- strcpy(str, "LP9802 2");
- break;
- case PCI_DEVICE_ID_THOR:
- strcpy(str, "LP10000 2");
- break;
- case PCI_DEVICE_ID_VIPER:
- strcpy(str, "LPX1000 10");
- break;
- case PCI_DEVICE_ID_PFLY:
- strcpy(str, "LP982 2");
- break;
- case PCI_DEVICE_ID_TFLY:
- strcpy(str, "LP1050 2");
- break;
- case PCI_DEVICE_ID_HELIOS:
- strcpy(str, "LP11000 4");
- break;
- case PCI_DEVICE_ID_BMID:
- strcpy(str, "LP1150 4");
- break;
- case PCI_DEVICE_ID_BSMB:
- strcpy(str, "LP111 4");
- break;
- case PCI_DEVICE_ID_ZEPHYR:
- strcpy(str, "LP11000e 4");
- break;
- case PCI_DEVICE_ID_ZMID:
- strcpy(str, "LP1150e 4");
- break;
- case PCI_DEVICE_ID_ZSMB:
- strcpy(str, "LP111e 4");
- break;
- case PCI_DEVICE_ID_LP101:
- strcpy(str, "LP101 2");
- break;
- }
- if (mdp)
- sscanf(str, "%s", mdp);
- if (descp)
- sprintf(descp, "Emulex LightPulse %s Gigabit PCI Fibre "
- "Channel Adapter", str);
-}
-