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