sched: make early bootup sched_clock() use safer
[wrt350n-kernel.git] / include / asm-mn10300 / types.h
blobd40ea7628bfc936d3400a93dc2e0025d141920c0
1 /* MN10300 Basic type definitions
3 * Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.
4 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
11 #ifndef _ASM_TYPES_H
12 #define _ASM_TYPES_H
14 #ifndef __ASSEMBLY__
16 typedef unsigned short umode_t;
19 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
20 * header files exported to user space
23 typedef __signed__ char __s8;
24 typedef unsigned char __u8;
26 typedef __signed__ short __s16;
27 typedef unsigned short __u16;
29 typedef __signed__ int __s32;
30 typedef unsigned int __u32;
32 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
33 typedef __signed__ long long __s64;
34 typedef unsigned long long __u64;
35 #endif
37 #endif /* __ASSEMBLY__ */
40 * These aren't exported outside the kernel to avoid name space clashes
42 #ifdef __KERNEL__
44 #define BITS_PER_LONG 32
46 #ifndef __ASSEMBLY__
48 typedef signed char s8;
49 typedef unsigned char u8;
51 typedef signed short s16;
52 typedef unsigned short u16;
54 typedef signed int s32;
55 typedef unsigned int u32;
57 typedef signed long long s64;
58 typedef unsigned long long u64;
60 /* Dma addresses are 32-bits wide. */
61 typedef u32 dma_addr_t;
63 #endif /* __ASSEMBLY__ */
65 #endif /* __KERNEL__ */
67 #endif /* _ASM_TYPES_H */