/*
* 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 __ADM_H__
#define __ADM_H__
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* adm.h: defines and function prototypes for scadm
*/
#include <stdio.h>
#include <time.h>
#include "librsc.h"
/* DEFINES */
/* eprom update */
/*
* By default, how much of an extended log will be displayed (for character-
* based logs.)
*/
/* Default number of events we ask ALOM for (for event-based logs.) */
/* Return values for ADM_Valid_srecord() */
#define SREC_OK 0
/* SPEC'S */
void ADM_Init();
void ADM_Cleanup();
void ADM_Process_help();
void ADM_Process_modem_setup();
void ADM_Process_status();
void ADM_Process_show_network();
void ADM_Process_event_log(int all);
void ADM_Process_console_log(int all);
void ADM_Process_fru_log(int all);
void ADM_Usage();
/* rscp_register_bpmsg_cb() must be called before using */
/* rscp_send_bpmsg() or ADM_Boot_Recv() */
/* Wrappers for rscp routines */
void ADM_Start();
int expectSize);
#ifdef __cplusplus
}
#endif
#endif /* __ADM_H__ */