diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 233c912b63ce..34d416d2b007 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -1,27 +1,24 @@ | |||
1 | /******************************************************************* | 1 | /******************************************************************* |
2 | * This file is part of the Emulex Linux Device Driver for * | 2 | * This file is part of the Emulex Linux Device Driver for * |
3 | * Enterprise Fibre Channel Host Bus Adapters. * | 3 | * Fibre Channel Host Bus Adapters. * |
4 | * Refer to the README file included with this package for * | 4 | * Copyright (C) 2004-2005 Emulex. All rights reserved. * |
5 | * driver version and adapter support. * | 5 | * EMULEX and SLI are trademarks of Emulex. * |
6 | * Copyright (C) 2004 Emulex Corporation. * | ||
7 | * www.emulex.com * | 6 | * www.emulex.com * |
7 | * Portions Copyright (C) 2004-2005 Christoph Hellwig * | ||
8 | * * | 8 | * * |
9 | * This program is free software; you can redistribute it and/or * | 9 | * This program is free software; you can redistribute it and/or * |
10 | * modify it under the terms of the GNU General Public License * | 10 | * modify it under the terms of version 2 of the GNU General * |
11 | * as published by the Free Software Foundation; either version 2 * | 11 | * Public License as published by the Free Software Foundation. * |
12 | * of the License, or (at your option) any later version. * | 12 | * This program is distributed in the hope that it will be useful. * |
13 | * * | 13 | * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND * |
14 | * This program is distributed in the hope that it will be useful, * | 14 | * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, * |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | 15 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE * |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | 16 | * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD * |
17 | * GNU General Public License for more details, a copy of which * | 17 | * TO BE LEGALLY INVALID. See the GNU General Public License for * |
18 | * can be found in the file COPYING included with this package. * | 18 | * more details, a copy of which can be found in the file COPYING * |
19 | * included with this package. * | ||
19 | *******************************************************************/ | 20 | *******************************************************************/ |
20 | 21 | ||
21 | /* | ||
22 | * $Id: lpfc_init.c 1.233 2005/04/13 11:59:09EDT sf_support Exp $ | ||
23 | */ | ||
24 | |||
25 | #include <linux/blkdev.h> | 22 | #include <linux/blkdev.h> |
26 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
27 | #include <linux/dma-mapping.h> | 24 | #include <linux/dma-mapping.h> |
@@ -780,6 +777,9 @@ lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp) | |||
780 | pci_read_config_dword(phba->pcidev, PCI_VENDOR_ID, &id); | 777 | pci_read_config_dword(phba->pcidev, PCI_VENDOR_ID, &id); |
781 | 778 | ||
782 | switch ((id >> 16) & 0xffff) { | 779 | switch ((id >> 16) & 0xffff) { |
780 | case PCI_DEVICE_ID_FIREFLY: | ||
781 | strcpy(str, "LP6000 1"); | ||
782 | break; | ||
783 | case PCI_DEVICE_ID_SUPERFLY: | 783 | case PCI_DEVICE_ID_SUPERFLY: |
784 | if (vp->rev.biuRev >= 1 && vp->rev.biuRev <= 3) | 784 | if (vp->rev.biuRev >= 1 && vp->rev.biuRev <= 3) |
785 | strcpy(str, "LP7000 1"); | 785 | strcpy(str, "LP7000 1"); |
@@ -837,6 +837,9 @@ lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp) | |||
837 | case PCI_DEVICE_ID_LP10000S: | 837 | case PCI_DEVICE_ID_LP10000S: |
838 | strcpy(str, "LP10000-S 2"); | 838 | strcpy(str, "LP10000-S 2"); |
839 | break; | 839 | break; |
840 | default: | ||
841 | memset(str, 0, 16); | ||
842 | break; | ||
840 | } | 843 | } |
841 | if (mdp) | 844 | if (mdp) |
842 | sscanf(str, "%s", mdp); | 845 | sscanf(str, "%s", mdp); |
@@ -1662,6 +1665,8 @@ lpfc_pci_remove_one(struct pci_dev *pdev) | |||
1662 | static struct pci_device_id lpfc_id_table[] = { | 1665 | static struct pci_device_id lpfc_id_table[] = { |
1663 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_VIPER, | 1666 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_VIPER, |
1664 | PCI_ANY_ID, PCI_ANY_ID, }, | 1667 | PCI_ANY_ID, PCI_ANY_ID, }, |
1668 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_FIREFLY, | ||
1669 | PCI_ANY_ID, PCI_ANY_ID, }, | ||
1665 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_THOR, | 1670 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_THOR, |
1666 | PCI_ANY_ID, PCI_ANY_ID, }, | 1671 | PCI_ANY_ID, PCI_ANY_ID, }, |
1667 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_PEGASUS, | 1672 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_PEGASUS, |
@@ -1712,6 +1717,7 @@ lpfc_init(void) | |||
1712 | int error = 0; | 1717 | int error = 0; |
1713 | 1718 | ||
1714 | printk(LPFC_MODULE_DESC "\n"); | 1719 | printk(LPFC_MODULE_DESC "\n"); |
1720 | printk(LPFC_COPYRIGHT "\n"); | ||
1715 | 1721 | ||
1716 | lpfc_transport_template = | 1722 | lpfc_transport_template = |
1717 | fc_attach_transport(&lpfc_transport_functions); | 1723 | fc_attach_transport(&lpfc_transport_functions); |