03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel * The contents of this file are subject to the terms of the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Common Development and Distribution License (the "License").
03831d35f7499c87d51205817c93e9a8d42c4baestevel * You may not use this file except in compliance with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel * See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel * and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel * information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel * CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Copyright 2000 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#pragma ident "%Z%%M% %I% %E% SMI"
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern "C" {
03831d35f7499c87d51205817c93e9a8d42c4baestevel * data_valid flag values
03831d35f7499c87d51205817c93e9a8d42c4baestevel * int_pending flag values
03831d35f7499c87d51205817c93e9a8d42c4baestevel * IOSRAM control commands, for use in iosram_ctrl().
03831d35f7499c87d51205817c93e9a8d42c4baestevel * IOSRAM header control commands, for use in iosram_hdr_ctrl _only_ by the
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Mailbox Protocol implementation
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Extern prototypes for kernel drivers/modules
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern int iosram_rd(uint32_t key, uint32_t off, uint32_t len, caddr_t dptr);
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern int iosram_wr(uint32_t key, uint32_t off, uint32_t len, caddr_t dptr);
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern int iosram_force_write(uint32_t key, uint32_t off, uint32_t len,
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern int iosram_get_flag(uint32_t key, uint8_t *data_valid,
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern int iosram_set_flag(uint32_t key, uint8_t data_valid,
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern int iosram_register(uint32_t key, void (*handler)(), void *arg);
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern int iosram_ctrl(uint32_t key, uint32_t cmd, void *arg);
03831d35f7499c87d51205817c93e9a8d42c4baestevel * This function is only intended to be called by DR.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * The following functions are only to be used by the Mailbox Protocol
03831d35f7499c87d51205817c93e9a8d42c4baestevel * implementation.
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern int iosram_sema_release(void);
03831d35f7499c87d51205817c93e9a8d42c4baestevel#if defined(DEBUG)
03831d35f7499c87d51205817c93e9a8d42c4baestevel * ioctls for testing purposes only
03831d35f7499c87d51205817c93e9a8d42c4baestevel * struct iosram_io:
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Used for testing purposes to invoke IOSRAM internal
03831d35f7499c87d51205817c93e9a8d42c4baestevel * interface from user level via ioctl() interface.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#endif /* DEBUG */
03831d35f7499c87d51205817c93e9a8d42c4baestevel#endif /* _SYS_IOSRAMIO_H */