[PARPORT] Patch: 2.3.99pre9/parport_pc PCI ID fix+ Syba 0783

From: Gunther Mayer (gunther.mayer@braunschweig.okersurf.de)
Date: Thu May 25 2000 - 15:23:13 EDT

  • Next message: jjore@imation.com: "[PARPORT] patch epat.c 1.01 to 1.02 (initial)"

    Hi,
    this patch:
    - adds detection of another Syba PCI parallel card
    - fixes misprint of PCI ID (last_sio offset)

    Tim, please submit to the kernel.

    Regards, Gunther


    --- parport_pc.c-2399pre9-4b-minus-syba_plus6nach9 Thu May 25 20:46:22 2000
    +++ parport_pc.c Thu May 25 21:09:09 2000
    @@ -2918,6 +2918,7 @@
             afavlab_tk9902,
             timedia_1889,
             syba_2p_epp,
    + syba_1p_ecp
     };
     
     
    @@ -2960,7 +2961,8 @@
             /* timedia_1889 */ { 1, { { 2, -1 }, } },
                                             /* SYBA uses fixed offsets in
                                                a 1K io window */
    - /* syba_2p_epp */ { 2, { { 0, 0x078 }, { 0, 0x178 }, } },
    + /* syba_2p_epp AP138B */ { 2, { { 0, 0x078 }, { 0, 0x178 }, } },
    + /* syba_1p_ecp w83787 */ { 1, { { 0, 0x078 }, } },
     };
     
     static struct pci_device_id parport_pc_pci_tbl[] __devinitdata = {
    @@ -3021,6 +3023,7 @@
             { PCI_VENDOR_ID_TIMEDIA, PCI_DEVICE_ID_TIMEDIA_1889,
               PCI_ANY_ID, PCI_ANY_ID, 0, 0, timedia_1889 },
             { 0x1592, 0x0782, PCI_ANY_ID, PCI_ANY_ID, 0, 0, syba_2p_epp },
    + { 0x1592, 0x0783, PCI_ANY_ID, PCI_ANY_ID, 0, 0, syba_1p_ecp },
             { 0, } /* terminate list */
     };
     MODULE_DEVICE_TABLE(pci,parport_pc_pci_tbl);
    @@ -3053,8 +3056,8 @@
                                             def.) */
                     /* TODO: test if sharing interrupts works */
                     printk (KERN_DEBUG "PCI parallel port detected: %04x:%04x, "
    - "I/O at %#lx(%#lx)\n", parport_pc_pci_tbl[i].vendor,
    - parport_pc_pci_tbl[i].device, io_lo, io_hi);
    + "I/O at %#lx(%#lx)\n", parport_pc_pci_tbl[i+last_sio].vendor,
    + parport_pc_pci_tbl[i+last_sio].device, io_lo, io_hi);
                     if (parport_pc_probe_port (io_lo, io_hi, PARPORT_IRQ_NONE,
                                                PARPORT_DMA_NONE, dev))
                             count++;
    --- ChangeLog-2399pre9 Thu May 25 21:15:13 2000
    +++ ChangeLog Thu May 25 21:15:16 2000
    @@ -1,3 +1,7 @@
    +2000-05-25 Gunther Mayer <gunther.mayer@braunschweig.okersurf.de>
    +
    + * Add Syba 0783 card, fix pci id
    +
     2000-05-16 Tim Waugh <twaugh@redhat.com>
     
             * share.c (parport_claim): Fix SMP race.

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Thu May 25 2000 - 15:24:27 EDT