home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 024 / psi110g.zip / LXASY.H < prev    next >
C/C++ Source or Header  |  1994-04-17  |  981b  |  38 lines

  1. /* Various I/O definitions specific to asynch I/O on Linux */
  2. #ifndef _LXASY_H
  3. #define _LXASY_H
  4.   
  5. #ifndef _MBUF_H
  6. #include "mbuf.h"
  7. #endif
  8.   
  9. #ifndef _PROC_H
  10. #include "proc.h"
  11. #endif
  12.   
  13. #ifndef _IFACE_H
  14. #include "iface.h"
  15. #endif
  16.   
  17. /* Asynch controller control block */
  18. struct asy {
  19.     struct iface *iface;
  20.     struct mbuf *sndq;  /* Transmit queue */
  21.     struct mbuf *rcvq;  /* Receive queue */
  22.     struct proc *rxproc;    /* Low-level receive process */
  23.     int fd;         /* Fildes for tty device */
  24.     char uulock[60];    /* UUCP lock file name */
  25.     long speed;
  26.     long rxints;        /* simulated rx interrupts */
  27.     long txints;        /* simulated tx interrupts */
  28.     long rxchar;        /* Received characters */
  29.     long txchar;        /* Transmitted characters */
  30. };
  31.   
  32. extern int Nasy;        /* Actual number of asynch lines */
  33. extern struct asy Asy[];
  34.   
  35. extern int carrier_detect __ARGS((int));
  36.   
  37. #endif  /* _LXASY_H */
  38.