xref: /titanic_50/usr/src/cmd/pcidr/plugins/default/pcidr_cfga.h (revision 70025d765b044c6d8594bb965a2247a61e991a99)
1*70025d76Sjohnny /*
2*70025d76Sjohnny  * CDDL HEADER START
3*70025d76Sjohnny  *
4*70025d76Sjohnny  * The contents of this file are subject to the terms of the
5*70025d76Sjohnny  * Common Development and Distribution License, Version 1.0 only
6*70025d76Sjohnny  * (the "License").  You may not use this file except in compliance
7*70025d76Sjohnny  * with the License.
8*70025d76Sjohnny  *
9*70025d76Sjohnny  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*70025d76Sjohnny  * or http://www.opensolaris.org/os/licensing.
11*70025d76Sjohnny  * See the License for the specific language governing permissions
12*70025d76Sjohnny  * and limitations under the License.
13*70025d76Sjohnny  *
14*70025d76Sjohnny  * When distributing Covered Code, include this CDDL HEADER in each
15*70025d76Sjohnny  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*70025d76Sjohnny  * If applicable, add the following below this CDDL HEADER, with the
17*70025d76Sjohnny  * fields enclosed by brackets "[]" replaced with your own identifying
18*70025d76Sjohnny  * information: Portions Copyright [yyyy] [name of copyright owner]
19*70025d76Sjohnny  *
20*70025d76Sjohnny  * CDDL HEADER END
21*70025d76Sjohnny  */
22*70025d76Sjohnny /*
23*70025d76Sjohnny  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*70025d76Sjohnny  * Use is subject to license terms.
25*70025d76Sjohnny  */
26*70025d76Sjohnny 
27*70025d76Sjohnny #ifndef	_PCIDR_CFGA_H
28*70025d76Sjohnny #define	_PCIDR_CFGA_H
29*70025d76Sjohnny 
30*70025d76Sjohnny #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*70025d76Sjohnny 
32*70025d76Sjohnny #include <config_admin.h>
33*70025d76Sjohnny #include <pcidr.h>
34*70025d76Sjohnny 
35*70025d76Sjohnny #ifdef	__cplusplus
36*70025d76Sjohnny extern "C" {
37*70025d76Sjohnny #endif
38*70025d76Sjohnny 
39*70025d76Sjohnny void pcidr_print_cfga(dlvl_t, cfga_list_data_t *, char *);
40*70025d76Sjohnny char *pcidr_cfga_stat_name(cfga_stat_t);
41*70025d76Sjohnny char *pcidr_cfga_cmd_name(cfga_cmd_t);
42*70025d76Sjohnny char *pcidr_cfga_cond_name(cfga_cond_t);
43*70025d76Sjohnny char *pcidr_cfga_err_name(cfga_err_t);
44*70025d76Sjohnny int pcidr_cfga_do_cmd(cfga_cmd_t, cfga_list_data_t *);
45*70025d76Sjohnny 
46*70025d76Sjohnny typedef struct {
47*70025d76Sjohnny 	dlvl_t dlvl;
48*70025d76Sjohnny 	char *prestr;
49*70025d76Sjohnny } pcidr_cfga_msg_data_t;
50*70025d76Sjohnny int pcidr_cfga_msg_func(void *, const char *);
51*70025d76Sjohnny int pcidr_cfga_confirm_func(void *, const char *);
52*70025d76Sjohnny 
53*70025d76Sjohnny #ifdef	__cplusplus
54*70025d76Sjohnny }
55*70025d76Sjohnny #endif
56*70025d76Sjohnny 
57*70025d76Sjohnny #endif	/* _PCIDR_CFGA_H */
58