/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
*/
/*
*/
#ifndef _SYS_SUNLDI_H
#define _SYS_SUNLDI_H
/*
* DDI interfaces for Layered driver support.
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
/*
* Opaque layered driver data structures.
*
* The contents of these data structures are private to this
* implementation of Solaris and are subject to change at any
* time without notice.
*
* Applications and drivers accessing the contents of these structures
* directly will fail to run on future releases.
*/
/*
* LDI event interface related
*/
#define LDI_EV_SUCCESS 0
typedef struct ldi_ev_callback {
/*
* LDI Ident manipulation functions
*/
extern ldi_ident_t ldi_ident_from_anon(void);
extern void ldi_ident_release(ldi_ident_t);
/*
* LDI Handle manipulation functions
*/
ldi_handle_t *, ldi_ident_t);
extern int ldi_open_by_name(char *, int, cred_t *,
ldi_handle_t *, ldi_ident_t);
ldi_handle_t *, ldi_ident_t);
extern int ldi_vp_from_name(char *, vnode_t **);
char *, caddr_t, int *);
extern int ldi_get_otyp(ldi_handle_t, int *);
extern int ldi_get_minor_name(ldi_handle_t, char **);
/*
* LDI events related declarations
*/
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SUNLDI_H */