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 /*
23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef _TOPO_METHOD_H
28 #define	_TOPO_METHOD_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  * FMRI methods
38  */
39 #define	TOPO_METH_ASRU_COMPUTE		"topo_asru_compute"
40 #define	TOPO_METH_FRU_COMPUTE		"topo_fru_compute"
41 #define	TOPO_METH_FMRI			"topo_fmri"
42 #define	TOPO_METH_NVL2STR		"topo_nvl2str"
43 #define	TOPO_METH_STR2NVL		"topo_str2nvl"
44 #define	TOPO_METH_CONTAINS		"topo_contains"
45 #define	TOPO_METH_UNUSABLE		"topo_unusable"
46 #define	TOPO_METH_EXPAND		"topo_expand"
47 #define	TOPO_METH_COMPARE		"topo_compare"
48 
49 #define	TOPO_METH_FMRI_VERSION			0
50 #define	TOPO_METH_FRU_COMPUTE_VERSION		0
51 #define	TOPO_METH_ASRU_COMPUTE_VERSION		0
52 #define	TOPO_METH_NVL2STR_VERSION		0
53 #define	TOPO_METH_STR2NVL_VERSION		0
54 #define	TOPO_METH_CONTAINS_VERSION		0
55 #define	TOPO_METH_UNUSABLE_VERSION		0
56 #define	TOPO_METH_EXPAND_VERSION		0
57 #define	TOPO_METH_COMPARE_VERSION		0
58 
59 #define	TOPO_METH_ASRU_COMPUTE_DESC		"Dynamic ASRU constructor"
60 #define	TOPO_METH_FRU_COMPUTE_DESC		"Dynamic FRU constructor"
61 #define	TOPO_METH_FMRI_DESC			"Dynamic FMRI constructor"
62 #define	TOPO_METH_NVL2STR_DESC			"FMRI to string"
63 #define	TOPO_METH_STR2NVL_DESC			"string to FMRI"
64 #define	TOPO_METH_CONTAINS_DESC			"FMRI contains sub-FMRI"
65 #define	TOPO_METH_UNUSABLE_DESC			"FMRI is unusable"
66 #define	TOPO_METH_EXPAND_DESC			"expand FMRI"
67 #define	TOPO_METH_COMPARE_DESC			"compare two FMRIs"
68 
69 #define	TOPO_METH_FMRI_ARG_NAME		"child-name"
70 #define	TOPO_METH_FMRI_ARG_INST		"child-inst"
71 #define	TOPO_METH_FMRI_ARG_NVL		"args"
72 #define	TOPO_METH_FMRI_ARG_PARENT	"parent-fmri"
73 #define	TOPO_METH_FMRI_ARG_AUTH		"auth"
74 #define	TOPO_METH_FMRI_ARG_PART		"part"
75 #define	TOPO_METH_FMRI_ARG_REV		"rev"
76 #define	TOPO_METH_FMRI_ARG_SER		"serial"
77 #define	TOPO_METH_FMRI_ARG_HCS		"hc-specific"
78 
79 #ifdef	__cplusplus
80 }
81 #endif
82 
83 #endif	/* _TOPO_METHOD_H */
84