[SCSI] mvsas: Support Areca SAS/SATA HBA, ARC-1300/1320
authorNick Cheng <nick.cheng@areca.com.tw>
Tue, 8 Sep 2009 11:03:07 +0000 (19:03 +0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 2 Oct 2009 14:44:45 +0000 (09:44 -0500)
This is support for Areca SAS/SATA HBA, ARC-1300/1320, which quipped with
88SE6440/88SE9480 respectively.

Signed-off-by: Nick Cheng< nick.cheng@areca.com.tw >
Cc: Ke Wei <kewei.mv@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mvsas/mv_defs.h
drivers/scsi/mvsas/mv_init.c

index f8cb9defb961fe75ec5ac64c1c802f31d6e7c638..1849da1f030d60ccd28743d044b972a62063b8f1 100644 (file)
@@ -25,6 +25,8 @@
 #ifndef _MV_DEFS_H_
 #define _MV_DEFS_H_
 
+#define PCI_DEVICE_ID_ARECA_1300       0x1300
+#define PCI_DEVICE_ID_ARECA_1320       0x1320
 
 enum chip_flavors {
        chip_6320,
@@ -32,6 +34,8 @@ enum chip_flavors {
        chip_6485,
        chip_9480,
        chip_9180,
+       chip_1300,
+       chip_1320
 };
 
 /* driver compile-time configuration */
index 8646a19f999ded0475a253a57542b8ec00a8c46f..c790d45876c47591d04f8906b79aaa134cbccb2d 100644 (file)
@@ -32,6 +32,8 @@ static const struct mvs_chip_info mvs_chips[] = {
        [chip_6485] =   { 1, 8, 0x800, 33, 32, 10, &mvs_64xx_dispatch, },
        [chip_9180] =   { 2, 4, 0x800, 17, 64,  9, &mvs_94xx_dispatch, },
        [chip_9480] =   { 2, 4, 0x800, 17, 64,  9, &mvs_94xx_dispatch, },
+       [chip_1300] =   { 1, 4, 0x400, 17, 16,  9, &mvs_64xx_dispatch, },
+       [chip_1320] =   { 2, 4, 0x800, 17, 64,  9, &mvs_94xx_dispatch, },
 };
 
 #define SOC_SAS_NUM 2
@@ -653,6 +655,8 @@ static struct pci_device_id __devinitdata mvs_pci_table[] = {
        { PCI_VDEVICE(MARVELL, 0x6485), chip_6485 },
        { PCI_VDEVICE(MARVELL, 0x9480), chip_9480 },
        { PCI_VDEVICE(MARVELL, 0x9180), chip_9180 },
+       { PCI_VDEVICE(ARECA, PCI_DEVICE_ID_ARECA_1300), chip_1300 },
+       { PCI_VDEVICE(ARECA, PCI_DEVICE_ID_ARECA_1320), chip_1320 },
 
        { }     /* terminate list */
 };