1 /*
   2  * CDDL HEADER START
   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #ifndef _SYS_NCALL_INTER_H
  27 #define _SYS_NCALL_INTER_H
  28 
  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 #ifdef _KERNEL
  34 
  35 void ncall_register_svc(int, void (*)(void *, int *)) { }
  36 void ncall_unregister_svc(int) { }
  37 int ncall_register_module(void *, void *);
  38 int ncall_unregister_module(void *);
  39 
  40 int  ncall_nodeid(char *) { }
  41 char *ncall_nodename(int) { }
  42 int  ncall_mirror(int) { }
  43 int  ncall_self(void) { }
  44 
  45 int  ncall_alloc(int, int, int, void **) { }
  46 int  ncall_timedsend(void *, int, int, struct timeval *, ...) { }
  47 int  ncall_timedsendnotify(void *, int, int, struct timeval *,
  48     void (*)(void *, void *), void *, ...) { }
  49 int  ncall_send(void *, int, int, ...) { }
  50 int  ncall_read_reply(void *, int, ...) { }
  51 void ncall_reset(void *) { }
  52 void ncall_free(void *) { }
  53 
  54 int  ncall_put_data(void *, void *, int) { }
  55 int  ncall_get_data(void *, void *, int) { }
  56 
  57 int  ncall_sender(void *) { }
  58 void ncall_reply(void *, ...) { }
  59 void ncall_pend(void  *) { }
  60 void ncall_done(void  *) { }
  61 
  62 int ncall_maxnodes(void) { }
  63 int ncall_nextnode(void **) { }
  64 int ncall_errcode(void *, int *) { }
  65 
  66 
  67 /* Health monitor typedefs, variables and functions */
  68 typedef void hmio_name_t;
  69 typedef void hm_sarea_t;
  70 typedef void hm_statev_t;
  71 #ifndef _HM_TOK_T
  72 #define _HM_TOK_T
  73 typedef void *hm_tok_t;
  74 #endif
  75 
  76 int bchm_load(void) { }
  77 int bchm_unload(void) { }
  78 int bchm_getnetname(hmio_name_t *) { }
  79 int bchm_getstatename(hmio_name_t *) { }
  80 int bchm_startnet(hmio_name_t *, int) { }
  81 int bchm_initted;
  82 hm_sarea_t *bchm_start_addr[1];
  83 hm_sarea_t hm_latest_state;
  84 
  85 #endif /* _KERNEL */
  86 
  87 #ifdef  __cplusplus
  88 }
  89 #endif
  90 
  91 #endif /* _SYS_NCALL_INTER_H */