public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Curbo <phoenix@sandwich.net>
To: linux-kernel@vger.kernel.org
Subject: [2.5.59] nforce2 IDE support for the amd74xx driver
Date: Mon, 3 Feb 2003 16:47:13 -0600	[thread overview]
Message-ID: <20030203224713.GA2625@carthage> (raw)

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

The amd74xx IDE driver in 2.5.59 has support for the nforce IDE
controller, but not explicitly for the nforce2 IDE controller (which has
a different PCI ID, which is in the kernel already). I'm not sure if the
nforce and nforce2 controllers are identical, but I made a small patch
that made the amd74xx driver recognize the nforce2 IDE, and it boots for
me, seems to work fine, as my drives were tuned to their highest
transfer rate automatically (udma5). 

I don't know if this patch is proper or correct, but it Works for 
Me [tm]. Patch is attached.

-- 
James Curbo <hannibal@adtrw.org> <phoenix@sandwich.net>

[-- Attachment #2: nforce2.patch --]
[-- Type: text/plain, Size: 1791 bytes --]

diff -u linux-2.5.59-orig/drivers/ide/pci/amd74xx.c linux-2.5.59/drivers/ide/pci/amd74xx.c
--- linux-2.5.59-orig/drivers/ide/pci/amd74xx.c	2003-01-16 20:22:59.000000000 -0600
+++ linux-2.5.59/drivers/ide/pci/amd74xx.c	2003-02-03 15:39:25.000000000 -0600
@@ -60,6 +60,8 @@
 	{ PCI_DEVICE_ID_AMD_OPUS_7441, 0x00, 0x40, AMD_UDMA_100 },			/* AMD-768 Opus */
 	{ PCI_DEVICE_ID_AMD_8111_IDE,  0x00, 0x40, AMD_UDMA_100 },			/* AMD-8111 */
         { PCI_DEVICE_ID_NVIDIA_NFORCE_IDE, 0x00, 0x50, AMD_UDMA_100 },                  /* nVidia nForce */
+	{ PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE, 0x00, 0x50, AMD_UDMA_100 },
+	/* nVidia nForce 2 */
 
 	{ 0 }
 };
@@ -446,6 +448,7 @@
 	{ PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_OPUS_7441,	PCI_ANY_ID, PCI_ANY_ID, 0, 0, 3},
 	{ PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_IDE, 	PCI_ANY_ID, PCI_ANY_ID, 0, 0, 4},
 	{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 5},
+	{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 6},
 	{ 0, },
 };
 
diff -u linux-2.5.59-orig/drivers/ide/pci/amd74xx.h linux-2.5.59/drivers/ide/pci/amd74xx.h
--- linux-2.5.59-orig/drivers/ide/pci/amd74xx.h	2003-01-16 20:21:37.000000000 -0600
+++ linux-2.5.59/drivers/ide/pci/amd74xx.h	2003-02-03 15:36:02.000000000 -0600
@@ -110,6 +110,20 @@
 		.bootable	= ON_BOARD,
 		.extra		= 0,
 	},
+	{	/* 6 */
+		.vendor		= PCI_VENDOR_ID_NVIDIA,
+		.device		= PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE,
+		.name		= "NFORCE2",
+		.init_chipset	= init_chipset_amd74xx,
+		.init_iops	= NULL,
+		.init_hwif	= init_hwif_amd74xx,
+		.init_dma	= init_dma_amd74xx,
+		.channels	= 2,
+		.autodma	= AUTODMA,
+		.enablebits	= {{0x50,0x01,0x01}, {0x50,0x02,0x02}},
+		.bootable	= ON_BOARD,
+		.extra		= 0,
+	},
 	{
 		.vendor		= 0,
 		.device		= 0,

                 reply	other threads:[~2003-02-03 22:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030203224713.GA2625@carthage \
    --to=phoenix@sandwich.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox