parmmap.h 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /****************************************************************************
  2. ******* *******
  3. ******* H O S T M E M O R Y M A P
  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. 6/4/1991 jonb Made changes to accommodate Mips R3230 bus
  30. ***************************************************************************/
  31. #ifndef _parmap_h
  32. #define _parmap_h
  33. #ifdef SCCS_LABELS
  34. #ifndef lint
  35. /* static char *_rio_parmmap_h_sccs = "@(#)parmmap.h 1.4"; */
  36. #endif
  37. #endif
  38. typedef struct PARM_MAP PARM_MAP;
  39. struct PARM_MAP {
  40. u16 phb_ptr; /* Pointer to the PHB array */
  41. u16 phb_num_ptr; /* Ptr to Number of PHB's */
  42. u16 free_list; /* Free List pointer */
  43. u16 free_list_end; /* Free List End pointer */
  44. u16 q_free_list_ptr; /* Ptr to Q_BUF variable */
  45. u16 unit_id_ptr; /* Unit Id */
  46. u16 link_str_ptr; /* Link Structure Array */
  47. u16 bootloader_1; /* 1st Stage Boot Loader */
  48. u16 bootloader_2; /* 2nd Stage Boot Loader */
  49. u16 port_route_map_ptr; /* Port Route Map */
  50. u16 route_ptr; /* Unit Route Map */
  51. u16 map_present; /* Route Map present */
  52. s16 pkt_num; /* Total number of packets */
  53. s16 q_num; /* Total number of Q packets */
  54. u16 buffers_per_port; /* Number of buffers per port */
  55. u16 heap_size; /* Initial size of heap */
  56. u16 heap_left; /* Current Heap left */
  57. u16 error; /* Error code */
  58. u16 tx_max; /* Max number of tx pkts per phb */
  59. u16 rx_max; /* Max number of rx pkts per phb */
  60. u16 rx_limit; /* For high / low watermarks */
  61. s16 links; /* Links to use */
  62. s16 timer; /* Interrupts per second */
  63. u16 rups; /* Pointer to the RUPs */
  64. u16 max_phb; /* Mostly for debugging */
  65. u16 living; /* Just increments!! */
  66. u16 init_done; /* Initialisation over */
  67. u16 booting_link;
  68. u16 idle_count; /* Idle time counter */
  69. u16 busy_count; /* Busy counter */
  70. u16 idle_control; /* Control Idle Process */
  71. u16 tx_intr; /* TX interrupt pending */
  72. u16 rx_intr; /* RX interrupt pending */
  73. u16 rup_intr; /* RUP interrupt pending */
  74. };
  75. #endif
  76. /*********** end of file ***********/