public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.13-rc3] Add support for Netcell Revolution to pci-ide generic driver
@ 2005-07-16 14:17 Matt Gillette
  0 siblings, 0 replies; only message in thread
From: Matt Gillette @ 2005-07-16 14:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-ide, B.Zolnierkiewicz

Description: Adds support for Netcell Revolution to pci-ide generic 
driver by including it in the list of devices matched. Includes the 
Revolution in the list of simplex devices forced into DMA mode.

Signed-off-by: Matt Gillette <matt.gillette@netcell.com>
-------

diff -purN linux-2.6.13-rc3/drivers/ide/pci/generic.c 
linux/drivers/ide/pci/generic.c
--- linux-2.6.13-rc3/drivers/ide/pci/generic.c	2005-07-14 
18:02:17.000000000 -0700
+++ linux/drivers/ide/pci/generic.c	2005-07-15 15:33:00.000000000 -0700
@@ -173,7 +173,13 @@ static ide_pci_device_t generic_chipsets
  		.channels	= 2,
  		.autodma	= NOAUTODMA,
  		.bootable	= ON_BOARD,
-	}
+	},{	/* 14 */
+		.name		= "Revolution",
+                .init_hwif      = init_hwif_generic,
+                .channels       = 2,
+                .autodma        = AUTODMA,
+                .bootable       = OFF_BOARD,
+        }
  };

  /**
@@ -231,6 +237,7 @@ static struct pci_device_id generic_pci_
  	{ PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO,     
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 11},
  	{ PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_1,   
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 12},
  	{ PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_2,   
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 13},
+	{ PCI_VENDOR_ID_NETCELL,PCI_DEVICE_ID_REVOLUTION,          
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 14},	
  	/* Must come last. If you add entries adjust this table appropriately 
and the init_one code */
  	{ PCI_ANY_ID,		PCI_ANY_ID,			   PCI_ANY_ID, PCI_ANY_ID, 
PCI_CLASS_STORAGE_IDE << 8, 0xFFFFFF00UL, 0},
  	{ 0, },
diff -purN linux-2.6.13-rc3/drivers/ide/setup-pci.c 
linux/drivers/ide/setup-pci.c
--- linux-2.6.13-rc3/drivers/ide/setup-pci.c	2005-07-14 
18:02:17.000000000 -0700
+++ linux/drivers/ide/setup-pci.c	2005-07-15 14:43:26.000000000 -0700
@@ -229,6 +229,7 @@ second_chance_to_dma:
  			case PCI_DEVICE_ID_AMD_VIPER_7409:
  			case PCI_DEVICE_ID_CMD_643:
  			case PCI_DEVICE_ID_SERVERWORKS_CSB5IDE:
+			case PCI_DEVICE_ID_REVOLUTION:
  				simplex_stat = hwif->INB(dma_base + 2);
  				hwif->OUTB((simplex_stat&0x60),(dma_base + 2));
  				simplex_stat = hwif->INB(dma_base + 2);
diff -purN linux-2.6.13-rc3/drivers/pci/pci.ids 
linux/drivers/pci/pci.ids
--- linux-2.6.13-rc3/drivers/pci/pci.ids	2005-07-14 18:02:07.000000000 
-0700
+++ linux/drivers/pci/pci.ids	2005-07-16 06:28:32.000000000 -0700
@@ -7982,7 +7982,7 @@
  		168c 2042  Netgate 5354MP Plus ARIES2 a/b/g MiniPCI Adapter
  	1014  AR5212 802.11abg NIC
  169c  Netcell Corporation
-	0044  SyncRAID SR3000/5000 Series SATA RAID Controllers
+	0044  Revolution Storage Processing Card
  16a5  Tekram Technology Co.,Ltd.
  16ab  Global Sun Technology Inc
  	1100  GL24110P
diff -purN linux-2.6.13-rc3/include/linux/pci_ids.h 
linux/include/linux/pci_ids.h
--- linux-2.6.13-rc3/include/linux/pci_ids.h	2005-07-14 
18:01:56.000000000 -0700
+++ linux/include/linux/pci_ids.h	2005-07-15 14:43:26.000000000 -0700
@@ -2170,6 +2170,9 @@
  #define PCI_VENDOR_ID_SIBYTE		0x166d
  #define PCI_DEVICE_ID_BCM1250_HT	0x0002

+#define PCI_VENDOR_ID_NETCELL		0x169c
+#define PCI_DEVICE_ID_REVOLUTION	0x0044
+
  #define PCI_VENDOR_ID_LINKSYS		0x1737
  #define PCI_DEVICE_ID_LINKSYS_EG1032	0x1032
  #define PCI_DEVICE_ID_LINKSYS_EG1064	0x1064


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-16 14:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-16 14:17 [PATCH 2.6.13-rc3] Add support for Netcell Revolution to pci-ide generic driver Matt Gillette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox