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

  1. /****************************************************************************
  2. *
  3. *            COPYRIGHT 1990,91,92 BY GRACILIS INC.
  4. *
  5. *              623 Palace St.
  6. *            Aurora, Il. 60506
  7. *
  8. * GRACILIS, INC., MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS
  9. * SOFTWARE FOR ANY PURPOSE.
  10. *
  11. * THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
  12. *
  13. * Permission is granted for non-commercial distribution only.
  14. *
  15. ******************************************************************************/
  16.   
  17.   
  18. #ifndef GRACILIS
  19. #define GRACILIS
  20.   
  21. #define OLD_KA9Q    1   /* for versions of nos up to and including 12/29/91 */
  22.   
  23. /* Commonly used data types for Gracilis drivers */
  24. typedef unsigned short  uint;
  25. typedef unsigned long   ulong;
  26. typedef unsigned char   bool;
  27. typedef unsigned char   uchar;
  28. typedef unsigned char   byte;
  29.   
  30.   
  31.   
  32. /*
  33.  * driver buffer block
  34.  */
  35. struct drvbuf {
  36.     struct drvbuf *next;    /* pointer to next drvbuf in LL */
  37.     int16  msgsize;     /* number of bytes in message */
  38.     char  buf;      /* 1st byte of message */
  39. };
  40.   
  41. struct mbuf_qhat {
  42.     struct mbuf *headp;
  43.     struct mbuf *tailp;
  44. };
  45.   
  46.   
  47. /*
  48.  * driver timer control block
  49.  */
  50. struct drv_timer {
  51.     struct drv_timer  *nxt_timer;
  52.     int16       ticks;
  53.     void        (*thandler)();
  54.     unsigned long   targ;
  55. };
  56.   
  57. /* Gracilis specific ioctl parameters */
  58. #define GRACILIS_PARM_BASE  50
  59. #define PARAM_RXBUFS    GRACILIS_PARM_BASE
  60. #define PARAM_TXQMAX    GRACILIS_PARM_BASE+1
  61.   
  62. #define MAX_AX25_HDR_LEN 72
  63.   
  64. /* Function definitions for gracilis.c */
  65. struct mbuf *f_dequeavail __ARGS((struct mbuf **,int16 *));
  66. void f_getavail __ARGS((struct mbuf **,int16,int16,int16 *,struct iface *,bool));
  67.   
  68. #endif  /* GRACILIS */
  69.