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
|
---|
45 | extern "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 |
|
---|
65 | typedef char INT8;
|
---|
66 | typedef short INT16;
|
---|
67 | typedef int INT32;
|
---|
68 |
|
---|
69 | typedef unsigned char UINT8;
|
---|
70 | typedef unsigned short UINT16;
|
---|
71 | typedef unsigned int UINT32;
|
---|
72 |
|
---|
73 | typedef unsigned char UCHAR;
|
---|
74 | typedef unsigned short USHORT;
|
---|
75 | typedef unsigned int UINT;
|
---|
76 | typedef unsigned long ULONG;
|
---|
77 |
|
---|
78 | typedef int BOOL;
|
---|
79 | typedef int STATUS;
|
---|
80 | typedef int ARGINT;
|
---|
81 |
|
---|
82 | typedef void VOID;
|
---|
83 |
|
---|
84 | typedef int (*FUNCPTR) (); /* ptr to function returning int */
|
---|
85 | typedef void (*VOIDFUNCPTR) (); /* ptr to function returning void */
|
---|
86 | typedef double (*DBLFUNCPTR) (); /* ptr to function returning double*/
|
---|
87 | typedef float (*FLTFUNCPTR) (); /* ptr to function returning float */
|
---|
88 |
|
---|
89 | /***** function declarations ***********************************************/
|
---|
90 |
|
---|
91 | #if __cplusplus
|
---|
92 | }
|
---|
93 | #endif
|
---|
94 | #endif /* linux_DEFINED */
|
---|