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 #include <config_admin.h> 31 #include <pcidr.h> 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 void pcidr_print_cfga(dlvl_t, cfga_list_data_t *, char *); 38 char *pcidr_cfga_stat_name(cfga_stat_t); 39 char *pcidr_cfga_cmd_name(cfga_cmd_t); 40 char *pcidr_cfga_cond_name(cfga_cond_t); 41 char *pcidr_cfga_err_name(cfga_err_t); 42 int pcidr_cfga_do_cmd(cfga_cmd_t, cfga_list_data_t *); 43 44 typedef struct { 45 dlvl_t dlvl; 46 char *prestr; 47 } pcidr_cfga_msg_data_t; 48 int pcidr_cfga_msg_func(void *, const char *); 49 int pcidr_cfga_confirm_func(void *, const char *); 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 #endif /* _PCIDR_CFGA_H */ 56