mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Tvrtko A. Uršulin" <tvrtko@croadria.com>
To: linux-kernel@vger.kernel.org
Cc: Andrew Hogue <hogue@cs.yorku.ca>
Subject: Re: SATA on 2.4.x
Date: Mon, 15 Mar 2004 15:56:51 +0100	[thread overview]
Message-ID: <200403151556.51162.tvrtko@croadria.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0403150934590.21510@wormwood.cs.yorku.ca>

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

On Monday 15 March 2004 15:36, Andrew Hogue wrote:

Hello Andrew,
> Is there a patch to allow the via 8237 sata controller to work for kernel
> 2.4.x ?

Try this one, it works for me flawlessly.

[-- Attachment #2: via-onboard-sata.patch --]
[-- Type: text/x-diff, Size: 1678 bytes --]

diff -aur linux-2.4.23-orig/drivers/ide/pci/generic.c linux-2.4.23-grsec/drivers/ide/pci/generic.c
--- linux-2.4.23-orig/drivers/ide/pci/generic.c	2003-10-07 11:21:32.000000000 +0200
+++ linux-2.4.23-grsec/drivers/ide/pci/generic.c	2003-12-17 09:07:01.000000000 +0100
@@ -140,7 +140,8 @@
 	{ PCI_VENDOR_ID_HINT,   PCI_DEVICE_ID_HINT_VXPROII_IDE,    PCI_ANY_ID, PCI_ANY_ID, 0, 0, 6},
 	{ PCI_VENDOR_ID_VIA,    PCI_DEVICE_ID_VIA_82C561,          PCI_ANY_ID, PCI_ANY_ID, 0, 0, 7},
 	{ PCI_VENDOR_ID_OPTI,   PCI_DEVICE_ID_OPTI_82C558,         PCI_ANY_ID, PCI_ANY_ID, 0, 0, 8},
-	{ PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 9},
+	{ PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 9},
+	{ PCI_VENDOR_ID_VIA,	PCI_DEVICE_ID_VIA_8237_SATA,       PCI_ANY_ID, PCI_ANY_ID, 0, 0, 10},
 	{ 0, },
 };
 
diff -aur linux-2.4.23-orig/drivers/ide/pci/generic.h linux-2.4.23-grsec/drivers/ide/pci/generic.h
--- linux-2.4.23-orig/drivers/ide/pci/generic.h	2003-10-07 11:21:32.000000000 +0200
+++ linux-2.4.23-grsec/drivers/ide/pci/generic.h	2003-12-23 09:53:46.000000000 +0100
@@ -140,6 +140,19 @@
 		.enablebits	= {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
 		.bootable	= ON_BOARD,
 		.extra		= 0,
+	},{	/* 10 */
+		.vendor = PCI_VENDOR_ID_VIA,
+		.device = PCI_DEVICE_ID_VIA_8237_SATA,
+		.name = "VIA8237SATA",
+		.init_chipset = init_chipset_generic,
+		.init_iops = NULL,
+		.init_hwif = init_hwif_generic,
+		.init_dma = init_dma_generic,
+		.channels = 2,
+		.autodma = AUTODMA,
+		.enablebits = {{0x00,0x00,0x00},{0x00,0x00,0x00}},
+		.bootable = OFF_BOARD,
+		.extra = 0,
 	},{
 		.vendor		= 0,
 		.device		= 0,

  reply	other threads:[~2004-03-15 14:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15 14:36 Andrew Hogue
2004-03-15 14:56 ` Tvrtko A. Uršulin [this message]
2004-03-15 15:31 ` Stefan Smietanowski

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=200403151556.51162.tvrtko@croadria.com \
    --to=tvrtko@croadria.com \
    --cc=hogue@cs.yorku.ca \
    --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

all inboxes | Powered by JetHome®