1*2577Sramat /* 2*2577Sramat * CDDL HEADER START 3*2577Sramat * 4*2577Sramat * The contents of this file are subject to the terms of the 5*2577Sramat * Common Development and Distribution License (the "License"). 6*2577Sramat * You may not use this file except in compliance with the License. 7*2577Sramat * 8*2577Sramat * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*2577Sramat * or http://www.opensolaris.org/os/licensing. 10*2577Sramat * See the License for the specific language governing permissions 11*2577Sramat * and limitations under the License. 12*2577Sramat * 13*2577Sramat * When distributing Covered Code, include this CDDL HEADER in each 14*2577Sramat * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*2577Sramat * If applicable, add the following below this CDDL HEADER, with the 16*2577Sramat * fields enclosed by brackets "[]" replaced with your own identifying 17*2577Sramat * information: Portions Copyright [yyyy] [name of copyright owner] 18*2577Sramat * 19*2577Sramat * CDDL HEADER END 20*2577Sramat */ 21*2577Sramat /* 22*2577Sramat * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23*2577Sramat * Use is subject to license terms. 24*2577Sramat */ 25*2577Sramat 26*2577Sramat #ifndef _MDI_H 27*2577Sramat #define _MDI_H 28*2577Sramat 29*2577Sramat #pragma ident "%Z%%M% %I% %E% SMI" 30*2577Sramat 31*2577Sramat #include <mdb/mdb_modapi.h> 32*2577Sramat 33*2577Sramat #ifdef __cplusplus 34*2577Sramat extern "C" { 35*2577Sramat #endif 36*2577Sramat 37*2577Sramat /* 38*2577Sramat * dcmds 39*2577Sramat */ 40*2577Sramat extern int mdipi(uintptr_t, uint_t, int, const mdb_arg_t *); 41*2577Sramat extern int mdiprops(uintptr_t, uint_t, int, const mdb_arg_t *); 42*2577Sramat extern int mdiphci(uintptr_t, uint_t, int, const mdb_arg_t *); 43*2577Sramat extern int mdivhci(uintptr_t, uint_t, int, const mdb_arg_t *); 44*2577Sramat extern int mdiclient_paths(uintptr_t, uint_t, int, const mdb_arg_t *); 45*2577Sramat extern int mdiphci_paths(uintptr_t, uint_t, int, const mdb_arg_t *); 46*2577Sramat extern int mdiphcis(uintptr_t, uint_t, int, const mdb_arg_t *); 47*2577Sramat 48*2577Sramat /* 49*2577Sramat * walkers 50*2577Sramat */ 51*2577Sramat /* mdi_pathinfo:pi_client_link */ 52*2577Sramat extern int mdi_pi_client_link_walk_init(mdb_walk_state_t *); 53*2577Sramat extern int mdi_pi_client_link_walk_step(mdb_walk_state_t *); 54*2577Sramat extern void mdi_pi_client_link_walk_fini(mdb_walk_state_t *); 55*2577Sramat 56*2577Sramat /* mdi_pathinfo:pi_phci_link */ 57*2577Sramat extern int mdi_pi_phci_link_walk_init(mdb_walk_state_t *); 58*2577Sramat extern int mdi_pi_phci_link_walk_step(mdb_walk_state_t *); 59*2577Sramat extern void mdi_pi_phci_link_walk_fini(mdb_walk_state_t *); 60*2577Sramat 61*2577Sramat /* mdi_phci:ph_next */ 62*2577Sramat extern int mdi_phci_ph_next_walk_init(mdb_walk_state_t *); 63*2577Sramat extern int mdi_phci_ph_next_walk_step(mdb_walk_state_t *); 64*2577Sramat extern void mdi_phci_ph_next_walk_fini(mdb_walk_state_t *); 65*2577Sramat 66*2577Sramat #ifdef __cplusplus 67*2577Sramat } 68*2577Sramat #endif 69*2577Sramat 70*2577Sramat #endif /* _MDI_H */ 71