[PARPORT] unknown card

From: Christian Groessler (cpg@aladdin.de)
Date: Fri Feb 09 2001 - 07:12:26 EST

  • Next message: Tim Waugh: "Re: [PARPORT] unknown card"

    Hi,

    I've got a PCI parport card, which isn't detected by parport_pc.

      Bus 0, device 14, function 0:
        Parallel controller: PCI device 14db:2121 (AFAVLAB Technology Inc) (rev 0).
          IRQ 24.
          I/O at 0x8b0 [0x8b7].
          I/O at 0x8a0 [0x8a3].
          I/O at 0x890 [0x897].
          I/O at 0x880 [0x883].

    I changed parport_pc.c so it gets detected:

    -------
    --- /net/soft/src/linux-2.4.1/drivers/parport/parport_pc.c Thu Jan 4 22:12:48 2001
    +++ parport_pc.c Wed Jan 31 02:01:37 2001
    @@ -2320,6 +2320,7 @@
            boca_ioppar,
            plx_9050,
            afavlab_tk9902,
    + afavlab_tk9901,
            timedia_4078a,
            timedia_4079h,
            timedia_4085h,
    @@ -2384,6 +2385,7 @@
            /* boca_ioppar */ { 1, { { 0, -1 }, } },
            /* plx_9050 */ { 2, { { 4, -1 }, { 5, -1 }, } },
            /* afavlab_tk9902 */ { 1, { { 0, 1 }, } },
    + /* afavlab_tk9901 */ { 2, { { 0, 1 }, { 2, 3 }, } },
            /* timedia_4078a */ { 1, { { 2, -1 }, } },
            /* timedia_4079h */ { 1, { { 2, 3 }, } },
            /* timedia_4085h */ { 2, { { 2, -1 }, { 4, -1 }, } },
    @@ -2468,6 +2470,8 @@
              PCI_SUBVENDOR_ID_EXSYS, PCI_SUBDEVICE_ID_EXSYS_4014, 0,0, plx_9050 },
            { PCI_VENDOR_ID_AFAVLAB, PCI_DEVICE_ID_AFAVLAB_TK9902,
              PCI_ANY_ID, PCI_ANY_ID, 0, 0, afavlab_tk9902 },
    + { PCI_VENDOR_ID_AFAVLAB, 0x2121,
    + PCI_ANY_ID, PCI_ANY_ID, 0, 0, afavlab_tk9901 },
            /* PCI_VENDOR_ID_TIMEDIA/SUNIX has many differing cards ...*/
            { 0x1409, 0x7168, 0x1409, 0x4078, 0, 0, timedia_4078a },
            { 0x1409, 0x7168, 0x1409, 0x4079, 0, 0, timedia_4079h },
    -------

    Please ignore my naming it afavlab_tk9901, I just cut&pasted the other
    afavlab entry and changed it to be unique.

    regards,
    chris

    -- 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 : Fri Feb 09 2001 - 07:17:20 EST