1 #ifndef IxOsalOsTypes_H 2 #define IxOsalOsTypes_H 3 4 #include <asm/types.h> 5 6 typedef s64 INT64; 7 typedef u64 UINT64; 8 typedef s32 INT32; 9 typedef u32 UINT32; 10 typedef s16 INT16; 11 typedef u16 UINT16; 12 typedef s8 INT8; 13 typedef u8 UINT8; 14 15 typedef u32 ULONG; 16 typedef u16 USHORT; 17 typedef u8 UCHAR; 18 typedef u32 BOOL; 19 20 #if 0 /* FIXME */ 21 22 /* Default stack limit is 10 KB */ 23 #define IX_OSAL_OS_THREAD_DEFAULT_STACK_SIZE (10240) 24 25 /* Maximum stack limit is 32 MB */ 26 #define IX_OSAL_OS_THREAD_MAX_STACK_SIZE (33554432) /* 32 MBytes */ 27 28 /* Default thread priority */ 29 #define IX_OSAL_OS_DEFAULT_THREAD_PRIORITY (90) 30 31 /* Thread maximum priority (0 - 255). 0 - highest priority */ 32 #define IX_OSAL_OS_MAX_THREAD_PRIORITY (255) 33 34 #endif /* FIXME */ 35 36 #define IX_OSAL_OS_WAIT_FOREVER (-1L) 37 #define IX_OSAL_OS_WAIT_NONE 0 38 39 40 /* Thread handle is eventually an int type */ 41 typedef int IxOsalOsThread; 42 43 /* Semaphore handle FIXME */ 44 typedef int IxOsalOsSemaphore; 45 46 /* Mutex handle */ 47 typedef int IxOsalOsMutex; 48 49 /* 50 * Fast mutex handle - fast mutex operations are implemented in 51 * native assembler code using atomic test-and-set instructions 52 */ 53 typedef int IxOsalOsFastMutex; 54 55 typedef struct 56 { 57 } IxOsalOsMessageQueue; 58 59 60 #endif /* IxOsalOsTypes_H */ 61