Re: [PARPORT] Handling interrupts with select and poll?

From: Bob Tanner (tanner@real-time.com)
Date: Fri May 02 2003 - 15:49:47 EDT

  • Next message: Bob Tanner: "[PARPORT] DMA and the parallel port"

    On Friday 02 May 2003 03:20 am, Tim Waugh wrote:
    > On Thu, May 01, 2003 at 03:48:12PM -0500, Bob Tanner wrote:
    > > NOTES
    > > The nAck pin is often able to trigger interrupts on the
    > > host machine. With operating system help these interrupts
    > > may be visible to the application via the selectable_fd
    > > member of the parport structure.
    > >
    > > Under Linux, the conditions are that the parallel port
    > > driver knows which interrupt line to use and is using it,
    > > and that the relevant /dev/parport device node is accessi-
    > > ble and backed by a device driver.
    > >
    > > Look in parport.h, I do not see selectable_fd member of the in struct
    > > parport.
    >
    > Look in ieee1284.h.

    I must be getting old :-)

    From ieee1284.h:

    /* A parallel port. */
    struct parport {
      /* An arbitrary name for the port */
      const char *name;

      /* The base address of the port, if that has any meaning, or zero. */
      unsigned long base_addr;

      /* The ECR address of the port, if that has any meaning, or zero. */
      unsigned long hibase_addr;

      /* For internal use only: */
      void *priv;
    };

    Which of these fields is the selectable_fd member?

    -- 
    Bob Tanner <tanner@real-time.com>         | Phone : (952)943-8700
    http://www.mn-linux.org, Minnesota, Linux | Fax   : (952)943-8500
    Key fingerprint = AB15 0BDF BCDE 4369 5B42  1973 7CF1 A709 2CC1 B288
    

    -- 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 May 02 2003 - 16:03:08 EDT