/*
* 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 _SYS_NSCTL_INTER_H
#define _SYS_NSCTL_INTER_H
#ifdef __cplusplus
extern "C" {
#endif
#define __NSC_GEN__
#ifdef _KERNEL
/* prevent errors from typedefs not defined until after this is included */
typedef int nsc_size_t;
typedef int nsc_off_t;
int nsc_inval() { }
int nsc_ioerr() { }
int nsc_fatal() { }
int nsc_null() { }
int nsc_true() { }
void nsc_decode_param(void *, void *, void *) { }
int nskernd_isdaemon() { }
void nsc_membar_stld(void) { }
#ifndef _BLIND_T
typedef void * blind_t;
#endif
typedef void strategy_fn_t;
int nsc_cache_sizes(int *, int *) { }
int nsc_register_down(void (*)()) { }
int nsc_node_hints(unsigned int *) { }
int nsc_node_hints_set(unsigned int) { }
int nsc_max_devices(void) { }
int nsc_free_buf(void *) { }
void (*)(), void (*)(), void (*)()) { }
int nsc_free_handle(void *) { }
void *nsc_register_mem(char *, int, int) { }
void nsc_unregister_mem(void *) { }
char *nsc_strdup(char *) { }
void nsc_strfree(char *) { }
int nsc_strmatch(char *, char *) { }
void nsc_sprintf(char *, char *, ...) { }
int nsc_nodeid_data(void) { }
int nsc_node_id(void) { }
int nsc_node_up(int) { }
char *nsc_node_name(void) { }
void nsc_yield(void) { }
int nsc_power_init(void) { }
void nsc_power_deinit(void) { }
void _nsc_global_nvmemmap_lookup(void *) { }
void _nsc_init_raw() { }
void _nsc_deinit_raw() { }
void _nsc_init_start() { }
void _nsc_init_os() { }
void _nsc_raw_flags() { }
void nskernd_command() { }
void nskern_bsize() { }
int nsc_do_lock() { }
void nsc_do_unlock() { }
int HZ;
char *nsc_caller() { }
char *nsc_callee() { }
void *nsc_threadp() { }
/*
* Misc stuff to make our life easier
*/
#ifndef _VERSION_
#endif
#ifndef ISS_VERSION_STR
#endif
#ifndef ISS_VERSION_NUM
#endif
#ifndef ISS_VERSION_MAJ
#endif
#ifndef ISS_VERSION_MIN
#endif
#ifndef ISS_VERSION_MIC
#define ISS_VERSION_MIC 0
#endif
#ifndef BUILD_DATE_STR
#endif
#ifndef SCMTEST_MAJOR_VERSION
#endif
#ifndef SCMTEST_MINOR_VERSION
#endif
#ifndef SCMTEST_PATCH_VERSION
#endif
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_NSCTL_INTER_H */