/*
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SGSBBC_IOSRAM_PRIV_H
#define _SYS_SGSBBC_IOSRAM_PRIV_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/sgsbbc_priv.h>
#include <sys/sgsbbc_iosram.h>
/*
* The following keys are in I/O SRAM TOC
* and used by the OS and SC-APP
* These are mapped to the numeric values below
*
*/
/*
* Interrupts enabled that SC can send to OS
*/
/*
* Interrupts enabled that OS can send to SC
*/
/*
*/
/*
* different sram types
*/
/*
* Macros used for version checking
* The SBBC driver will check the major version number in the IOSRAM
* TOC entry. If the major version number in the TOC entry is larger
* than the maximum number Solaris supports, Solaris will panic.
*/
/*
*/
typedef struct tunnel_key {
int key;
int size;
} tunnel_key_t;
typedef struct tunnel {
} tunnel_t;
struct chosen_iosram {
/*
* Global IOSRAM lock
*/
/*
* Tunnel lock to synchronize IOSRAM access
*/
/*
* 'chosen' SBBC
*/
/*
* pointer to an array of SBBC_MAX_KEYS tunnel entries
*/
/*
* interrupt handlers
*/
};
extern void iosram_init(void);
extern void iosram_fini(void);
extern int sgsbbc_iosram_is_chosen(sbbc_softstate_t *);
/*
* tunnel switch related routines
*/
extern int iosram_tunnel_init(sbbc_softstate_t *);
extern int sgsbbc_iosram_switchfrom(sbbc_softstate_t *);
extern int iosram_switch_tunnel(int);
extern struct chosen_iosram *master_iosram;
extern struct sbbc_softstate *sgsbbc_instances;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SGSBBC_IOSRAM_PRIV_H */