home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / hamradio / s920603.zip / ASY.H < prev    next >
C/C++ Source or Header  |  1992-06-01  |  1KB  |  52 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. /* If you increase this, you must add additional interrupt vector
  17.  * hooks in asyvec.asm
  18.  */
  19. #define    ASY_MAX    6
  20.  
  21. struct asymode {
  22.     char *name;
  23.     char trigchar;
  24.     int (*init) __ARGS((struct iface *,int));
  25.     int (*free) __ARGS((struct iface *));
  26. };
  27. extern struct asymode Asymode[];
  28.  
  29. /* In n8250.c: */
  30. int asy_init __ARGS((int dev,struct iface *ifp,char *arg1,char *arg2,
  31.     int16 bufsize,int trigchar,long speed,int cts,int rlsd));
  32. int32 asy_ioctl __ARGS((struct iface *ifp,int cmd,int set,int32 val));
  33. int asy_speed __ARGS((int dev,long bps));
  34. int asy_send __ARGS((int dev,struct mbuf *bp));
  35. int asy_stop __ARGS((struct iface *ifp));
  36. int asy_write __ARGS((int dev,char *buf,unsigned short cnt));
  37. int get_rlsd_asy __ARGS((int dev, int new_rlsd));
  38. int get_asy __ARGS((int dev));
  39.  
  40. /* In dialer.c: */
  41. void dialer_kick __ARGS((struct asy *asyp));
  42.     
  43. /* In asyvec.asm: */
  44. INTERRUPT asy0vec __ARGS((void));
  45. INTERRUPT asy1vec __ARGS((void));
  46. INTERRUPT asy2vec __ARGS((void));
  47. INTERRUPT asy3vec __ARGS((void));
  48. INTERRUPT asy4vec __ARGS((void));
  49. INTERRUPT asy5vec __ARGS((void));
  50.  
  51. #endif    /* _ASY_H */
  52.