xref: /onnv-gate/usr/src/uts/common/avs/ns/nsctl_inter.h (revision 7836:4e95154b5b7a)
1*7836SJohn.Forte@Sun.COM /*
2*7836SJohn.Forte@Sun.COM  * CDDL HEADER START
3*7836SJohn.Forte@Sun.COM  *
4*7836SJohn.Forte@Sun.COM  * The contents of this file are subject to the terms of the
5*7836SJohn.Forte@Sun.COM  * Common Development and Distribution License (the "License").
6*7836SJohn.Forte@Sun.COM  * You may not use this file except in compliance with the License.
7*7836SJohn.Forte@Sun.COM  *
8*7836SJohn.Forte@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7836SJohn.Forte@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*7836SJohn.Forte@Sun.COM  * See the License for the specific language governing permissions
11*7836SJohn.Forte@Sun.COM  * and limitations under the License.
12*7836SJohn.Forte@Sun.COM  *
13*7836SJohn.Forte@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*7836SJohn.Forte@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7836SJohn.Forte@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*7836SJohn.Forte@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*7836SJohn.Forte@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*7836SJohn.Forte@Sun.COM  *
19*7836SJohn.Forte@Sun.COM  * CDDL HEADER END
20*7836SJohn.Forte@Sun.COM  */
21*7836SJohn.Forte@Sun.COM /*
22*7836SJohn.Forte@Sun.COM  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*7836SJohn.Forte@Sun.COM  * Use is subject to license terms.
24*7836SJohn.Forte@Sun.COM  */
25*7836SJohn.Forte@Sun.COM 
26*7836SJohn.Forte@Sun.COM #ifndef	_SYS_NSCTL_INTER_H
27*7836SJohn.Forte@Sun.COM #define	_SYS_NSCTL_INTER_H
28*7836SJohn.Forte@Sun.COM 
29*7836SJohn.Forte@Sun.COM #ifdef	__cplusplus
30*7836SJohn.Forte@Sun.COM extern "C" {
31*7836SJohn.Forte@Sun.COM #endif
32*7836SJohn.Forte@Sun.COM 
33*7836SJohn.Forte@Sun.COM #define	__NSC_GEN__
34*7836SJohn.Forte@Sun.COM #include <sys/ksynch.h>
35*7836SJohn.Forte@Sun.COM #include <sys/nsctl/nsc_dev.h>
36*7836SJohn.Forte@Sun.COM #include <sys/nsctl/nsc_gen.h>
37*7836SJohn.Forte@Sun.COM #include <sys/nsctl/nsc_mem.h>
38*7836SJohn.Forte@Sun.COM #include <sys/nsctl/nsc_rmspin.h>
39*7836SJohn.Forte@Sun.COM 
40*7836SJohn.Forte@Sun.COM #ifdef _KERNEL
41*7836SJohn.Forte@Sun.COM 
42*7836SJohn.Forte@Sun.COM #include <sys/nsc_ddi.h>
43*7836SJohn.Forte@Sun.COM 
44*7836SJohn.Forte@Sun.COM /* prevent errors from typedefs not defined until after this is included */
45*7836SJohn.Forte@Sun.COM typedef int	nsc_size_t;
46*7836SJohn.Forte@Sun.COM typedef int	nsc_off_t;
47*7836SJohn.Forte@Sun.COM 
nsc_inval()48*7836SJohn.Forte@Sun.COM int nsc_inval() { }
nsc_ioerr()49*7836SJohn.Forte@Sun.COM int nsc_ioerr() { }
nsc_fatal()50*7836SJohn.Forte@Sun.COM int nsc_fatal() { }
nsc_null()51*7836SJohn.Forte@Sun.COM int nsc_null()  { }
nsc_true()52*7836SJohn.Forte@Sun.COM int nsc_true()  { }
nsc_decode_param(void *,void *,void *)53*7836SJohn.Forte@Sun.COM void nsc_decode_param(void *, void *, void *) { }
nskernd_isdaemon()54*7836SJohn.Forte@Sun.COM int nskernd_isdaemon() { }
nsc_ldstub(uchar_t *)55*7836SJohn.Forte@Sun.COM uchar_t nsc_ldstub(uchar_t *) { }
nsc_membar_stld(void)56*7836SJohn.Forte@Sun.COM void nsc_membar_stld(void) { }
57*7836SJohn.Forte@Sun.COM 
58*7836SJohn.Forte@Sun.COM #ifndef _BLIND_T
59*7836SJohn.Forte@Sun.COM typedef void * blind_t;
60*7836SJohn.Forte@Sun.COM #endif
61*7836SJohn.Forte@Sun.COM typedef void strategy_fn_t;
nsc_register_io(char *,int,void *)62*7836SJohn.Forte@Sun.COM nsc_io_t *nsc_register_io(char *, int, void *) { }
nsc_unregister_io(nsc_io_t *,int)63*7836SJohn.Forte@Sun.COM int nsc_unregister_io(nsc_io_t *, int) { }
nsc_register_path(char *,int,nsc_io_t *)64*7836SJohn.Forte@Sun.COM nsc_path_t *nsc_register_path(char *, int, nsc_io_t *) { }
nsc_unregister_path(nsc_path_t *,int)65*7836SJohn.Forte@Sun.COM int nsc_unregister_path(nsc_path_t *, int) { }
nsc_cache_sizes(int *,int *)66*7836SJohn.Forte@Sun.COM int nsc_cache_sizes(int *, int *) { }
nsc_register_down(void (*)())67*7836SJohn.Forte@Sun.COM int nsc_register_down(void (*)()) { }
nsc_node_hints(unsigned int *)68*7836SJohn.Forte@Sun.COM int nsc_node_hints(unsigned int *) { }
nsc_node_hints_set(unsigned int)69*7836SJohn.Forte@Sun.COM int nsc_node_hints_set(unsigned int) { }
nsc_register_power(char *,void *)70*7836SJohn.Forte@Sun.COM blind_t nsc_register_power(char *, void *) { }
nsc_unregister_power(blind_t)71*7836SJohn.Forte@Sun.COM int nsc_unregister_power(blind_t) { }
nsc_get_strategy(major_t)72*7836SJohn.Forte@Sun.COM strategy_fn_t    nsc_get_strategy(major_t) { }
nsc_get_devops(major_t)73*7836SJohn.Forte@Sun.COM void *nsc_get_devops(major_t) { }
nsc_do_sysevent(char *,char *,int,int,char *,dev_info_t *)74*7836SJohn.Forte@Sun.COM void nsc_do_sysevent(char *, char *, int, int, char *, dev_info_t *) { }
nsc_open(char *,int,void *,blind_t,int *)75*7836SJohn.Forte@Sun.COM nsc_fd_t *nsc_open(char *, int, void *, blind_t, int *) { }
nsc_close(nsc_fd_t *)76*7836SJohn.Forte@Sun.COM int nsc_close(nsc_fd_t *) { }
nsc_pathname(nsc_fd_t *)77*7836SJohn.Forte@Sun.COM char *nsc_pathname(nsc_fd_t *) { }
nsc_shared(nsc_fd_t *)78*7836SJohn.Forte@Sun.COM int nsc_shared(nsc_fd_t *) { }
nsc_setval(nsc_fd_t *,char *,int)79*7836SJohn.Forte@Sun.COM int nsc_setval(nsc_fd_t *, char *, int) { }
nsc_getval(nsc_fd_t *,char *,int *)80*7836SJohn.Forte@Sun.COM int nsc_getval(nsc_fd_t *, char *, int *) { }
nsc_set_trksize(nsc_fd_t *,int)81*7836SJohn.Forte@Sun.COM int nsc_set_trksize(nsc_fd_t *, int) { }
nsc_discard_pinned(nsc_fd_t *,int,int)82*7836SJohn.Forte@Sun.COM int nsc_discard_pinned(nsc_fd_t *, int, int) { }
nsc_lock_addr(nsc_fd_t *)83*7836SJohn.Forte@Sun.COM kmutex_t *nsc_lock_addr(nsc_fd_t *) { }
nsc_attach(nsc_fd_t *,int)84*7836SJohn.Forte@Sun.COM int nsc_attach(nsc_fd_t *, int) { }
nsc_reserve(nsc_fd_t *,int)85*7836SJohn.Forte@Sun.COM int nsc_reserve(nsc_fd_t *, int) { }
nsc_reserve_lk(nsc_fd_t *)86*7836SJohn.Forte@Sun.COM void nsc_reserve_lk(nsc_fd_t *) { }
nsc_release(nsc_fd_t *)87*7836SJohn.Forte@Sun.COM void nsc_release(nsc_fd_t *) { }
nsc_release_lk(nsc_fd_t *)88*7836SJohn.Forte@Sun.COM int nsc_release_lk(nsc_fd_t *) { }
nsc_detach(nsc_fd_t *,int)89*7836SJohn.Forte@Sun.COM int nsc_detach(nsc_fd_t *, int) { }
nsc_avail(nsc_fd_t *)90*7836SJohn.Forte@Sun.COM int nsc_avail(nsc_fd_t *) { }
nsc_held(nsc_fd_t *)91*7836SJohn.Forte@Sun.COM int nsc_held(nsc_fd_t *) { }
nsc_waiting(nsc_fd_t *)92*7836SJohn.Forte@Sun.COM int nsc_waiting(nsc_fd_t *) { }
nsc_partsize(nsc_fd_t *,nsc_size_t *)93*7836SJohn.Forte@Sun.COM int nsc_partsize(nsc_fd_t *, nsc_size_t *) { }
nsc_maxfbas(nsc_fd_t *,int,nsc_size_t *)94*7836SJohn.Forte@Sun.COM int nsc_maxfbas(nsc_fd_t *, int, nsc_size_t *) { }
nsc_control(nsc_fd_t *,int,void *,int)95*7836SJohn.Forte@Sun.COM int nsc_control(nsc_fd_t *, int, void *, int) { }
nsc_get_pinned(nsc_fd_t *)96*7836SJohn.Forte@Sun.COM int nsc_get_pinned(nsc_fd_t *) { }
nsc_max_devices(void)97*7836SJohn.Forte@Sun.COM int nsc_max_devices(void) { }
98*7836SJohn.Forte@Sun.COM 
nsc_set_owner(nsc_fd_t *,nsc_iodev_t *)99*7836SJohn.Forte@Sun.COM void nsc_set_owner(nsc_fd_t *, nsc_iodev_t *) { }
nsc_pinned_data(nsc_iodev_t *,int,int)100*7836SJohn.Forte@Sun.COM void nsc_pinned_data(nsc_iodev_t *, int, int) { }
nsc_unpinned_data(nsc_iodev_t *,int,int)101*7836SJohn.Forte@Sun.COM void nsc_unpinned_data(nsc_iodev_t *, int, int) { }
nsc_alloc_buf(nsc_fd_t *,nsc_off_t,nsc_size_t,int,void **)102*7836SJohn.Forte@Sun.COM int nsc_alloc_buf(nsc_fd_t *, nsc_off_t, nsc_size_t, int, void **) { }
nsc_alloc_abuf(nsc_off_t,nsc_size_t,int,void **)103*7836SJohn.Forte@Sun.COM int nsc_alloc_abuf(nsc_off_t, nsc_size_t, int, void **) { }
nsc_read(void *,nsc_off_t,nsc_size_t,int)104*7836SJohn.Forte@Sun.COM int nsc_read(void *, nsc_off_t, nsc_size_t, int) { }
nsc_write(void *,nsc_off_t,nsc_size_t,int)105*7836SJohn.Forte@Sun.COM int nsc_write(void *, nsc_off_t, nsc_size_t, int) { }
nsc_zero(void *,nsc_off_t,nsc_size_t,int)106*7836SJohn.Forte@Sun.COM int nsc_zero(void *, nsc_off_t, nsc_size_t, int) { }
nsc_copy(void *,void *,nsc_off_t,nsc_off_t,nsc_size_t)107*7836SJohn.Forte@Sun.COM int nsc_copy(void *, void *, nsc_off_t, nsc_off_t, nsc_size_t) { }
nsc_copy_direct(void *,void *,nsc_off_t,nsc_off_t,nsc_size_t)108*7836SJohn.Forte@Sun.COM int nsc_copy_direct(void *, void *, nsc_off_t, nsc_off_t, nsc_size_t) { }
nsc_uncommit(void *,nsc_off_t,nsc_size_t,int)109*7836SJohn.Forte@Sun.COM int nsc_uncommit(void *, nsc_off_t, nsc_size_t, int) { }
nsc_free_buf(void *)110*7836SJohn.Forte@Sun.COM int nsc_free_buf(void *) { }
nsc_alloc_handle(nsc_fd_t *,void (*)(),void (*)(),void (*)())111*7836SJohn.Forte@Sun.COM void *nsc_alloc_handle(nsc_fd_t *,
112*7836SJohn.Forte@Sun.COM 	void (*)(), void (*)(), void (*)()) { }
nsc_free_handle(void *)113*7836SJohn.Forte@Sun.COM int nsc_free_handle(void *) { }
nsc_uread(nsc_fd_t *,void *,void *)114*7836SJohn.Forte@Sun.COM int nsc_uread(nsc_fd_t *, void *, void *) { }
nsc_uwrite(nsc_fd_t *,void *,void *)115*7836SJohn.Forte@Sun.COM int nsc_uwrite(nsc_fd_t *, void *, void *) { }
116*7836SJohn.Forte@Sun.COM 
nsc_rm_lock_alloc(char *,int,void *)117*7836SJohn.Forte@Sun.COM nsc_rmlock_t *nsc_rm_lock_alloc(char *, int, void *) { }
nsc_rm_lock_dealloc(nsc_rmlock_t *)118*7836SJohn.Forte@Sun.COM void nsc_rm_lock_dealloc(nsc_rmlock_t *) { }
nsc_rm_lock(nsc_rmlock_t *)119*7836SJohn.Forte@Sun.COM int nsc_rm_lock(nsc_rmlock_t *) { }
nsc_rm_unlock(nsc_rmlock_t *)120*7836SJohn.Forte@Sun.COM void nsc_rm_unlock(nsc_rmlock_t *) { }
121*7836SJohn.Forte@Sun.COM 
nsc_register_mem(char *,int,int)122*7836SJohn.Forte@Sun.COM void *nsc_register_mem(char *, int, int) { }
nsc_unregister_mem(void *)123*7836SJohn.Forte@Sun.COM void nsc_unregister_mem(void *) { }
nsc_kmem_alloc(size_t,int,void *)124*7836SJohn.Forte@Sun.COM void *nsc_kmem_alloc(size_t, int, void *) { }
nsc_kmem_zalloc(size_t,int,void *)125*7836SJohn.Forte@Sun.COM void *nsc_kmem_zalloc(size_t, int, void *) { }
nsc_kmem_free(void *,size_t)126*7836SJohn.Forte@Sun.COM void nsc_kmem_free(void *, size_t) { }
nsc_mem_sizes(void *,size_t *,size_t *,size_t *)127*7836SJohn.Forte@Sun.COM void nsc_mem_sizes(void *, size_t *, size_t *, size_t *) { }
nsc_mem_avail(void *)128*7836SJohn.Forte@Sun.COM size_t nsc_mem_avail(void *) { }
129*7836SJohn.Forte@Sun.COM 
nsc_commit_mem(void *,void *,size_t,void)130*7836SJohn.Forte@Sun.COM int nsc_commit_mem(void *, void *, size_t, void) { }
131*7836SJohn.Forte@Sun.COM 
nsc_cm_errhdlr(void *,void *,size_t,int)132*7836SJohn.Forte@Sun.COM void nsc_cm_errhdlr(void *, void *, size_t, int) { }
133*7836SJohn.Forte@Sun.COM 
nsc_register_svc(char *,void (*)(intptr_t))134*7836SJohn.Forte@Sun.COM nsc_svc_t *nsc_register_svc(char *, void (*)(intptr_t)) { }
nsc_unregister_svc(nsc_svc_t *)135*7836SJohn.Forte@Sun.COM int nsc_unregister_svc(nsc_svc_t *) { }
nsc_call_svc(nsc_svc_t *,intptr_t)136*7836SJohn.Forte@Sun.COM int nsc_call_svc(nsc_svc_t *, intptr_t) { }
137*7836SJohn.Forte@Sun.COM 
nsc_strdup(char *)138*7836SJohn.Forte@Sun.COM char *nsc_strdup(char *) { }
nsc_strfree(char *)139*7836SJohn.Forte@Sun.COM void nsc_strfree(char *) { }
nsc_strmatch(char *,char *)140*7836SJohn.Forte@Sun.COM int nsc_strmatch(char *, char *) { }
nsc_sprintf(char *,char *,...)141*7836SJohn.Forte@Sun.COM void nsc_sprintf(char *, char *, ...) { }
142*7836SJohn.Forte@Sun.COM int nsc_max_nodeid, nsc_min_nodeid;
nsc_nodeid_data(void)143*7836SJohn.Forte@Sun.COM int nsc_nodeid_data(void) { }
nsc_node_id(void)144*7836SJohn.Forte@Sun.COM int nsc_node_id(void) { }
nsc_node_up(int)145*7836SJohn.Forte@Sun.COM int nsc_node_up(int) { }
nsc_node_name(void)146*7836SJohn.Forte@Sun.COM char *nsc_node_name(void) { }
nsc_time(void)147*7836SJohn.Forte@Sun.COM time_t nsc_time(void) { }
nsc_lbolt(void)148*7836SJohn.Forte@Sun.COM clock_t nsc_lbolt(void) { }
nsc_delay_sig(clock_t)149*7836SJohn.Forte@Sun.COM int nsc_delay_sig(clock_t) { }
nsc_usec(void)150*7836SJohn.Forte@Sun.COM clock_t nsc_usec(void) { }
nsc_yield(void)151*7836SJohn.Forte@Sun.COM void nsc_yield(void) { }
nsc_create_process(void (*)(void *),void *,boolean_t)152*7836SJohn.Forte@Sun.COM int nsc_create_process(void (*)(void *), void *, boolean_t) { }
nsc_power_init(void)153*7836SJohn.Forte@Sun.COM int nsc_power_init(void) { }
nsc_power_deinit(void)154*7836SJohn.Forte@Sun.COM void nsc_power_deinit(void) { }
_nsc_global_nvmemmap_lookup(void *)155*7836SJohn.Forte@Sun.COM void _nsc_global_nvmemmap_lookup(void *) { }
_nsc_mark_pages(void addr,void size,int dump)156*7836SJohn.Forte@Sun.COM void _nsc_mark_pages(void addr, void size, int dump) { }
_nsc_init_raw()157*7836SJohn.Forte@Sun.COM void _nsc_init_raw() { }
_nsc_deinit_raw()158*7836SJohn.Forte@Sun.COM void _nsc_deinit_raw() { }
_nsc_init_start()159*7836SJohn.Forte@Sun.COM void _nsc_init_start() { }
_nsc_init_os()160*7836SJohn.Forte@Sun.COM void _nsc_init_os() { }
_nsc_raw_flags()161*7836SJohn.Forte@Sun.COM void _nsc_raw_flags() { }
162*7836SJohn.Forte@Sun.COM int _nsc_raw_def[1];
nskernd_command()163*7836SJohn.Forte@Sun.COM void nskernd_command() { }
nskern_bsize()164*7836SJohn.Forte@Sun.COM void nskern_bsize() { }
nsc_do_lock()165*7836SJohn.Forte@Sun.COM int nsc_do_lock() { }
nsc_do_unlock()166*7836SJohn.Forte@Sun.COM void nsc_do_unlock() { }
167*7836SJohn.Forte@Sun.COM int HZ;
nsc_strhash(char *)168*7836SJohn.Forte@Sun.COM uint64_t nsc_strhash(char *) { }
nsc_fdpathcmp(void *,uint64_t,char *)169*7836SJohn.Forte@Sun.COM int nsc_fdpathcmp(void *, uint64_t, char *) { }
nsc_caller()170*7836SJohn.Forte@Sun.COM char *nsc_caller() { }
nsc_callee()171*7836SJohn.Forte@Sun.COM char *nsc_callee() { }
nsc_threadp()172*7836SJohn.Forte@Sun.COM void *nsc_threadp() { }
173*7836SJohn.Forte@Sun.COM 
174*7836SJohn.Forte@Sun.COM /*
175*7836SJohn.Forte@Sun.COM  * Misc stuff to make our life easier
176*7836SJohn.Forte@Sun.COM  */
177*7836SJohn.Forte@Sun.COM #ifndef _VERSION_
178*7836SJohn.Forte@Sun.COM #define	_VERSION_	"SunOS 5.11"
179*7836SJohn.Forte@Sun.COM #endif
180*7836SJohn.Forte@Sun.COM 
181*7836SJohn.Forte@Sun.COM #ifndef ISS_VERSION_STR
182*7836SJohn.Forte@Sun.COM #define	ISS_VERSION_STR "SunOS 5.11"
183*7836SJohn.Forte@Sun.COM #endif
184*7836SJohn.Forte@Sun.COM 
185*7836SJohn.Forte@Sun.COM #ifndef ISS_VERSION_NUM
186*7836SJohn.Forte@Sun.COM #define	ISS_VERSION_NUM 61
187*7836SJohn.Forte@Sun.COM #endif
188*7836SJohn.Forte@Sun.COM 
189*7836SJohn.Forte@Sun.COM #ifndef ISS_VERSION_MAJ
190*7836SJohn.Forte@Sun.COM #define	ISS_VERSION_MAJ 11
191*7836SJohn.Forte@Sun.COM #endif
192*7836SJohn.Forte@Sun.COM 
193*7836SJohn.Forte@Sun.COM #ifndef ISS_VERSION_MIN
194*7836SJohn.Forte@Sun.COM #define	ISS_VERSION_MIN 11
195*7836SJohn.Forte@Sun.COM #endif
196*7836SJohn.Forte@Sun.COM 
197*7836SJohn.Forte@Sun.COM #ifndef ISS_VERSION_MIC
198*7836SJohn.Forte@Sun.COM #define	ISS_VERSION_MIC	0
199*7836SJohn.Forte@Sun.COM #endif
200*7836SJohn.Forte@Sun.COM 
201*7836SJohn.Forte@Sun.COM #ifndef BUILD_DATE_STR
202*7836SJohn.Forte@Sun.COM #define	BUILD_DATE_STR "None"
203*7836SJohn.Forte@Sun.COM #endif
204*7836SJohn.Forte@Sun.COM 
205*7836SJohn.Forte@Sun.COM #ifndef SCMTEST_MAJOR_VERSION
206*7836SJohn.Forte@Sun.COM #define	SCMTEST_MAJOR_VERSION "0"
207*7836SJohn.Forte@Sun.COM #endif
208*7836SJohn.Forte@Sun.COM 
209*7836SJohn.Forte@Sun.COM #ifndef SCMTEST_MINOR_VERSION
210*7836SJohn.Forte@Sun.COM #define	SCMTEST_MINOR_VERSION "0"
211*7836SJohn.Forte@Sun.COM #endif
212*7836SJohn.Forte@Sun.COM 
213*7836SJohn.Forte@Sun.COM #ifndef SCMTEST_PATCH_VERSION
214*7836SJohn.Forte@Sun.COM #define	SCMTEST_PATCH_VERSION "0"
215*7836SJohn.Forte@Sun.COM #endif
216*7836SJohn.Forte@Sun.COM 
217*7836SJohn.Forte@Sun.COM #endif /* _KERNEL */
218*7836SJohn.Forte@Sun.COM 
219*7836SJohn.Forte@Sun.COM #ifdef	__cplusplus
220*7836SJohn.Forte@Sun.COM }
221*7836SJohn.Forte@Sun.COM #endif
222*7836SJohn.Forte@Sun.COM 
223*7836SJohn.Forte@Sun.COM #endif /* _SYS_NSCTL_INTER_H */
224