[PARPORT] Problem with parport detection

From: Shane Wegner (shane@cm.nu)
Date: Tue Apr 10 2001 - 05:36:59 EDT

  • Next message: Tim Waugh: "Re: [PARPORT] Problem with parport detection"

    Hi,

    I am having trouble writing a parport device driver which
    seems to relate to the kernel driver code from parport_pc.
    That is the parport_pc code seems to detect the port
    differently depending on its mood. It's a modern parallel
    port (Pentium III) with everything enabled. Here are two
    entries from the same day.

    Apr 9 15:52:23 continuum kernel: parport0: PC-style at
    0x378 (0x778) [SPP,ECP,ECPEPP,ECPPS2]

    Or there's this one.

    Apr 10 00:34:11 continuum kernel: 0x278: CTR: wrote 0x0c,
    read 0xff
    Apr 10 00:34:11 continuum kernel: 0x278: DATA: wrote 0xaa,
    read 0xff
    Apr 10 00:34:11 continuum kernel: parport0: PC-style at
    0x278 [SPP,PS2]

    The driver I'm writing needs the port in standard SPP mode
    with bidirectional enabled.

    outb 34, 77a
    inb 77a = 35
    outb 30, 37a

    I do this in the driver as I can't seem to get the parport
    layer to do it automatically. The thing is, when it
    doesn't decide to detect all the fancy ECP/EPP features,
    the above steps don't work.

    Any suggestions would be greatly appreciated.

    Shane

    -- 
    Shane Wegner: shane@cm.nu
                  http://www.cm.nu/~shane/
    PGP:          1024D/FFE3035D
                  A0ED DAC4 77EC D674 5487
                  5B5C 4F89 9A4E FFE3 035D
    

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

    -- 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 : Tue Apr 10 2001 - 05:36:20 EDT