RE: [PARPORT] Getting started with Parport configuration

From: Syed, Hassan (ETD) (Hassan.Syed@compaq.com)
Date: Tue Feb 27 2001 - 11:23:03 EST

  • Next message: bad_knee: "[PARPORT] paride not reporting correct drive size"

    Please ignore the message. I had my parport configured incorrectly as a
    fifo.

    regards,
    Hassan

    > -----Original Message-----
    > From: Syed, Hassan (ETD)
    > Sent: Tuesday, February 27, 2001 9:05 AM
    > To: 'linux-parport@torque.net'
    > Subject: [PARPORT] Getting started with Parport configuration
    >
    >
    > Hi,
    >
    > Hope you can help me with making some headway in programming the
    > parallel port on Armada E500. I am using Redhat 7.0 with kernel 2.4.2
    >
    > This is what I did so far:
    > insmod parport
    > insmod ppdev
    > insmod parport_pc
    >
    > dmesg returns:
    >
    > ppdev: user-space parallel port driver
    > parport0: PC-style at 0x378 [PCSPP, TRISTATE, EPP]
    > parport0: cpp_daisy: aa5500ff(88)
    > parport0: assign_addrs: aa5500ff(88)
    > parport0: faking semi-colon
    > parport0: Legacy device
    >
    > Now for the programming part:
    > ......
    > #include <linux/parport.h>
    > #include <linux/ppdev.h>
    >
    > ....
    > fd =open ("/dev/parport0", O_RDWR);
    > if (fd = -1) {
    > perror ("open");
    > exit (0);
    > }
    >
    > if (ioctl (fd, PPCLAIM)) {
    > perror ("PPCLAIM");
    > }
    >
    > The following message results:
    > PPCLAIM: Invalid argument
    >
    > I would apreciate any pointers on what I am missing.
    >
    > Thanks,
    > Hassan
    >
    > -- 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 Feb 27 2001 - 11:27:32 EST