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
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.
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]
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #include <sys/dditypes.h>
31 #include <sys/ddipropdefs.h>
37 #define MAX_HWC_LINESIZE 1024
40 struct hwc_class
*class_next
;
46 struct hwc_spec
*hwc_next
;
47 char *hwc_parent_name
;
50 ddi_prop_t
*hwc_devi_sys_prop_ptr
;
52 struct hwc_spec
*hwc_hash_next
;
57 * used to create sorted linked lists of hwc_spec structs for loading parents
60 struct par_list
*par_next
;
61 struct hwc_spec
*par_specs
; /* List of prototype nodes */
62 major_t par_major
; /* Simple name of parent */
72 typedef struct mperm
{
73 struct mperm
*mp_next
;
87 extern struct bind
*mb_hashtab
[];
88 extern struct bind
*sb_hashtab
[];
90 extern int hwc_parse(char *, struct par_list
**, ddi_prop_t
**);
91 extern struct par_list
*impl_make_parlist(major_t
);
92 extern int impl_free_parlist(major_t
);
93 extern void impl_delete_par_list(struct par_list
*);
94 extern int impl_parlist_to_major(struct par_list
*, char []);
95 extern struct hwc_spec
*hwc_get_child_spec(dev_info_t
*, major_t
);
96 extern void hwc_free_spec_list(struct hwc_spec
*);
104 #endif /* _SYS_HWCONF_H */