nsc_gen.h revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
/*
* 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 _NSC_GEN_H
#define _NSC_GEN_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __NSC_GEN__
#endif
/*
* Global resource map.
*/
#define _NSC_MAXNAME 20
typedef struct nsc_rmmap_s {
} nsc_rmmap_t;
#ifdef _KERNEL
extern kmutex_t _nsc_global_lock;
extern int _nsc_global_lock_init;
extern void nsc_cm_errhdlr(void *, void *, size_t, int);
extern caddr_t _nsc_rm_nvmem_base;
/*
* Inter-module function (callback) services.
*/
typedef struct nsc_svc_s {
} nsc_svc_t;
typedef struct nsc_service_s {
char *s_name; /* name of service */
extern void _nsc_init_svc(void);
extern void _nsc_deinit_svc(void);
#endif /* _KERNEL */
/*
* ncall usage (NCALL_NSC .. NCALL_NSC+9)
*/
/* inter-node setval */
/* ncall-io io provider */
#ifdef __cplusplus
}
#endif
#endif /* _NSC_GEN_H */