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 2005 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel * Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#pragma ident "%Z%%M% %I% %E% SMI"
03831d35f7499c87d51205817c93e9a8d42c4baestevelextern "C" {
03831d35f7499c87d51205817c93e9a8d42c4baestevel * adm.h: defines and function prototypes for scadm
03831d35f7499c87d51205817c93e9a8d42c4baestevel/* DEFINES */
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define ADM_TIMEOUT 2 /* RX timeout for normal messages */
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define ADM_SEPROM_TIMEOUT 10 /* timeout for messages requiring serial */
03831d35f7499c87d51205817c93e9a8d42c4baestevel /* eprom update */
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define ADM_BOOT_INIT_TIMEOUT 1 /* RX timeout for BOOT_INIT message */
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define ADM_BOOT_LOAD_TIMEOUT 10 /* RX timeout for BOOT s-record message */
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define ADM_BOOT_RETRY 5 /* Number of times to retry BOOT messages */
03831d35f7499c87d51205817c93e9a8d42c4baestevel#define ADM_LINE_SIZE 1024 /* Max s-record line size */
03831d35f7499c87d51205817c93e9a8d42c4baestevel * By default, how much of an extended log will be displayed (for character-
03831d35f7499c87d51205817c93e9a8d42c4baestevel * based logs.)
03831d35f7499c87d51205817c93e9a8d42c4baestevel/* Default number of events we ask ALOM for (for event-based logs.) */
03831d35f7499c87d51205817c93e9a8d42c4baestevel/* Return values for ADM_Valid_srecord() */
03831d35f7499c87d51205817c93e9a8d42c4baestevel/* SPEC'S */
03831d35f7499c87d51205817c93e9a8d42c4baestevelvoid ADM_Process_userpassword(int argc, char *argv[]);
03831d35f7499c87d51205817c93e9a8d42c4baestevelvoid ADM_Display_download_error(int cmd, int dat1); /* in send_file.c */
03831d35f7499c87d51205817c93e9a8d42c4baestevel/* rscp_register_bpmsg_cb() must be called before using */
03831d35f7499c87d51205817c93e9a8d42c4baestevel/* rscp_send_bpmsg() or ADM_Boot_Recv() */
03831d35f7499c87d51205817c93e9a8d42c4baestevelint ADM_Boot_recv(bp_msg_t *MessagePtr, struct timespec *Timeout);
03831d35f7499c87d51205817c93e9a8d42c4baestevel/* Wrappers for rscp routines */
03831d35f7499c87d51205817c93e9a8d42c4baestevelvoid ADM_Recv(rscp_msg_t *msg, struct timespec *timeout, int expectType,
03831d35f7499c87d51205817c93e9a8d42c4baestevel#endif /* __ADM_H__ */