mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jérôme Augé" <eguaj@free.fr>
To: linux-kernel@vger.kernel.org
Cc: Linus Torvalds <torvalds@osdl.org>
Subject: Support for Toshiba Piccolo in drivers/ide/pci/generic.c
Date: Thu, 8 Jan 2004 18:43:53 +0100	[thread overview]
Message-ID: <20040108174353.GA1889@satellite.workgroup.fr> (raw)

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

Hi,

The 2.4 kernel have support for settting/using DMA with the Toshiba
Piccolo IDE controller, but it seems it did not went into the 2.6.

So, here is a patch (taken from Alan Cox modifications) for the 2.6
kernel. Could you apply it on the current 2.6 tree ?

Thanks and happy new year,
Jérôme

-- 
<ESC>:r $HOME/.signature<CR>

[-- Attachment #2: linux-2.6.1-rc2-toshiba-piccolo.patch --]
[-- Type: text/plain, Size: 1714 bytes --]

--- linux-2.6.1-rc2/drivers/ide/pci/generic.c.old	2004-01-07 16:03:37.000000000 +0100
+++ linux-2.6.1-rc2/drivers/ide/pci/generic.c	2004-01-07 16:08:37.000000000 +0100
@@ -136,6 +136,7 @@
 	{ 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_VIA,	PCI_DEVICE_ID_VIA_8237_SATA,	   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, 10},
 	{ 0, },
 };
 
--- linux-2.6.1-rc2/drivers/ide/pci/generic.h.old	2004-01-07 16:03:40.000000000 +0100
+++ linux-2.6.1-rc2/drivers/ide/pci/generic.h	2004-01-07 16:07:30.000000000 +0100
@@ -129,6 +129,18 @@
 		.enablebits	= {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
 		.bootable	= OFF_BOARD,
 		.extra		= 0,
+	},{	/* 10 */
+		.vendor		= PCI_VENDOR_ID_TOSHIBA,
+		.device		= PCI_DEVICE_ID_TOSHIBA_PICCOLO,
+		.name		= "Piccolo",
+		.init_chipset	= init_chipset_generic,
+		.init_iops	= NULL,
+		.init_hwif	= init_hwif_generic,
+		.channels	= 2,
+		.autodma	= NOAUTODMA,
+		.enablebits	= {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
+		.bootable	= ON_BOARD,
+		.extra		= 0,
 	},{
 		.vendor		= 0,
 		.device		= 0,
--- linux-2.6.1-rc2/include/linux/pci_ids.h.old	2004-01-07 16:07:51.000000000 +0100
+++ linux-2.6.1-rc2/include/linux/pci_ids.h	2004-01-07 16:08:22.000000000 +0100
@@ -1355,6 +1355,7 @@
 #define PCI_DEVICE_ID_SBE_WANXL400	0x0104
 
 #define PCI_VENDOR_ID_TOSHIBA		0x1179
+#define PCI_DEVICE_ID_TOSHIBA_PICCOLO	0x0102
 #define PCI_DEVICE_ID_TOSHIBA_601	0x0601
 #define PCI_DEVICE_ID_TOSHIBA_TOPIC95	0x060a
 #define PCI_DEVICE_ID_TOSHIBA_TOPIC95_A 0x0603

                 reply	other threads:[~2004-01-08 17:46 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=20040108174353.GA1889@satellite.workgroup.fr \
    --to=eguaj@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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

Powered by JetHome