[SCSI] stex: Add new device id
authorEd Lin - PTU <ed.lin@promise.com>
Mon, 26 Jan 2009 10:40:29 +0000 (02:40 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 12 Mar 2009 17:58:03 +0000 (12:58 -0500)
Add new device id for controller type st_seq.

Signed-off-by: Ed Lin <ed.lin@promise.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/stex.c

index 6129db4a6a3865e4de9cc7a59f719a39df948155..12dc0d176f3f9b7a8e1340e7f68853c13e3da362 100644 (file)
@@ -119,6 +119,7 @@ enum {
        st_vsc                                  = 1,
        st_vsc1                                 = 2,
        st_yosemite                             = 3,
+       st_seq                                  = 4,
 
        PASSTHRU_REQ_TYPE                       = 0x00000001,
        PASSTHRU_REQ_NO_WAKEUP                  = 0x00000100,
@@ -1127,7 +1128,7 @@ stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        hba->cardtype = (unsigned int) id->driver_data;
        if (hba->cardtype == st_vsc && (pdev->subsystem_device & 0xf) == 0x1)
                hba->cardtype = st_vsc1;
-       hba->dma_size = (hba->cardtype == st_vsc1) ?
+       hba->dma_size = (hba->cardtype == st_vsc1 || hba->cardtype == st_seq) ?
                (STEX_BUFFER_SIZE + ST_ADDITIONAL_MEM) : (STEX_BUFFER_SIZE);
        hba->dma_mem = dma_alloc_coherent(&pdev->dev,
                hba->dma_size, &hba->dma_handle, GFP_KERNEL);
@@ -1150,7 +1151,7 @@ stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
                host->max_lun = 128;
                host->max_id = 1 + 1;
        } else {
-               /* st_vsc and st_vsc1 */
+               /* st_vsc , st_vsc1 and st_seq */
                host->max_lun = 1;
                host->max_id = 128 + 1;
        }
@@ -1312,6 +1313,9 @@ static struct pci_device_id stex_pci_tbl[] = {
                st_yosemite }, /* SuperTrak EX8654 */
        { 0x105a, 0x8650, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
                st_yosemite }, /* generic st_yosemite */
+
+       /* st_seq */
+       { 0x105a, 0x3360, PCI_ANY_ID, PCI_ANY_ID, 0, 0, st_seq },
        { }     /* terminate list */
 };
 MODULE_DEVICE_TABLE(pci, stex_pci_tbl);