Re: [PARPORT] ppdev and EPP mode

From: Tim Waugh (twaugh@redhat.com)
Date: Wed Apr 12 2000 - 06:16:49 EDT

  • Next message: Tim Waugh: "Re: [PARPORT] Can't Print from RH 6.1"

    On Tue, 11 Apr 2000, Vince Weaver wrote:

    > First, I had to hard-wire the driver to use ECPEPP mode, because for
    > some reason the tests for it didn't autodetect it.

    I think it might be for the same reason. Could you give this patch a try
    and let me know if it works for you?

    I'm not sure about the read operations -- EPP 1.9 doesn't seem to need
    0x20 according to the SMsC datasheet I looked at, but EPP 1.7 does.

    Tim.
    */

    Index: drivers/parport/parport_pc.c
    ===================================================================
    RCS file: /usr/local/src/cvsroot/linux/drivers/parport/parport_pc.c,v
    retrieving revision 1.49
    diff -d -u -r1.49 parport_pc.c
    --- drivers/parport/parport_pc.c 2000/03/29 11:23:57 1.49
    +++ drivers/parport/parport_pc.c 2000/04/12 10:14:28
    @@ -427,6 +427,7 @@
             size_t got;
     
             frob_econtrol (port, 0xe0, ECR_EPP << 5);
    + parport_pc_write_control (port, 0x24);
             got = parport_pc_epp_read_data (port, buf, length, flags);
             frob_econtrol (port, 0xe0, ECR_PS2 << 5);
     
    @@ -440,6 +441,7 @@
             size_t written;
     
             frob_econtrol (port, 0xe0, ECR_EPP << 5);
    + parport_pc_write_control (port, 0x04);
             written = parport_pc_epp_write_data (port, buf, length, flags);
             frob_econtrol (port, 0xe0, ECR_PS2 << 5);
     
    @@ -452,6 +454,7 @@
             size_t got;
     
             frob_econtrol (port, 0xe0, ECR_EPP << 5);
    + parport_pc_write_control (port, 0x24);
             got = parport_pc_epp_read_addr (port, buf, length, flags);
             frob_econtrol (port, 0xe0, ECR_PS2 << 5);
     
    @@ -465,6 +468,7 @@
             size_t written;
     
             frob_econtrol (port, 0xe0, ECR_EPP << 5);
    + parport_pc_write_control (port, 0x04);
             written = parport_pc_epp_write_addr (port, buf, length, flags);
             frob_econtrol (port, 0xe0, ECR_PS2 << 5);
     
    @@ -1733,7 +1737,7 @@
             oecr = inb (ECONTROL (pb));
             /* Search for SMC style EPP+ECP mode */
             outb (0x80, ECONTROL (pb));
    -
    + outb (0x04, CONTROL (pb));
             result = parport_EPP_supported(pb);
     
             outb (oecr, ECONTROL (pb));

    -- 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 : Wed Apr 12 2000 - 06:18:51 EDT