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