xref: /titanic_52/usr/src/uts/sun/sys/socalmap.h (revision 3e0c804466b61d42dc6a3e1cb114c11681ef181a)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 1995 Sun Microsystems, Inc. All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef _SYS_SOCALMAP_H
27 #define	_SYS_SOCALMAP_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /*
36  *	SOC EEPROM Map
37  */
38 #define	SOCAL_PROM_4TH_SELF_TST	0x00000 /* 0x05000 thru 0x05fff forth code */
39 #define	SOCAL_PROM_4TH_OBP_DRV	0x01000	/* thru 0x09fff forth OBP driver */
40 #define	SOCAL_PROM_OBP_HDR	0x05000	/* thru 0x002ff */
41 #define	SOCAL_PROM_FW_DATE_CODE	0x05300	/* thru 0x00303 FW date code */
42 #define	SOCAL_PROM_SRVC_PARM	0x05304	/* thru 0x00343 SOC+ Service params */
43 #define	SOCAL_PROM_LA_BIT_MASK	0x05344	/* thru 0x0034b link app bit mask */
44 #define	SOCAL_PROM_RSRV1	0x0534c	/* thru 0x00fff */
45 #define	SOCAL_PROM_SOCAL_CODE	0x06000	/* thru 0x04fff SOC+ code */
46 #define	SOCAL_PROM_RSRV2	0x0f000	/* thru 0x0ffff */
47 
48 /*
49  *	SOC XRam Map
50  */
51 #define	SOCAL_XRAM_REQ_DESC	0x00200	/* req circular que descriptors */
52 #define	SOCAL_XRAM_RSP_DESC	0x00220	/* req circular que descriptors */
53 #define	SOCAL_XRAM_LESB_P0	0x00240
54 #define	SOCAL_XRAM_LESB_P1	0x00258 /* thru 0x1026f */
55 #define	SOCAL_XRAM_SERV_PARAMS	0x00280
56 #define	SOCAL_XRAM_FW_DATE_STR	0x002dc	/* ctime() format date code */
57 #define	SOCAL_XRAM_FW_DATE_CODE	0x002f8	/* thru 0x002fb FW date code */
58 #define	SOCAL_XRAM_HW_REV	0x002fc	/* thru 0x002ff HW revision */
59 #define	SOCAL_XRAM_UCODE	0x00300	/* thru 0x03fff SOC+ microcode */
60 #define	SOCAL_XRAM_PORTA_WWN	0x00300	/* thru 0x00307, port A wwn */
61 #define	SOCAL_XRAM_PORTB_WWN	0x00308	/* thru 0x0030f, port B wwn */
62 #define	SOCAL_XRAM_NODE_WWN	0x00310	/* thru 0x00317, Node worldwide name */
63 #define	SOCAL_XRAM_PORTA_HRDA	0x00318 /* store port's hard address */
64 #define	SOCAL_XRAM_BUF_POOL	0x04000	/* thru 0x0bfff	soc+ buffer pool */
65 #define	SOCAL_XRAM_EXCH_POOL	0x0c000	/* thru 0x0ffff soc+ exchange pool */
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* !_SYS_SOCALMAP_H */
72