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 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <sys/dditypes.h>
33 #include <sys/ddipropdefs.h>
39 #define MAX_HWC_LINESIZE 1024
42 struct hwc_class
*class_next
;
48 struct hwc_spec
*hwc_next
;
49 char *hwc_parent_name
;
52 ddi_prop_t
*hwc_devi_sys_prop_ptr
;
54 struct hwc_spec
*hwc_hash_next
;
59 * used to create sorted linked lists of hwc_spec structs for loading parents
62 struct par_list
*par_next
;
63 struct hwc_spec
*par_specs
; /* List of prototype nodes */
64 major_t par_major
; /* Simple name of parent */
74 typedef struct mperm
{
75 struct mperm
*mp_next
;
89 extern struct bind
*mb_hashtab
[];
90 extern struct bind
*sb_hashtab
[];
92 extern int hwc_parse(char *, struct par_list
**, ddi_prop_t
**);
93 extern struct par_list
*impl_make_parlist(major_t
);
94 extern int impl_free_parlist(major_t
);
95 extern void impl_delete_par_list(struct par_list
*);
96 extern int impl_parlist_to_major(struct par_list
*, char []);
97 extern struct hwc_spec
*hwc_get_child_spec(dev_info_t
*, major_t
);
98 extern void hwc_free_spec_list(struct hwc_spec
*);
106 #endif /* _SYS_HWCONF_H */