summaryrefslogtreecommitdiffstats
path: root/cpu/ixp/npe/include/IxOsalOsTypes.h
blob: 6e652411f55a3306a32ad775cfe30b0eb221215e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef IxOsalOsTypes_H
#define IxOsalOsTypes_H

#include <asm/types.h>

typedef s64 INT64;
typedef u64 UINT64;
typedef s32 INT32;
typedef u32 UINT32;
typedef s16 INT16;
typedef u16 UINT16;
typedef s8 INT8;
typedef u8 UINT8;

typedef u32 ULONG;
typedef u16 USHORT;
typedef u8 UCHAR;
typedef u32 BOOL;


#define IX_OSAL_OS_WAIT_FOREVER (-1L)
#define IX_OSAL_OS_WAIT_NONE	0


/* Thread handle is eventually an int type */
typedef int IxOsalOsThread;

/* Semaphore handle FIXME */
typedef int IxOsalOsSemaphore;

/* Mutex handle */
typedef int IxOsalOsMutex;

/*
 * Fast mutex handle - fast mutex operations are implemented in
 * native assembler code using atomic test-and-set instructions
 */
typedef int IxOsalOsFastMutex;

typedef struct
{
} IxOsalOsMessageQueue;


#endif /* IxOsalOsTypes_H */