home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1 / HamRadio.cdr / misc / tcpipsrc / asy.h < prev    next >
Text File  |  1990-11-10  |  1KB  |  47 lines

  1. #ifndef    _ASY_H
  2. #define    _ASY_H
  3.  
  4. #ifndef    _GLOBAL_H
  5. #include "global.h"
  6. #endif
  7.  
  8. #ifndef    _MBUF_H
  9. #include "mbuf.h"
  10. #endif
  11.  
  12. #ifndef    _IFACE_H
  13. #include "iface.h"
  14. #endif
  15.  
  16. #define    ASY_MAX    5        /* Five asynch ports allowed on the PC */
  17.  
  18. #define    SLIP_MODE    0
  19. #define    AX25_MODE    1
  20. #define    NRS_MODE    2
  21. #define    UNKNOWN_MODE    3
  22. #define PPP_MODE    4
  23.  
  24. /* In 8250.c: */
  25. int asy_autobaud __ARGS((int dev));
  26. int asy_init __ARGS((int dev,struct iface *iface,char *arg1,char *arg2,
  27.     unsigned bufsize,int trigchar,char cts,char rlsd));
  28. int asy_ioctl __ARGS((struct iface *iface,int argc,char *argv[]));
  29. void asy_output __ARGS((int dev,char *buf,unsigned short cnt));
  30. int asy_send __ARGS((int dev,struct mbuf *bp));
  31. int asy_speed __ARGS((int dev,long speed,long autospeed));
  32. int asy_stop __ARGS((struct iface *iface));
  33. void asyint __ARGS((int dev));
  34. int get_rlsd_asy __ARGS((int dev, int new_rlsd));
  35. void asy_tx __ARGS((int dev,void *p1,void *p2));
  36. int get_asy __ARGS((int dev));
  37. int stxrdy __ARGS((int dev));
  38.  
  39. /* In asyvec.asm: */
  40. INTERRUPT asy0vec __ARGS((void));
  41. INTERRUPT asy1vec __ARGS((void));
  42. INTERRUPT asy2vec __ARGS((void));
  43. INTERRUPT asy3vec __ARGS((void));
  44. INTERRUPT asy4vec __ARGS((void));
  45.  
  46. #endif    /* _ASY_H */
  47.