xref: /illumos-gate/usr/src/uts/sun4u/opl/sys/scfd/scfostoescf.h (revision 2aeafac3612e19716bf8164f89c3c9196342979c)
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  * All Rights Reserved, Copyright (c) FUJITSU LIMITED 2006
23  */
24 
25 #ifndef	_SCFOSTOESCF_H
26 #define	_SCFOSTOESCF_H
27 
28 #pragma ident	"%Z%%M%	%I%	%E% SMI"
29 
30 #ifdef	__cplusplus
31 extern "C" {
32 #endif
33 
34 /* OS to ESCF key */
35 #define	KEY_ESCF	('E' << 24 | 'S' << 16 | 'C' << 8 | 'F')
36 
37 
38 
39 /*
40  * External function
41  */
42 
43 extern int scf_service_putinfo(uint32_t, uint8_t, uint32_t, uint32_t, void *);
44 extern int scf_service_getinfo(uint32_t, uint8_t, uint32_t, uint32_t *, void *);
45 extern int scf_get_dimminfo(uint32_t boardnum, void *buf, uint32_t *bufsz);
46 
47 #define	SUB_OS_SEND_PRE_FMEMA		0x10
48 #define	SUB_OS_SEND_CANCEL_FMEMA	0x15
49 #define	SUB_OS_SEND_COMPLETE_FMEMA	0x43
50 #define	SUB_OS_RECEIVE_DIMM_INFO	0x45
51 
52 #ifdef	__cplusplus
53 }
54 #endif
55 
56 #endif	/* _SCFOSTOESCF_H */
57