1 /* $NetBSD: types.h,v 1.7 2006/03/05 03:22:20 uwe Exp $ */ 2 3 /* Windows CE architecture */ 4 5 #ifndef _MACHTYPES_H_ 6 #define _MACHTYPES_H_ 7 8 #include <sys/cdefs.h> 9 #include <machine/int_types.h> 10 11 /* BSD types. */ 12 typedef unsigned char u_char; 13 typedef unsigned short u_short; 14 typedef unsigned int u_int; 15 typedef unsigned long u_long; 16 17 /* 7.18.1.1 Exact-width integer types */ 18 typedef signed char int8_t; 19 typedef signed short int16_t; 20 typedef signed int int32_t; 21 typedef signed __int64 int64_t; 22 23 typedef unsigned char uint8_t; 24 typedef unsigned short uint16_t; 25 typedef unsigned int uint32_t; 26 typedef unsigned __int64 uint64_t; 27 28 /* compatibility names */ 29 typedef uint8_t u_int8_t; 30 typedef uint16_t u_int16_t; 31 typedef uint32_t u_int32_t; 32 typedef uint64_t u_int64_t; 33 34 typedef int32_t off_t; 35 #define off_t int32_t 36 #ifndef _TIME_T_DEFINED 37 #if _WIN32_WCE < 210 38 typedef long time_t; 39 #else 40 typedef unsigned long time_t; 41 #endif 42 #define _TIME_T_DEFINED 43 #endif 44 45 typedef unsigned int size_t; 46 47 /* Windows CE virtual address */ 48 typedef uint32_t vaddr_t; 49 typedef uint32_t vsize_t; 50 /* Physical address */ 51 typedef uint32_t paddr_t; 52 typedef uint32_t psize_t; 53 54 /* kernel virtual address */ 55 typedef uint32_t kaddr_t; 56 typedef uint32_t ksize_t; 57 58 #endif /* _MACHTYPES_H_ */ 59