OSDN Git Service

[PATCH] IDE: enable support for JMicron 20363
authorivaylo@bglans.net <ivaylo@bglans.net>
Thu, 9 Aug 2007 12:54:30 +0000 (15:54 +0300)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Nov 2007 17:54:12 +0000 (18:54 +0100)
Hello,

I have ASUS P5B-VM DO mobo with JMicron SATA/PATA controler. I write mail
to Alan Cox and he told me that PATA part of JMicron controler can be
pressant as generic ide. So I make some changes to generic ide driver in
kernel 2.4.35 to be support JMicron PATA controler, but I'm not advanced
in C programing and not sure what I did is right. It works for me.

If there are any interes I send you (see bellow) changes.

Best Regards.
Ivaylo Josifov

drivers/ide/pci/generic.c
drivers/ide/pci/generic.h
include/linux/pci_ids.h

index 0c79a0f..bcc5a69 100644 (file)
@@ -143,6 +143,7 @@ static struct pci_device_id generic_pci_tbl[] __devinitdata = {
        { 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_1,  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 10},
        { PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO_2,  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 11},
+       { PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_20363,      PCI_ANY_ID, PCI_ANY_ID, 0, 0, 12},
        { 0, },
 };
 
index e6d0f0e..759018b 100644 (file)
@@ -157,6 +157,16 @@ static ide_pci_device_t generic_chipsets[] __devinitdata = {
                .channels       = 2,
                .autodma        = NOAUTODMA,
                .bootable       = ON_BOARD,
+       },{     /* 12 */
+               .vendor         = PCI_VENDOR_ID_JMICRON,
+               .device         = PCI_DEVICE_ID_JMICRON_20363,
+               .name           = "JMICRON_20363",
+               .init_chipset   = init_chipset_generic,
+               .init_hwif      = init_hwif_generic,
+               .init_dma       = init_dma_generic,
+               .channels       = 1,
+               .autodma        = NOAUTODMA,
+               .bootable       = ON_BOARD,
        },{
                .vendor         = 0,
                .device         = 0,
index bd2a83d..c60134f 100644 (file)
 
 #define PCI_VENDOR_ID_WORKBIT          0x1145
 #define PCI_DEVICE_ID_WORKBIT_CB       0xf021
+
+#define PCI_VENDOR_ID_JMICRON          0x197b
+#define PCI_DEVICE_ID_JMICRON_20363    0x2363
+