/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_HWCONF_H
#define _SYS_HWCONF_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/dditypes.h>
#include <sys/ddipropdefs.h>
#ifdef __cplusplus
extern "C" {
#endif
struct hwc_class {
char *class_exporter;
char *class_name;
};
struct hwc_spec {
char *hwc_parent_name;
char *hwc_class_name;
char *hwc_devi_name;
/* For hashing */
};
/*
* used to create sorted linked lists of hwc_spec structs for loading parents
*/
struct par_list {
};
struct bind {
char *b_name;
char *b_bind_name;
int b_num;
};
typedef struct mperm {
char *mp_minorname;
#ifndef _KERNEL
char *mp_drvname;
char *mp_owner;
char *mp_group;
#endif /* !_KERNEL */
} mperm_t;
#ifdef _KERNEL
extern struct bind *mb_hashtab[];
extern struct bind *sb_hashtab[];
extern int impl_free_parlist(major_t);
extern void impl_delete_par_list(struct par_list *);
extern int impl_parlist_to_major(struct par_list *, char []);
extern void hwc_free_spec_list(struct hwc_spec *);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_HWCONF_H */