protsts.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /****************************************************************************
  2. ******* *******
  3. ******* P R O T O C O L S T A T U S S T R U C T U R E *******
  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 _protsts_h
  31. #define _protsts_h 1
  32. #ifdef SCCS_LABELS
  33. #ifndef lint
  34. /* static char *_rio_protsts_h_sccs = "@(#)protsts.h 1.4"; */
  35. #endif
  36. #endif
  37. /*************************************************
  38. * ACK bit. Last Packet received OK. Set by
  39. * rxpkt to indicate that the Packet has been
  40. * received OK and that the LTT must set the ACK
  41. * bit in the next outward bound Packet
  42. * and re-set by LTT's after xmit.
  43. *
  44. * Gets shoved into rx_status
  45. ************************************************/
  46. #define PHB_RX_LAST_PKT_ACKED ((ushort) 0x080)
  47. /*******************************************************
  48. * The Rx TOGGLE bit.
  49. * Stuffed into rx_status by RXPKT
  50. ******************************************************/
  51. #define PHB_RX_DATA_WNDW ((ushort) 0x040)
  52. /*******************************************************
  53. * The Rx TOGGLE bit. Matches the setting in PKT.H
  54. * Stuffed into rx_status
  55. ******************************************************/
  56. #define PHB_RX_TGL ((ushort) 0x2000)
  57. /*************************************************
  58. * This bit is set by the LRT to indicate that
  59. * an ACK (packet) must be returned.
  60. *
  61. * Gets shoved into tx_status
  62. ************************************************/
  63. #define PHB_TX_SEND_PKT_ACK ((ushort) 0x08)
  64. /*************************************************
  65. * Set by LTT to indicate that an ACK is required
  66. *************************************************/
  67. #define PHB_TX_ACK_RQRD ((ushort) 0x01)
  68. /*******************************************************
  69. * The Tx TOGGLE bit.
  70. * Stuffed into tx_status by RXPKT from the PKT WndW
  71. * field. Looked by the LTT when the NEXT Packet
  72. * is going to be sent.
  73. ******************************************************/
  74. #define PHB_TX_DATA_WNDW ((ushort) 0x04)
  75. /*******************************************************
  76. * The Tx TOGGLE bit. Matches the setting in PKT.H
  77. * Stuffed into tx_status
  78. ******************************************************/
  79. #define PHB_TX_TGL ((ushort) 0x02)
  80. /*******************************************************
  81. * Request intr bit. Set when the queue has gone quiet
  82. * and the PHB has requested an interrupt.
  83. ******************************************************/
  84. #define PHB_TX_INTR ((ushort) 0x100)
  85. /*******************************************************
  86. * SET if the PHB cannot send any more data down the
  87. * Link
  88. ******************************************************/
  89. #define PHB_TX_HANDSHAKE ((ushort) 0x010)
  90. #define RUP_SEND_WNDW ((ushort) 0x08) ;
  91. #endif
  92. /*********** end of file ***********/