rup.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /****************************************************************************
  2. ******* *******
  3. ******* R U P S T R U C T U R E
  4. ******* *******
  5. ****************************************************************************
  6. Author : Ian Nandhra
  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 _rup_h
  31. #define _rup_h 1
  32. #define MAX_RUP ((short) 16)
  33. #define PKTS_PER_RUP ((short) 2) /* They are always used in pairs */
  34. /*************************************************
  35. * Define all the packet request stuff
  36. ************************************************/
  37. #define TX_RUP_INACTIVE 0 /* Nothing to transmit */
  38. #define TX_PACKET_READY 1 /* Transmit packet ready */
  39. #define TX_LOCK_RUP 2 /* Transmit side locked */
  40. #define RX_RUP_INACTIVE 0 /* Nothing received */
  41. #define RX_PACKET_READY 1 /* Packet received */
  42. #define RUP_NO_OWNER 0xff /* RUP not owned by any process */
  43. struct RUP {
  44. u16 txpkt; /* Outgoing packet */
  45. u16 rxpkt; /* Incoming packet */
  46. u16 link; /* Which link to send down? */
  47. u8 rup_dest_unit[2]; /* Destination unit */
  48. u16 handshake; /* For handshaking */
  49. u16 timeout; /* Timeout */
  50. u16 status; /* Status */
  51. u16 txcontrol; /* Transmit control */
  52. u16 rxcontrol; /* Receive control */
  53. };
  54. #endif
  55. /*********** end of file ***********/