xref: /dragonfly/sys/dev/raid/asr/osd_defs.h (revision c9f721c2)
1 /* $FreeBSD: src/sys/dev/asr/osd_defs.h,v 1.1.2.2 2001/08/23 05:21:29 scottl Exp $ */
2 /* $DragonFly: src/sys/dev/raid/asr/osd_defs.h,v 1.3 2004/02/12 00:00:19 dillon Exp $ */
3 /*
4  * Copyright (c) 1996-1999 Distributed Processing Technology Corporation
5  * All rights reserved.
6  *
7  * Redistribution and use in source form, with or without modification, are
8  * permitted provided that redistributions of source code must retain the
9  * above copyright notice, this list of conditions and the following disclaimer.
10  *
11  * This software is provided `as is' by Distributed Processing Technology and
12  * any express or implied warranties, including, but not limited to, the
13  * implied warranties of merchantability and fitness for a particular purpose,
14  * are disclaimed. In no event shall Distributed Processing Technology be
15  * liable for any direct, indirect, incidental, special, exemplary or
16  * consequential damages (including, but not limited to, procurement of
17  * substitute goods or services; loss of use, data, or profits; or business
18  * interruptions) however caused and on any theory of liability, whether in
19  * contract, strict liability, or tort (including negligence or otherwise)
20  * arising in any way out of the use of this driver software, even if advised
21  * of the possibility of such damage.
22  *
23  */
24 
25 #ifndef		_OSD_DEFS_H
26 #define		_OSD_DEFS_H
27 
28 /*File - OSD_DEFS.H
29  ****************************************************************************
30  *
31  *Description:
32  *
33  *	This file contains the OS dependent defines.  This file is included
34  *in osd_util.h and provides the OS specific defines for that file.
35  *
36  *Copyright Distributed Processing Technology, Corp.
37  *	  140 Candace Dr.
38  *	  Maitland, Fl.	32751   USA
39  *	  Phone: (407) 830-5522  Fax: (407) 260-5366
40  *	  All Rights Reserved
41  *
42  *Author:	Doug Anderson
43  *Date:		1/31/94
44  *
45  *Editors:
46  *
47  *Remarks:
48  *
49  *
50  *****************************************************************************/
51 
52 
53 /*Definitions - Defines & Constants ----------------------------------------- */
54 
55   /* Define the operating system */
56 #if (defined(__linux__))
57 # define _DPT_LINUX
58 #elif (defined(__bsdi__))
59 # define _DPT_BSDI
60 #elif (defined(__DragonFly__))
61 # undef _DPT_FREE_BSD
62 # define _DPT_FREE_BSD
63 #else
64 # define _DPT_SCO
65 #endif
66 
67 #if defined (ZIL_CURSES)
68 #define		_DPT_CURSES
69 #else
70 #define         _DPT_MOTIF
71 #endif
72 
73   /* Redefine 'far' to nothing - no far pointer type required in UNIX */
74 #define		far
75 
76   /* Define the mutually exclusive semaphore type */
77 #define		SEMAPHORE_T	unsigned int *
78   /* Define a handle to a DLL */
79 #define		DLL_HANDLE_T	unsigned int *
80 
81 #endif
82