1139749Simp/*-
265312Smsmith * Copyright (c) 1996-1999 Distributed Processing Technology Corporation
365312Smsmith * All rights reserved.
465312Smsmith *
565312Smsmith * Redistribution and use in source form, with or without modification, are
665312Smsmith * permitted provided that redistributions of source code must retain the
765312Smsmith * above copyright notice, this list of conditions and the following disclaimer.
865312Smsmith *
965312Smsmith * This software is provided `as is' by Distributed Processing Technology and
1065312Smsmith * any express or implied warranties, including, but not limited to, the
1165312Smsmith * implied warranties of merchantability and fitness for a particular purpose,
1265312Smsmith * are disclaimed. In no event shall Distributed Processing Technology be
1365312Smsmith * liable for any direct, indirect, incidental, special, exemplary or
1465312Smsmith * consequential damages (including, but not limited to, procurement of
1565312Smsmith * substitute goods or services; loss of use, data, or profits; or business
1665312Smsmith * interruptions) however caused and on any theory of liability, whether in
1765312Smsmith * contract, strict liability, or tort (including negligence or otherwise)
1865312Smsmith * arising in any way out of the use of this driver software, even if advised
1965312Smsmith * of the possibility of such damage.
2065312Smsmith *
2187826Sobrien * $FreeBSD: releng/10.2/sys/dev/asr/osd_defs.h 139749 2005-01-06 01:43:34Z imp $
2265312Smsmith */
2365312Smsmith
2465312Smsmith#ifndef		_OSD_DEFS_H
2565312Smsmith#define		_OSD_DEFS_H
2665312Smsmith
2765312Smsmith/*File - OSD_DEFS.H
2865312Smsmith ****************************************************************************
2965312Smsmith *
3065312Smsmith *Description:
3165312Smsmith *
3265312Smsmith *	This file contains the OS dependent defines.  This file is included
3365312Smsmith *in osd_util.h and provides the OS specific defines for that file.
3465312Smsmith *
3565312Smsmith *Copyright Distributed Processing Technology, Corp.
3665312Smsmith *	  140 Candace Dr.
3796554Sobrien *	  Maitland, Fl. 32751	USA
3896554Sobrien *	  Phone: (407) 830-5522	 Fax: (407) 260-5366
3965312Smsmith *	  All Rights Reserved
4065312Smsmith *
4165312Smsmith *Author:	Doug Anderson
4265312Smsmith *Date:		1/31/94
4365312Smsmith *
4465312Smsmith *Editors:
4565312Smsmith *
4665312Smsmith *Remarks:
4765312Smsmith *
4865312Smsmith *
4965312Smsmith *****************************************************************************/
5065312Smsmith
5165312Smsmith
5265312Smsmith/*Definitions - Defines & Constants ----------------------------------------- */
5365312Smsmith
5465312Smsmith  /* Define the operating system */
5565312Smsmith#if (defined(__linux__))
5665312Smsmith# define _DPT_LINUX
5765312Smsmith#elif (defined(__bsdi__))
5865312Smsmith# define _DPT_BSDI
5965312Smsmith#elif (defined(__FreeBSD__))
6082092Sscottl# undef _DPT_FREE_BSD
6165312Smsmith# define _DPT_FREE_BSD
6265312Smsmith#else
6365312Smsmith# define _DPT_SCO
6465312Smsmith#endif
6565312Smsmith
6696614Sobrien#if defined(ZIL_CURSES)
6765312Smsmith#define		_DPT_CURSES
6865312Smsmith#else
6996554Sobrien#define		_DPT_MOTIF
7065312Smsmith#endif
7165312Smsmith
7265312Smsmith  /* Redefine 'far' to nothing - no far pointer type required in UNIX */
7365312Smsmith#define		far
7465312Smsmith
7565312Smsmith  /* Define the mutually exclusive semaphore type */
7665312Smsmith#define		SEMAPHORE_T	unsigned int *
7765312Smsmith  /* Define a handle to a DLL */
7865312Smsmith#define		DLL_HANDLE_T	unsigned int *
7965312Smsmith
8065312Smsmith#endif
81