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