protsts.h 4.0 KB

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