blob: 9764ef85c5a658a863b89177a45d52342633b482 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/****************************************************************************
2 ******* *******
3 ******* H O S T M E M O R Y M A P
4 ******* *******
5 ****************************************************************************
6
7 Author : Ian Nandhra / Jeremy Rolls
8 Date :
9
10 *
11 * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
27 Version : 0.01
28
29
30 Mods
31 ----------------------------------------------------------------------------
32 Date By Description
33 ----------------------------------------------------------------------------
346/4/1991 jonb Made changes to accommodate Mips R3230 bus
35 ***************************************************************************/
36
37#ifndef _parmap_h
38#define _parmap_h
39
40
41#ifdef SCCS_LABELS
42#ifndef lint
43/* static char *_rio_parmmap_h_sccs = "@(#)parmmap.h 1.4"; */
44#endif
45#endif
46
Andrew Morton8d8706e2006-01-11 12:17:49 -080047typedef struct PARM_MAP PARM_MAP;
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
Andrew Morton8d8706e2006-01-11 12:17:49 -080049struct PARM_MAP {
Alan Cox57c2d602006-03-24 03:18:31 -080050 u16 phb_ptr; /* Pointer to the PHB array */
Alan Cox74769ab2006-03-24 03:18:24 -080051 u16 phb_num_ptr; /* Ptr to Number of PHB's */
Alan Cox57c2d602006-03-24 03:18:31 -080052 u16 free_list; /* Free List pointer */
53 u16 free_list_end; /* Free List End pointer */
54 u16 q_free_list_ptr; /* Ptr to Q_BUF variable */
Alan Cox74769ab2006-03-24 03:18:24 -080055 u16 unit_id_ptr; /* Unit Id */
Alan Cox57c2d602006-03-24 03:18:31 -080056 u16 link_str_ptr; /* Link Structure Array */
Alan Cox74769ab2006-03-24 03:18:24 -080057 u16 bootloader_1; /* 1st Stage Boot Loader */
58 u16 bootloader_2; /* 2nd Stage Boot Loader */
59 u16 port_route_map_ptr; /* Port Route Map */
Alan Cox57c2d602006-03-24 03:18:31 -080060 u16 route_ptr; /* Unit Route Map */
Alan Cox74769ab2006-03-24 03:18:24 -080061 u16 map_present; /* Route Map present */
62 s16 pkt_num; /* Total number of packets */
63 s16 q_num; /* Total number of Q packets */
64 u16 buffers_per_port; /* Number of buffers per port */
65 u16 heap_size; /* Initial size of heap */
66 u16 heap_left; /* Current Heap left */
67 u16 error; /* Error code */
68 u16 tx_max; /* Max number of tx pkts per phb */
69 u16 rx_max; /* Max number of rx pkts per phb */
70 u16 rx_limit; /* For high / low watermarks */
71 s16 links; /* Links to use */
72 s16 timer; /* Interrupts per second */
Alan Cox57c2d602006-03-24 03:18:31 -080073 u16 rups; /* Pointer to the RUPs */
Alan Cox74769ab2006-03-24 03:18:24 -080074 u16 max_phb; /* Mostly for debugging */
75 u16 living; /* Just increments!! */
76 u16 init_done; /* Initialisation over */
77 u16 booting_link;
78 u16 idle_count; /* Idle time counter */
79 u16 busy_count; /* Busy counter */
80 u16 idle_control; /* Control Idle Process */
81 u16 tx_intr; /* TX interrupt pending */
82 u16 rx_intr; /* RX interrupt pending */
83 u16 rup_intr; /* RUP interrupt pending */
Andrew Morton8d8706e2006-01-11 12:17:49 -080084};
Linus Torvalds1da177e2005-04-16 15:20:36 -070085
86#endif
87
88/*********** end of file ***********/