2005-04-16 16:20:36 -06:00
|
|
|
/****************************************************************************
|
|
|
|
******* *******
|
|
|
|
******* H O S T M E M O R Y M A P
|
|
|
|
******* *******
|
|
|
|
****************************************************************************
|
|
|
|
|
|
|
|
Author : Ian Nandhra / Jeremy Rolls
|
|
|
|
Date :
|
|
|
|
|
|
|
|
*
|
|
|
|
* (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
Version : 0.01
|
|
|
|
|
|
|
|
|
|
|
|
Mods
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
Date By Description
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
6/4/1991 jonb Made changes to accommodate Mips R3230 bus
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _parmap_h
|
|
|
|
#define _parmap_h
|
|
|
|
|
2006-01-11 13:17:49 -07:00
|
|
|
typedef struct PARM_MAP PARM_MAP;
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2006-01-11 13:17:49 -07:00
|
|
|
struct PARM_MAP {
|
2006-03-24 04:18:31 -07:00
|
|
|
u16 phb_ptr; /* Pointer to the PHB array */
|
2006-03-24 04:18:24 -07:00
|
|
|
u16 phb_num_ptr; /* Ptr to Number of PHB's */
|
2006-03-24 04:18:31 -07:00
|
|
|
u16 free_list; /* Free List pointer */
|
|
|
|
u16 free_list_end; /* Free List End pointer */
|
|
|
|
u16 q_free_list_ptr; /* Ptr to Q_BUF variable */
|
2006-03-24 04:18:24 -07:00
|
|
|
u16 unit_id_ptr; /* Unit Id */
|
2006-03-24 04:18:31 -07:00
|
|
|
u16 link_str_ptr; /* Link Structure Array */
|
2006-03-24 04:18:24 -07:00
|
|
|
u16 bootloader_1; /* 1st Stage Boot Loader */
|
|
|
|
u16 bootloader_2; /* 2nd Stage Boot Loader */
|
|
|
|
u16 port_route_map_ptr; /* Port Route Map */
|
2006-03-24 04:18:31 -07:00
|
|
|
u16 route_ptr; /* Unit Route Map */
|
2006-03-24 04:18:24 -07:00
|
|
|
u16 map_present; /* Route Map present */
|
|
|
|
s16 pkt_num; /* Total number of packets */
|
|
|
|
s16 q_num; /* Total number of Q packets */
|
|
|
|
u16 buffers_per_port; /* Number of buffers per port */
|
|
|
|
u16 heap_size; /* Initial size of heap */
|
|
|
|
u16 heap_left; /* Current Heap left */
|
|
|
|
u16 error; /* Error code */
|
|
|
|
u16 tx_max; /* Max number of tx pkts per phb */
|
|
|
|
u16 rx_max; /* Max number of rx pkts per phb */
|
|
|
|
u16 rx_limit; /* For high / low watermarks */
|
|
|
|
s16 links; /* Links to use */
|
|
|
|
s16 timer; /* Interrupts per second */
|
2006-03-24 04:18:31 -07:00
|
|
|
u16 rups; /* Pointer to the RUPs */
|
2006-03-24 04:18:24 -07:00
|
|
|
u16 max_phb; /* Mostly for debugging */
|
|
|
|
u16 living; /* Just increments!! */
|
|
|
|
u16 init_done; /* Initialisation over */
|
|
|
|
u16 booting_link;
|
|
|
|
u16 idle_count; /* Idle time counter */
|
|
|
|
u16 busy_count; /* Busy counter */
|
|
|
|
u16 idle_control; /* Control Idle Process */
|
|
|
|
u16 tx_intr; /* TX interrupt pending */
|
|
|
|
u16 rx_intr; /* RX interrupt pending */
|
|
|
|
u16 rup_intr; /* RUP interrupt pending */
|
2006-01-11 13:17:49 -07:00
|
|
|
};
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*********** end of file ***********/
|