qbuf.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /****************************************************************************
  2. ******* *******
  3. ******* Q U E U E B U F F E R S T R U C T U R E S
  4. ******* *******
  5. ****************************************************************************
  6. Author : Ian Nandhra / Jeremy Rolls
  7. Date :
  8. *
  9. * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. Version : 0.01
  25. Mods
  26. ----------------------------------------------------------------------------
  27. Date By Description
  28. ----------------------------------------------------------------------------
  29. ***************************************************************************/
  30. #ifndef _qbuf_h
  31. #define _qbuf_h 1
  32. #ifndef lint
  33. #ifdef SCCS_LABELS
  34. static char *_rio_qbuf_h_sccs = "@(#)qbuf.h 1.1" ;
  35. #endif
  36. #endif
  37. #ifdef HOST
  38. #define PKTS_PER_BUFFER 1
  39. #else
  40. #define PKTS_PER_BUFFER (220 / PKT_LENGTH)
  41. #endif
  42. typedef struct Q_BUF Q_BUF ;
  43. struct Q_BUF {
  44. Q_BUF_ptr next ;
  45. Q_BUF_ptr prev ;
  46. PKT_ptr buf[PKTS_PER_BUFFER] ;
  47. } ;
  48. #endif
  49. /*********** end of file ***********/