source: trunk/Cosy/incl/linux.h@ 18161

Last change on this file since 18161 was 731, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 2.7 KB
Line 
1/* -*-C-*-
2 * linux.h - linux to dpm type conversions
3 *
4 *-----------------------------------------------------------------------
5 *
6 * Copyright (c) 1997 JANZ Computer AG
7 * All Rights Reserved
8 *
9 * Permission is hereby granted to licensees of JANZ Computer AG
10 * products to use or abstract this computer program for the sole
11 * purpose of implementing a product based on JANZ Computer AG
12 * products. No other rights to reproduce, use, or disseminate
13 * this computer program, whether in part or in whole, are granted.
14 *
15 * JANZ Computer AG makes no representation or warranties with respect
16 * to the performance of this computer program, and specifically
17 * disclaims any responsibility for any damages, special or consequential,
18 * connected with the use of this program.
19 *
20 * JANZ Computer AG products are not authorized for use as critical
21 * components in life support devices or systems without the express
22 * written approval of JANZ Computer AG.
23 *
24 *-----------------------------------------------------------------------
25 *
26 * $Id: linux.h,v 1.1 2001-04-09 13:32:55 tbretz Exp $
27 *
28 *-----------------------------------------------------------------------
29 */
30
31/*
32 * $Log: not supported by cvs2svn $
33 * Revision 1.1 1997/09/29 15:50:04 root
34 * Initial revision
35 *
36 * Revision 1.1 1997/04/01 14:54:59 root
37 * Initial revision
38 *
39 */
40
41
42#ifndef linux_DEFINED
43#define linux_DEFINED
44#if __cplusplus
45extern "C" {
46#endif
47
48/***** defines **************************************************************/
49
50#define TRUE (1)
51#define FALSE (0)
52#define ERROR (-1)
53#define intLock(x) disable_irq(x)
54#define intUnlock(x) enable_irq(x)
55
56#define DEV_HDR int
57#define SEM_ID int
58
59#define FAST register
60#define IMPORT extern
61#define LOCAL static
62
63/***** typedefs *************************************************************/
64
65typedef char INT8;
66typedef short INT16;
67typedef int INT32;
68
69typedef unsigned char UINT8;
70typedef unsigned short UINT16;
71typedef unsigned int UINT32;
72
73typedef unsigned char UCHAR;
74typedef unsigned short USHORT;
75typedef unsigned int UINT;
76typedef unsigned long ULONG;
77
78typedef int BOOL;
79typedef int STATUS;
80typedef int ARGINT;
81
82typedef void VOID;
83
84typedef int (*FUNCPTR) (); /* ptr to function returning int */
85typedef void (*VOIDFUNCPTR) (); /* ptr to function returning void */
86typedef double (*DBLFUNCPTR) (); /* ptr to function returning double*/
87typedef float (*FLTFUNCPTR) (); /* ptr to function returning float */
88
89/***** function declarations ***********************************************/
90
91#if __cplusplus
92}
93#endif
94#endif /* linux_DEFINED */
Note: See TracBrowser for help on using the repository browser.