diff options
author | Tom Rini <trini@ti.com> | 2012-09-27 12:06:07 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-27 12:06:07 -0700 |
commit | cec2655c3b3b86f14a6a5c2cbb01833f7e3974be (patch) | |
tree | 8428f50b579b3656fd24056ae3c6304f58aee620 /drivers/net/npe/include/IxOsalOsTypes.h | |
parent | c57b953da923c6402afc1c890c21fdc7d5a2cc4a (diff) | |
parent | ee0f60df0b71092cd632fc6651f4157a2d252598 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'drivers/net/npe/include/IxOsalOsTypes.h')
-rw-r--r-- | drivers/net/npe/include/IxOsalOsTypes.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/drivers/net/npe/include/IxOsalOsTypes.h b/drivers/net/npe/include/IxOsalOsTypes.h new file mode 100644 index 00000000000..272eef185ed --- /dev/null +++ b/drivers/net/npe/include/IxOsalOsTypes.h @@ -0,0 +1,60 @@ +#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; + +#if 0 /* FIXME */ + +/* Default stack limit is 10 KB */ +#define IX_OSAL_OS_THREAD_DEFAULT_STACK_SIZE (10240) + +/* Maximum stack limit is 32 MB */ +#define IX_OSAL_OS_THREAD_MAX_STACK_SIZE (33554432) /* 32 MBytes */ + +/* Default thread priority */ +#define IX_OSAL_OS_DEFAULT_THREAD_PRIORITY (90) + +/* Thread maximum priority (0 - 255). 0 - highest priority */ +#define IX_OSAL_OS_MAX_THREAD_PRIORITY (255) + +#endif /* FIXME */ + +#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 */ |