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 48*fcf3ce44SJohn Forte int nsc_inval() { } 49*fcf3ce44SJohn Forte int nsc_ioerr() { } 50*fcf3ce44SJohn Forte int nsc_fatal() { } 51*fcf3ce44SJohn Forte int nsc_null() { } 52*fcf3ce44SJohn Forte int nsc_true() { } 53*fcf3ce44SJohn Forte void nsc_decode_param(void *, void *, void *) { } 54*fcf3ce44SJohn Forte int nskernd_isdaemon() { } 55*fcf3ce44SJohn Forte uchar_t nsc_ldstub(uchar_t *) { } 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; 62*fcf3ce44SJohn Forte nsc_io_t *nsc_register_io(char *, int, void *) { } 63*fcf3ce44SJohn Forte int nsc_unregister_io(nsc_io_t *, int) { } 64*fcf3ce44SJohn Forte nsc_path_t *nsc_register_path(char *, int, nsc_io_t *) { } 65*fcf3ce44SJohn Forte int nsc_unregister_path(nsc_path_t *, int) { } 66*fcf3ce44SJohn Forte int nsc_cache_sizes(int *, int *) { } 67*fcf3ce44SJohn Forte int nsc_register_down(void (*)()) { } 68*fcf3ce44SJohn Forte int nsc_node_hints(unsigned int *) { } 69*fcf3ce44SJohn Forte int nsc_node_hints_set(unsigned int) { } 70*fcf3ce44SJohn Forte blind_t nsc_register_power(char *, void *) { } 71*fcf3ce44SJohn Forte int nsc_unregister_power(blind_t) { } 72*fcf3ce44SJohn Forte strategy_fn_t nsc_get_strategy(major_t) { } 73*fcf3ce44SJohn Forte void *nsc_get_devops(major_t) { } 74*fcf3ce44SJohn Forte void nsc_do_sysevent(char *, char *, int, int, char *, dev_info_t *) { } 75*fcf3ce44SJohn Forte nsc_fd_t *nsc_open(char *, int, void *, blind_t, int *) { } 76*fcf3ce44SJohn Forte int nsc_close(nsc_fd_t *) { } 77*fcf3ce44SJohn Forte char *nsc_pathname(nsc_fd_t *) { } 78*fcf3ce44SJohn Forte int nsc_shared(nsc_fd_t *) { } 79*fcf3ce44SJohn Forte int nsc_setval(nsc_fd_t *, char *, int) { } 80*fcf3ce44SJohn Forte int nsc_getval(nsc_fd_t *, char *, int *) { } 81*fcf3ce44SJohn Forte int nsc_set_trksize(nsc_fd_t *, int) { } 82*fcf3ce44SJohn Forte int nsc_discard_pinned(nsc_fd_t *, int, int) { } 83*fcf3ce44SJohn Forte kmutex_t *nsc_lock_addr(nsc_fd_t *) { } 84*fcf3ce44SJohn Forte int nsc_attach(nsc_fd_t *, int) { } 85*fcf3ce44SJohn Forte int nsc_reserve(nsc_fd_t *, int) { } 86*fcf3ce44SJohn Forte void nsc_reserve_lk(nsc_fd_t *) { } 87*fcf3ce44SJohn Forte void nsc_release(nsc_fd_t *) { } 88*fcf3ce44SJohn Forte int nsc_release_lk(nsc_fd_t *) { } 89*fcf3ce44SJohn Forte int nsc_detach(nsc_fd_t *, int) { } 90*fcf3ce44SJohn Forte int nsc_avail(nsc_fd_t *) { } 91*fcf3ce44SJohn Forte int nsc_held(nsc_fd_t *) { } 92*fcf3ce44SJohn Forte int nsc_waiting(nsc_fd_t *) { } 93*fcf3ce44SJohn Forte int nsc_partsize(nsc_fd_t *, nsc_size_t *) { } 94*fcf3ce44SJohn Forte int nsc_maxfbas(nsc_fd_t *, int, nsc_size_t *) { } 95*fcf3ce44SJohn Forte int nsc_control(nsc_fd_t *, int, void *, int) { } 96*fcf3ce44SJohn Forte int nsc_get_pinned(nsc_fd_t *) { } 97*fcf3ce44SJohn Forte int nsc_max_devices(void) { } 98*fcf3ce44SJohn Forte 99*fcf3ce44SJohn Forte void nsc_set_owner(nsc_fd_t *, nsc_iodev_t *) { } 100*fcf3ce44SJohn Forte void nsc_pinned_data(nsc_iodev_t *, int, int) { } 101*fcf3ce44SJohn Forte void nsc_unpinned_data(nsc_iodev_t *, int, int) { } 102*fcf3ce44SJohn Forte int nsc_alloc_buf(nsc_fd_t *, nsc_off_t, nsc_size_t, int, void **) { } 103*fcf3ce44SJohn Forte int nsc_alloc_abuf(nsc_off_t, nsc_size_t, int, void **) { } 104*fcf3ce44SJohn Forte int nsc_read(void *, nsc_off_t, nsc_size_t, int) { } 105*fcf3ce44SJohn Forte int nsc_write(void *, nsc_off_t, nsc_size_t, int) { } 106*fcf3ce44SJohn Forte int nsc_zero(void *, nsc_off_t, nsc_size_t, int) { } 107*fcf3ce44SJohn Forte int nsc_copy(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) { } 109*fcf3ce44SJohn Forte int nsc_uncommit(void *, nsc_off_t, nsc_size_t, int) { } 110*fcf3ce44SJohn Forte int nsc_free_buf(void *) { } 111*fcf3ce44SJohn Forte void *nsc_alloc_handle(nsc_fd_t *, 112*fcf3ce44SJohn Forte void (*)(), void (*)(), void (*)()) { } 113*fcf3ce44SJohn Forte int nsc_free_handle(void *) { } 114*fcf3ce44SJohn Forte int nsc_uread(nsc_fd_t *, void *, void *) { } 115*fcf3ce44SJohn Forte int nsc_uwrite(nsc_fd_t *, void *, void *) { } 116*fcf3ce44SJohn Forte 117*fcf3ce44SJohn Forte nsc_rmlock_t *nsc_rm_lock_alloc(char *, int, void *) { } 118*fcf3ce44SJohn Forte void nsc_rm_lock_dealloc(nsc_rmlock_t *) { } 119*fcf3ce44SJohn Forte int nsc_rm_lock(nsc_rmlock_t *) { } 120*fcf3ce44SJohn Forte void nsc_rm_unlock(nsc_rmlock_t *) { } 121*fcf3ce44SJohn Forte 122*fcf3ce44SJohn Forte void *nsc_register_mem(char *, int, int) { } 123*fcf3ce44SJohn Forte void nsc_unregister_mem(void *) { } 124*fcf3ce44SJohn Forte void *nsc_kmem_alloc(size_t, int, void *) { } 125*fcf3ce44SJohn Forte void *nsc_kmem_zalloc(size_t, int, void *) { } 126*fcf3ce44SJohn Forte void nsc_kmem_free(void *, size_t) { } 127*fcf3ce44SJohn Forte void nsc_mem_sizes(void *, size_t *, size_t *, size_t *) { } 128*fcf3ce44SJohn Forte size_t nsc_mem_avail(void *) { } 129*fcf3ce44SJohn Forte 130*fcf3ce44SJohn Forte int nsc_commit_mem(void *, void *, size_t, void) { } 131*fcf3ce44SJohn Forte 132*fcf3ce44SJohn Forte void nsc_cm_errhdlr(void *, void *, size_t, int) { } 133*fcf3ce44SJohn Forte 134*fcf3ce44SJohn Forte nsc_svc_t *nsc_register_svc(char *, void (*)(intptr_t)) { } 135*fcf3ce44SJohn Forte int nsc_unregister_svc(nsc_svc_t *) { } 136*fcf3ce44SJohn Forte int nsc_call_svc(nsc_svc_t *, intptr_t) { } 137*fcf3ce44SJohn Forte 138*fcf3ce44SJohn Forte char *nsc_strdup(char *) { } 139*fcf3ce44SJohn Forte void nsc_strfree(char *) { } 140*fcf3ce44SJohn Forte int nsc_strmatch(char *, char *) { } 141*fcf3ce44SJohn Forte void nsc_sprintf(char *, char *, ...) { } 142*fcf3ce44SJohn Forte int nsc_max_nodeid, nsc_min_nodeid; 143*fcf3ce44SJohn Forte int nsc_nodeid_data(void) { } 144*fcf3ce44SJohn Forte int nsc_node_id(void) { } 145*fcf3ce44SJohn Forte int nsc_node_up(int) { } 146*fcf3ce44SJohn Forte char *nsc_node_name(void) { } 147*fcf3ce44SJohn Forte time_t nsc_time(void) { } 148*fcf3ce44SJohn Forte clock_t nsc_lbolt(void) { } 149*fcf3ce44SJohn Forte int nsc_delay_sig(clock_t) { } 150*fcf3ce44SJohn Forte clock_t nsc_usec(void) { } 151*fcf3ce44SJohn Forte void nsc_yield(void) { } 152*fcf3ce44SJohn Forte int nsc_create_process(void (*)(void *), void *, boolean_t) { } 153*fcf3ce44SJohn Forte int nsc_power_init(void) { } 154*fcf3ce44SJohn Forte void nsc_power_deinit(void) { } 155*fcf3ce44SJohn Forte void _nsc_global_nvmemmap_lookup(void *) { } 156*fcf3ce44SJohn Forte void _nsc_mark_pages(void addr, void size, int dump) { } 157*fcf3ce44SJohn Forte void _nsc_init_raw() { } 158*fcf3ce44SJohn Forte void _nsc_deinit_raw() { } 159*fcf3ce44SJohn Forte void _nsc_init_start() { } 160*fcf3ce44SJohn Forte void _nsc_init_os() { } 161*fcf3ce44SJohn Forte void _nsc_raw_flags() { } 162*fcf3ce44SJohn Forte int _nsc_raw_def[1]; 163*fcf3ce44SJohn Forte void nskernd_command() { } 164*fcf3ce44SJohn Forte void nskern_bsize() { } 165*fcf3ce44SJohn Forte int nsc_do_lock() { } 166*fcf3ce44SJohn Forte void nsc_do_unlock() { } 167*fcf3ce44SJohn Forte int HZ; 168*fcf3ce44SJohn Forte uint64_t nsc_strhash(char *) { } 169*fcf3ce44SJohn Forte int nsc_fdpathcmp(void *, uint64_t, char *) { } 170*fcf3ce44SJohn Forte char *nsc_caller() { } 171*fcf3ce44SJohn Forte char *nsc_callee() { } 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