/*
* 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
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _NSC_DEV_H
#define _NSC_DEV_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __NSC_GEN__
#endif
/*
* Interface to I/O module.
*/
typedef struct nsc_io_s {
} nsc_io_t;
typedef struct nsc_path_s {
} nsc_path_t;
/*
* Note: NSC_MAXPATH currently defined here and in nsctl.h
*/
#if !defined(NSC_MAXPATH)
#endif
typedef struct nsc_val_s {
} nsc_val_t;
typedef struct nsc_devval_s {
} nsc_devval_t;
/* used for ncall */
typedef struct nsc_rval_s {
} nsc_rval_t;
extern int _nsc_maxdev;
typedef struct nsc_iodev_s {
} nsc_iodev_t;
typedef struct nsc_dev_s {
} nsc_dev_t;
/*
* Storage file descriptor.
*/
typedef struct nsc_fd_s {
} nsc_fd_t;
/*
* External definitions.
*/
extern nsc_io_t *_nsc_null_io;
#ifdef _KERNEL
extern int _nsc_open_fd(nsc_fd_t *, int);
extern int _nsc_close_fd(nsc_fd_t *, int);
extern int _nsc_detach_fd(nsc_fd_t *, int);
extern int _nsc_wait_dev(nsc_dev_t *, int);
extern void _nsc_wake_dev(nsc_dev_t *, int *);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _NSC_DEV_H */