aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEd Lin - PTU <ed.lin@promise.com>2009-01-26 05:40:29 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-12 13:58:03 -0400
commit62e5b3d850f76190633e5a3cc8d6cc611ef96cfc (patch)
tree014e58ae4d948495fe2407524c517aa428ef0af9 /drivers
parentdd48ebf7ca4a6e60e6787e443f5316724309865b (diff)
[SCSI] stex: Add new device id
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/stex.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 6129db4a6a38..12dc0d176f3f 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -119,6 +119,7 @@ enum {
119 st_vsc = 1, 119 st_vsc = 1,
120 st_vsc1 = 2, 120 st_vsc1 = 2,
121 st_yosemite = 3, 121 st_yosemite = 3,
122 st_seq = 4,
122 123
123 PASSTHRU_REQ_TYPE = 0x00000001, 124 PASSTHRU_REQ_TYPE = 0x00000001,
124 PASSTHRU_REQ_NO_WAKEUP = 0x00000100, 125 PASSTHRU_REQ_NO_WAKEUP = 0x00000100,
@@ -1127,7 +1128,7 @@ stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1127 hba->cardtype = (unsigned int) id->driver_data; 1128 hba->cardtype = (unsigned int) id->driver_data;
1128 if (hba->cardtype == st_vsc && (pdev->subsystem_device & 0xf) == 0x1) 1129 if (hba->cardtype == st_vsc && (pdev->subsystem_device & 0xf) == 0x1)
1129 hba->cardtype = st_vsc1; 1130 hba->cardtype = st_vsc1;
1130 hba->dma_size = (hba->cardtype == st_vsc1) ? 1131 hba->dma_size = (hba->cardtype == st_vsc1 || hba->cardtype == st_seq) ?
1131 (STEX_BUFFER_SIZE + ST_ADDITIONAL_MEM) : (STEX_BUFFER_SIZE); 1132 (STEX_BUFFER_SIZE + ST_ADDITIONAL_MEM) : (STEX_BUFFER_SIZE);
1132 hba->dma_mem = dma_alloc_coherent(&pdev->dev, 1133 hba->dma_mem = dma_alloc_coherent(&pdev->dev,
1133 hba->dma_size, &hba->dma_handle, GFP_KERNEL); 1134 hba->dma_size, &hba->dma_handle, GFP_KERNEL);
@@ -1150,7 +1151,7 @@ stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1150 host->max_lun = 128; 1151 host->max_lun = 128;
1151 host->max_id = 1 + 1; 1152 host->max_id = 1 + 1;
1152 } else { 1153 } else {
1153 /* st_vsc and st_vsc1 */ 1154 /* st_vsc , st_vsc1 and st_seq */
1154 host->max_lun = 1; 1155 host->max_lun = 1;
1155 host->max_id = 128 + 1; 1156 host->max_id = 128 + 1;
1156 } 1157 }
@@ -1312,6 +1313,9 @@ static struct pci_device_id stex_pci_tbl[] = {
1312 st_yosemite }, /* SuperTrak EX8654 */ 1313 st_yosemite }, /* SuperTrak EX8654 */
1313 { 0x105a, 0x8650, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1314 { 0x105a, 0x8650, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
1314 st_yosemite }, /* generic st_yosemite */ 1315 st_yosemite }, /* generic st_yosemite */
1316
1317 /* st_seq */
1318 { 0x105a, 0x3360, PCI_ANY_ID, PCI_ANY_ID, 0, 0, st_seq },
1315 { } /* terminate list */ 1319 { } /* terminate list */
1316}; 1320};
1317MODULE_DEVICE_TABLE(pci, stex_pci_tbl); 1321MODULE_DEVICE_TABLE(pci, stex_pci_tbl);