10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*5839Sdmick * Common Development and Distribution License (the "License"). 6*5839Sdmick * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 21*5839Sdmick 220Sstevel@tonic-gate /* 23*5839Sdmick * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate * Use is subject to license terms. 250Sstevel@tonic-gate */ 260Sstevel@tonic-gate 270Sstevel@tonic-gate #ifndef _DEVINFO_H 280Sstevel@tonic-gate #define _DEVINFO_H 290Sstevel@tonic-gate 300Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 310Sstevel@tonic-gate 320Sstevel@tonic-gate #ifdef __cplusplus 330Sstevel@tonic-gate extern "C" { 340Sstevel@tonic-gate #endif 350Sstevel@tonic-gate 360Sstevel@tonic-gate #include <mdb/mdb_modapi.h> 370Sstevel@tonic-gate 380Sstevel@tonic-gate extern int devinfo_walk_init(mdb_walk_state_t *); 390Sstevel@tonic-gate extern int devinfo_walk_step(mdb_walk_state_t *); 400Sstevel@tonic-gate extern void devinfo_walk_fini(mdb_walk_state_t *); 410Sstevel@tonic-gate 420Sstevel@tonic-gate extern int devinfo_parents_walk_init(mdb_walk_state_t *); 430Sstevel@tonic-gate extern int devinfo_parents_walk_step(mdb_walk_state_t *); 440Sstevel@tonic-gate extern void devinfo_parents_walk_fini(mdb_walk_state_t *); 450Sstevel@tonic-gate 460Sstevel@tonic-gate extern int devinfo_children_walk_init(mdb_walk_state_t *); 470Sstevel@tonic-gate extern int devinfo_children_walk_step(mdb_walk_state_t *); 480Sstevel@tonic-gate extern void devinfo_children_walk_fini(mdb_walk_state_t *); 490Sstevel@tonic-gate 500Sstevel@tonic-gate extern int devinfo2driver(uintptr_t, uint_t, int, const mdb_arg_t *); 510Sstevel@tonic-gate 520Sstevel@tonic-gate extern int devnames_walk_init(mdb_walk_state_t *); 530Sstevel@tonic-gate extern int devnames_walk_step(mdb_walk_state_t *); 540Sstevel@tonic-gate extern void devnames_walk_fini(mdb_walk_state_t *); 550Sstevel@tonic-gate 560Sstevel@tonic-gate extern int devinfo_siblings_walk_init(mdb_walk_state_t *); 570Sstevel@tonic-gate extern int devinfo_siblings_walk_step(mdb_walk_state_t *); 580Sstevel@tonic-gate 590Sstevel@tonic-gate extern int devi_next_walk_step(mdb_walk_state_t *); 600Sstevel@tonic-gate 610Sstevel@tonic-gate extern int prtconf(uintptr_t, uint_t, int, const mdb_arg_t *); 620Sstevel@tonic-gate extern int devinfo(uintptr_t, uint_t, int, const mdb_arg_t *); 630Sstevel@tonic-gate extern int modctl2devinfo(uintptr_t, uint_t, int, const mdb_arg_t *); 640Sstevel@tonic-gate extern int devnames(uintptr_t, uint_t, int, const mdb_arg_t *); 650Sstevel@tonic-gate extern int devbindings(uintptr_t, uint_t, int, const mdb_arg_t *); 660Sstevel@tonic-gate extern int name2major(uintptr_t, uint_t, int, const mdb_arg_t *); 670Sstevel@tonic-gate extern int major2name(uintptr_t, uint_t, int, const mdb_arg_t *); 680Sstevel@tonic-gate extern int major2snode(uintptr_t, uint_t, int, const mdb_arg_t *); 690Sstevel@tonic-gate extern int dev2major(uintptr_t, uint_t, int, const mdb_arg_t *); 700Sstevel@tonic-gate extern int dev2minor(uintptr_t, uint_t, int, const mdb_arg_t *); 710Sstevel@tonic-gate extern int dev2snode(uintptr_t, uint_t, int, const mdb_arg_t *); 720Sstevel@tonic-gate extern int devt(uintptr_t, uint_t, int, const mdb_arg_t *); 730Sstevel@tonic-gate extern int softstate(uintptr_t, uint_t, int, const mdb_arg_t *); 740Sstevel@tonic-gate extern int devinfo_fm(uintptr_t, uint_t, int, const mdb_arg_t *); 750Sstevel@tonic-gate extern int devinfo_fmce(uintptr_t, uint_t, int, const mdb_arg_t *); 760Sstevel@tonic-gate 770Sstevel@tonic-gate extern int soft_state_walk_init(mdb_walk_state_t *); 780Sstevel@tonic-gate extern int soft_state_walk_step(mdb_walk_state_t *); 790Sstevel@tonic-gate extern int soft_state_all_walk_step(mdb_walk_state_t *); 800Sstevel@tonic-gate extern void soft_state_walk_fini(mdb_walk_state_t *); 810Sstevel@tonic-gate 820Sstevel@tonic-gate extern int devinfo_fmc_walk_init(mdb_walk_state_t *); 830Sstevel@tonic-gate extern int devinfo_fmc_walk_step(mdb_walk_state_t *); 840Sstevel@tonic-gate 850Sstevel@tonic-gate extern int binding_hash_walk_init(mdb_walk_state_t *); 860Sstevel@tonic-gate extern int binding_hash_walk_step(mdb_walk_state_t *); 870Sstevel@tonic-gate extern void binding_hash_walk_fini(mdb_walk_state_t *); 880Sstevel@tonic-gate extern int binding_hash_entry(uintptr_t, uint_t, int, const mdb_arg_t *); 890Sstevel@tonic-gate 900Sstevel@tonic-gate extern int devinfo_audit(uintptr_t, uint_t, int, const mdb_arg_t *); 910Sstevel@tonic-gate 920Sstevel@tonic-gate extern int devinfo_audit_log_walk_init(mdb_walk_state_t *); 930Sstevel@tonic-gate extern int devinfo_audit_log_walk_step(mdb_walk_state_t *); 940Sstevel@tonic-gate extern void devinfo_audit_log_walk_fini(mdb_walk_state_t *); 950Sstevel@tonic-gate extern int devinfo_audit_log(uintptr_t, uint_t, int, const mdb_arg_t *); 960Sstevel@tonic-gate 970Sstevel@tonic-gate extern int devinfo_audit_node_walk_init(mdb_walk_state_t *); 980Sstevel@tonic-gate extern int devinfo_audit_node_walk_step(mdb_walk_state_t *); 990Sstevel@tonic-gate extern void devinfo_audit_node_walk_fini(mdb_walk_state_t *); 1000Sstevel@tonic-gate extern int devinfo_audit_node(uintptr_t, uint_t, int, const mdb_arg_t *); 1010Sstevel@tonic-gate 1020Sstevel@tonic-gate extern int minornode_walk_init(mdb_walk_state_t *); 1030Sstevel@tonic-gate extern int minornode_walk_step(mdb_walk_state_t *); 1040Sstevel@tonic-gate extern int minornodes(uintptr_t, uint_t, int, const mdb_arg_t *); 1050Sstevel@tonic-gate 1060Sstevel@tonic-gate extern void prtconf_help(void); 1070Sstevel@tonic-gate extern void devinfo_help(void); 1080Sstevel@tonic-gate 1090Sstevel@tonic-gate #ifdef __cplusplus 1100Sstevel@tonic-gate } 1110Sstevel@tonic-gate #endif 1120Sstevel@tonic-gate 1130Sstevel@tonic-gate #endif /* _DEVINFO_H */ 114