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*9074SJudy.Chen@Sun.COM * Common Development and Distribution License (the "License"). 6*9074SJudy.Chen@Sun.COM * 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 */ 210Sstevel@tonic-gate /* 22*9074SJudy.Chen@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate * Use is subject to license terms. 240Sstevel@tonic-gate */ 250Sstevel@tonic-gate 260Sstevel@tonic-gate #ifndef _PRT_CONF_H 270Sstevel@tonic-gate #define _PRT_CONF_H 280Sstevel@tonic-gate 290Sstevel@tonic-gate #ifdef __cplusplus 300Sstevel@tonic-gate extern "C" { 310Sstevel@tonic-gate #endif 320Sstevel@tonic-gate 330Sstevel@tonic-gate #include <libdevinfo.h> 340Sstevel@tonic-gate #include <sys/utsname.h> 350Sstevel@tonic-gate 360Sstevel@tonic-gate extern void init_priv_data(struct di_priv_data *); 370Sstevel@tonic-gate extern void dump_priv_data(int, di_node_t); 38*9074SJudy.Chen@Sun.COM extern int print_pciid(di_node_t, di_prom_handle_t); 390Sstevel@tonic-gate extern void indent_to_level(int); 400Sstevel@tonic-gate extern void prtconf_devinfo(); 410Sstevel@tonic-gate extern int do_fbname(); 420Sstevel@tonic-gate extern int do_promversion(); 430Sstevel@tonic-gate extern int do_prom_version64(void); 440Sstevel@tonic-gate extern int do_prominfo(); 450Sstevel@tonic-gate void indent_to_level(int); 460Sstevel@tonic-gate extern int do_productinfo(); 470Sstevel@tonic-gate 480Sstevel@tonic-gate extern void dprintf(const char *, ...); 490Sstevel@tonic-gate 500Sstevel@tonic-gate struct prt_opts { 510Sstevel@tonic-gate int o_verbose; 520Sstevel@tonic-gate int o_drv_name; 530Sstevel@tonic-gate int o_pseudodevs; 540Sstevel@tonic-gate int o_fbname; 550Sstevel@tonic-gate int o_noheader; 560Sstevel@tonic-gate int o_prominfo; 570Sstevel@tonic-gate int o_productinfo; 580Sstevel@tonic-gate int o_promversion; 590Sstevel@tonic-gate int o_prom_ready64; 600Sstevel@tonic-gate int o_forcecache; 610Sstevel@tonic-gate char *o_devices_path; 620Sstevel@tonic-gate dev_t o_devt; 630Sstevel@tonic-gate int o_target; 640Sstevel@tonic-gate int o_ancestors; 650Sstevel@tonic-gate int o_children; 66*9074SJudy.Chen@Sun.COM int o_pciid; 670Sstevel@tonic-gate const char *o_promdev; 680Sstevel@tonic-gate const char *o_progname; 690Sstevel@tonic-gate struct utsname o_uts; 700Sstevel@tonic-gate }; 710Sstevel@tonic-gate 720Sstevel@tonic-gate struct prt_dbg { 730Sstevel@tonic-gate int d_debug; 740Sstevel@tonic-gate int d_bydriver; 750Sstevel@tonic-gate int d_forceload; 760Sstevel@tonic-gate char *d_drivername; 770Sstevel@tonic-gate }; 780Sstevel@tonic-gate 790Sstevel@tonic-gate extern struct prt_opts opts; 800Sstevel@tonic-gate extern struct prt_dbg dbg; 810Sstevel@tonic-gate 820Sstevel@tonic-gate #ifdef __cplusplus 830Sstevel@tonic-gate } 840Sstevel@tonic-gate #endif 850Sstevel@tonic-gate 860Sstevel@tonic-gate #endif /* _PRT_CONF_H */ 87