Re: [PARPORT] vmware, EPP, ECP, ZIP drive, printer port

From: Tim Waugh (twaugh@redhat.com)
Date: Thu May 18 2000 - 09:24:33 EDT

  • Next message: Derek Bouius: "Re: [PARPORT] ECP read - FIFO/DMA"

    On Tue, May 16, 2000 at 09:35:54PM -0700, IgoR wrote:

    > is there any workaround for my problem ??

    Can you try this patch out and see if it helps? I don't _think_ it
    should be necessary, so it might not help, but you never know..

    Tim.
    */

    --- linux/drivers/scsi/ppa.h~ Thu Apr 20 14:32:54 2000
    +++ linux/drivers/scsi/ppa.h Thu May 18 14:23:11 2000
    @@ -83,6 +83,7 @@
     #define PPA_EPP_16 4 /* EPP mode, 16 bit */
     #define PPA_EPP_32 5 /* EPP mode, 32 bit */
     #define PPA_UNKNOWN 6 /* Just in case... */
    +#define PPA_ECPPS2 7 /* PS/2 mode in ECP */
     
     static char *PPA_MODE_STRING[] =
     {
    --- linux/drivers/scsi/ppa.c~ Fri May 7 18:57:42 1999
    +++ linux/drivers/scsi/ppa.c Thu May 18 14:23:11 2000
    @@ -163,7 +163,7 @@
     
             if (modes & PARPORT_MODE_PCECPPS2) {
                 w_ecr(ppb, 0x20);
    - ppa_hosts[i].mode = PPA_PS2;
    + ppa_hosts[i].mode = PPA_ECPPS2;
             }
             if (modes & PARPORT_MODE_PCECPEPP)
                 w_ecr(ppb, 0x80);
    @@ -180,6 +180,7 @@
             case PPA_NIBBLE:
                 ports = 3;
                 break;
    + case PPA_ECPPS2:
             case PPA_PS2:
                 ports = 3;
                 break;
    @@ -399,6 +400,7 @@
         }
         switch (ppa_hosts[host_no].mode) {
         case PPA_NIBBLE:
    + case PPA_ECPPS2:
         case PPA_PS2:
             /* 8 bit output, with a loop */
             r = ppa_byte_out(ppb, buffer, len);
    @@ -449,6 +451,8 @@
             w_ctr(ppb, 0xc);
             break;
     
    + case PPA_ECPPS2:
    + w_ecr(ppb, 0x20);
         case PPA_PS2:
             /* 8 bit input, with a loop */
             w_ctr(ppb, 0x25);



    -- 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 18 2000 - 09:28:21 EDT