/*
* 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 2000 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_IOSRAMIO_H
#define _SYS_IOSRAMIO_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* data_valid flag values
*/
#define IOSRAM_DATA_INVALID 0
/*
* int_pending flag values
*/
#define IOSRAM_INT_NONE 0
/*
* IOSRAM control commands, for use in iosram_ctrl().
*/
/*
* IOSRAM header control commands, for use in iosram_hdr_ctrl _only_ by the
* Mailbox Protocol implementation
*/
/*
*/
extern int iosram_send_intr();
/*
* This function is only intended to be called by DR.
*/
extern int iosram_switchfrom(int instance);
/*
* The following functions are only to be used by the Mailbox Protocol
* implementation.
*/
extern int iosram_sema_acquire(uint32_t *);
extern int iosram_sema_release(void);
#if defined(DEBUG)
/*
* ioctls for testing purposes only
*/
/*
* struct iosram_io:
* Used for testing purposes to invoke IOSRAM internal
* interface from user level via ioctl() interface.
*/
typedef struct iosram_io {
} iosram_io_t;
#endif /* DEBUG */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_IOSRAMIO_H */