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 2007 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_COMPARE "topo_compare" 46 47 #define TOPO_METH_FMRI_VERSION 0 48 #define TOPO_METH_FRU_COMPUTE_VERSION 0 49 #define TOPO_METH_ASRU_COMPUTE_VERSION 0 50 #define TOPO_METH_NVL2STR_VERSION 0 51 #define TOPO_METH_STR2NVL_VERSION 0 52 #define TOPO_METH_CONTAINS_VERSION 0 53 #define TOPO_METH_COMPARE_VERSION 0 54 55 #define TOPO_METH_ASRU_COMPUTE_DESC "Dynamic ASRU constructor" 56 #define TOPO_METH_FRU_COMPUTE_DESC "Dynamic FRU constructor" 57 #define TOPO_METH_FMRI_DESC "Dynamic FMRI constructor" 58 #define TOPO_METH_NVL2STR_DESC "FMRI to string" 59 #define TOPO_METH_STR2NVL_DESC "string to FMRI" 60 #define TOPO_METH_CONTAINS_DESC "FMRI contains sub-FMRI" 61 #define TOPO_METH_COMPARE_DESC "compare two FMRIs" 62 63 #define TOPO_METH_FMRI_ARG_NAME "child-name" 64 #define TOPO_METH_FMRI_ARG_INST "child-inst" 65 #define TOPO_METH_FMRI_ARG_NVL "args" 66 #define TOPO_METH_FMRI_ARG_PARENT "parent-fmri" 67 #define TOPO_METH_FMRI_ARG_AUTH "auth" 68 #define TOPO_METH_FMRI_ARG_PART "part" 69 #define TOPO_METH_FMRI_ARG_REV "rev" 70 #define TOPO_METH_FMRI_ARG_SER "serial" 71 #define TOPO_METH_FMRI_ARG_HCS "hc-specific" 72 73 #ifdef __cplusplus 74 } 75 #endif 76 77 #endif /* _TOPO_METHOD_H */ 78