xref: /titanic_44/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/cmd_hc_sun4v.h (revision 70818f5837509317d1f5dac4d82d7b5a2d547c29)
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 2008 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef _CMD_HC_SUN4V_H
27 #define	_CMD_HC_SUN4V_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #include <fm/fmd_api.h>
32 #include <sys/nvpair.h>
33 #include <cmd_cpu.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #define	CPUBOARD	"MB/CPU"
40 #define	EMPTY_STR	"-"
41 
42 extern nvlist_t *cmd_fault_add_location(fmd_hdl_t *, nvlist_t *, const char *);
43 extern nvlist_t *cmd_boardfru_create_fault(fmd_hdl_t *, nvlist_t *,
44     const char *, uint_t, char *);
45 extern nvlist_t *init_mb(fmd_hdl_t *);
46 extern nvlist_t *cmd_find_dimm_by_sn(fmd_hdl_t *, char *, char *);
47 extern char *cmd_getfru_loc(fmd_hdl_t *, nvlist_t *);
48 extern int cmd_count_components(const char *, char sep);
49 extern int cmd_breakup_components(char *, char *, nvlist_t **);
50 extern nvlist_t *cmd_mkboard_fru(fmd_hdl_t *, char *, char *, char *);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif /* _CMD_HC_SUN4V_H */
57