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