/*****************************************************************************
 * Copyright (c) 1988-95 Digi International Inc., All Rights Reserved
 * 
 * This  software  contains  proprietary  and  confidential   information   of
 * Digi International  Inc.   By  accepting  transfer  of this copy, Recipient
 * agrees to retain this software in  confidence,  to  prevent  disclosure  to
 * others,  and  to make no  use of this software other than that for which it
 * was delivered.  This is an unpublished copyright work  Digi   International
 * Inc.    Except   as   permitted   by  federal  law,  17 USC 117, copying is
 * strictly prohibited.
 * 
 * Digi  International  Inc.  CONFIDENTIAL  -   (Digi    International    Inc.
 * Confidential  when   combined   with   the   aggregated  modules  for  this
 * product) OBJECT CODE ONLY SOURCE MATERIALS
 * 
 * (C) COPYRIGHT Digi International Inc. 1995
 * 
 * All Rights Reserved
 * 
 * US   Government   Users   Restricted   Rights   -   Use,   duplication   or
 * disclosure  restricted by GSA ADP Schedule Contract with Digi International
 * Inc.
 * 
 *****************************************************************************/

/******************************************************************
 *
 *  Embedded STREAMS Package
 *
 *  Copyright 1987  Spider Systems Limited
 *
 *  TYPES.H
 *
 *    Simplified version of 'usr/include/sys/types.h'
 *
 ******************************************************************/

/*
 *	 /projects/common/PBRAIN/SCCS/pbrainF/dev/embed/common/71/s.types.h
 *	@(#)types.h	1.1
 *
 *	Last delta created	12:49:24 6/25/92
 *	This file extracted	12:55:12 10/29/92
 *
 *	Modifications:
 *
 *	GSA	18 Sep 91	New file created
 *
 */

#ifndef	_TYPES_H
#define	_TYPES_H

#ifdef SOH
#include <ntddk.h>
#pragma intrinsic( strlen )
#include <ntverp.h>
#	if (VER_PRODUCTBUILD <= 1381) /* NT4 or earlier release of NT */
		typedef int          int3264;
		typedef unsigned int uint3264;
#	else
		typedef INT_PTR      int3264;
		typedef UINT_PTR     uint3264;
#	endif
#else
		typedef int          int3264;
		typedef unsigned int uint3264;
#endif

/* 8-bit data types */
typedef signed char		int8 ;
typedef unsigned char	uint8 ;
typedef unsigned char	unchar;
typedef unsigned char	u_char;

/* 16-bit data types */
typedef signed short	int16 ;
typedef unsigned short	uint16 ;
typedef unsigned short	ushort;
typedef unsigned short	u_short;

/* 32-bit data types */
typedef signed int		int32 ;
typedef unsigned int	uint32 ;
typedef unsigned int	uint;
typedef unsigned int	u_int;
typedef unsigned long	ulong;
typedef unsigned long	u_long;
typedef int				dev_t;		/* Device code */

/* Pointer types */
typedef char *		caddr_t;	/* General address */
typedef int (*PFI)(caddr_t);	/* Pointer to function returning int */

/* Other types */
typedef long time_t;

#ifdef SOH

#if STACKDBG
#define	printf			DbgPrint
#else
#define	printf
#endif

#define	strlog
#define	pow				PowerOf
#define	outp				outpointer
#define	panic(STRING)	KeBugCheck(0xAA000001)
#define	bzero(a,b)		RtlZeroMemory((a),(b))
#define	bcopy(a,b,c)	RtlCopyMemory((b),(a),(c))

// Included for prototypes
#include "commonpt.h"

#endif


#endif	/* _TYPES_H */
