parmmap.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. typedef struct PARM_MAP PARM_MAP;
  34. struct PARM_MAP {
  35. u16 phb_ptr; /* Pointer to the PHB array */
  36. u16 phb_num_ptr; /* Ptr to Number of PHB's */
  37. u16 free_list; /* Free List pointer */
  38. u16 free_list_end; /* Free List End pointer */
  39. u16 q_free_list_ptr; /* Ptr to Q_BUF variable */
  40. u16 unit_id_ptr; /* Unit Id */
  41. u16 link_str_ptr; /* Link Structure Array */
  42. u16 bootloader_1; /* 1st Stage Boot Loader */
  43. u16 bootloader_2; /* 2nd Stage Boot Loader */
  44. u16 port_route_map_ptr; /* Port Route Map */
  45. u16 route_ptr; /* Unit Route Map */
  46. u16 map_present; /* Route Map present */
  47. s16 pkt_num; /* Total number of packets */
  48. s16 q_num; /* Total number of Q packets */
  49. u16 buffers_per_port; /* Number of buffers per port */
  50. u16 heap_size; /* Initial size of heap */
  51. u16 heap_left; /* Current Heap left */
  52. u16 error; /* Error code */
  53. u16 tx_max; /* Max number of tx pkts per phb */
  54. u16 rx_max; /* Max number of rx pkts per phb */
  55. u16 rx_limit; /* For high / low watermarks */
  56. s16 links; /* Links to use */
  57. s16 timer; /* Interrupts per second */
  58. u16 rups; /* Pointer to the RUPs */
  59. u16 max_phb; /* Mostly for debugging */
  60. u16 living; /* Just increments!! */
  61. u16 init_done; /* Initialisation over */
  62. u16 booting_link;
  63. u16 idle_count; /* Idle time counter */
  64. u16 busy_count; /* Busy counter */
  65. u16 idle_control; /* Control Idle Process */
  66. u16 tx_intr; /* TX interrupt pending */
  67. u16 rx_intr; /* RX interrupt pending */
  68. u16 rup_intr; /* RUP interrupt pending */
  69. };
  70. #endif
  71. /*********** end of file ***********/