xref: /netbsd/sys/arch/hpc/stand/include/machine/types.h (revision bf9ec67e)
1 /*	$NetBSD: types.h,v 1.3 2001/04/30 13:41:33 uch 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 typedef unsigned char		u_int8_t;
18 typedef unsigned short		u_int16_t;
19 typedef unsigned int		u_int32_t;
20 typedef unsigned __int64	u_int64_t;
21 
22 typedef signed char		int8_t;
23 typedef signed short		int16_t;
24 typedef signed int		int32_t;
25 typedef signed __int64		int64_t;
26 
27 typedef u_int32_t		off_t;
28 #define off_t			u_int32_t
29 #ifndef _TIME_T_DEFINED
30 #if _WIN32_WCE < 210
31 typedef long			time_t;
32 #else
33 typedef unsigned long		time_t;
34 #endif
35 #define _TIME_T_DEFINED
36 #endif
37 
38 typedef unsigned int		size_t;
39 
40 /* Windows CE virtual address */
41 typedef u_int32_t		vaddr_t;
42 typedef u_int32_t		vsize_t;
43 /* Physical address */
44 typedef u_int32_t		paddr_t;
45 typedef u_int32_t		psize_t;
46 
47 /* kernel virtual address */
48 typedef u_int32_t		kaddr_t;
49 typedef u_int32_t		ksize_t;
50 
51 #endif /* _MACHTYPES_H_ */
52