/* $Id: hps.types.h,v 2.2 91/01/10 20:43:17 dave Exp $ */
/****************************************************************/
/*						hps.types.h								*/
/****************************************************************/
/*																*/
/*                 Confidential Information                     */
/*      Limited Distribution to Authorized Persons Only         */
/*     Created 1986 and Protected as an Unpublished Work        */
/*          Under the U.S. Copyright Act of 1976.               */
/*         Copyright (c) 1986, Systech Corporation          	*/
/*                  All Rights Reserved                         */
/*																*/
/*	THIS SOFTWARE IS LICENSED BY AND IS THE	CONFIDENTIAL AND 	*/
/*	PROPRIETARY PROPERTY OF SYSTECH COMPUTER CORPORATION AND 	*/
/*	MAY NOT, WITHOUT THE PRIOR WRITTEN CONSENT OF SYSTECH 		*/
/*	COMPUTER CORPORATION, BE REPRODUCED, USED OR DISCLOSED 		*/
/*	EXCEPT IN ACCORDANCE WITH A SYSTECH COMPUTER CORPORATION 	*/
/*	SOFTWARE LICENSE AGREEMENT.									*/
/****************************************************************/
/*																*/
/* This file defines some basic data types, to insure that the	*/
/* HPS on-board processor and the host processor agree on byte-	*/
/* within-word ordering, long and short word sizes, etc.		*/
/*																*/
/****************************************************************/


typedef long			bit32;
typedef short			bit16;
typedef unsigned char	bit8;


typedef union
{
	bit32 hps_addr;
	struct
	{
		bit16 WH;
		bit16 WL;
	} ws;
	struct
	{
		bit8 HH;
		bit8 HL;
		bit8 LH;
		bit8 LL;
	} dpram_addr;
} HPS_LONG;		/* 32-bit value structured for the 68000	*/


/*	Convenient #defines to use with HPS_LONG union	*/

#define wl	ws.WL
#define wh	ws.WH
#define ll	dpram_addr.LL
#define lh	dpram_addr.LH
#define hl	dpram_addr.HL
#define hh	dpram_addr.HH


/* Shorten names, to avoid portability problems.		*/

#define	v_rtiocb	v_rtioc
#define	v_qcreate	v_qcrea
#define	v_create	v_creat
#define	v_rtnwrk	v_rtnwr
#define	v_pextend	v_pexte
#define	v_tdelete	v_tdele
#define	v_gblock	v_gbloc
#define	v_pcreate	v_pcrea
#define	v_rblock	v_rbloc
#define	v_tdelay	v_tdela

/*
 * MODIFICATION HISTORY:
 *
 * $Log:	hps.types.h,v $
 * Revision 1.1.2.1  92/06/24  13:53:28  marker
 * Branch RISCOS_5_01_2_FIXES off of trunk.
 * 
 * Revision 2.2  91/01/10  20:43:17  dave
 * Update header.
 * COSMETIC
 * 
 */
