/*******************************************************************************
 * 
 *   (C) 1999 ARTX INC..  ALL RIGHTS RESERVED.  UNPUBLISHED -- RIGHTS
 *   RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES.  USE OF A
 *   COPYRIGHT NOTICE IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION
 *   OR DISCLOSURE.
 *
 *   THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE SECRETS OF
 *   ARTX INC..  USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT
 *   THE PRIOR EXPRESS WRITTEN PERMISSION OF ARTX INC..
 *
 *                   RESTRICTED RIGHTS LEGEND
 *
 *   Use, duplication, or disclosure by the Government is subject to
 *   restrictions as set forth in subparagraph (c)(1)(ii) of the Rights
 *   in Technical Data and Computer Software clause at DFARS 252.227-7013
 *   or subparagraphs (c)(1) and (2) of Commercial Computer Software --
 *   Restricted Rights at 48 CFR 52.227-19, as applicable. 
 *
 *   ArtX Inc.
 *   3400 Hillview Ave, Bldg 5
 *   Palo Alto, CA 94304
 *
 ******************************************************************************/



#ifndef __DIAG_DIAG_H__
#define __DIAG_DIAG_H__

#if defined(RVL)
#include "iostypes.h"
#else
#include <types.h>
#endif

#include <sys.h>
#include "getopt.h"
/*
 * Perhaps irrelevant?  We'll see 
 * #include <busclient.h>
 */
#define assert(x)

#define getArgCnt()	busRd32(SIM_CMDARG_ADDR)
#define getArg(n)	busRd32(SIM_CMDARG_ADDR + (n + 1) * 4)

#if defined(RVL)
#define htonl(x) (x)
#define ntohl(x) (x)
#endif

#endif // __DIAG_DIAG_H__
