1 #ifndef __ASM_SH64_TYPES_H
2 #define __ASM_SH64_TYPES_H
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
9 * include/asm-sh64/types.h
11 * Copyright (C) 2000, 2001 Paolo Alberelli
17 typedef unsigned short umode_t;
20 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
21 * header files exported to user space
24 typedef __signed__ char __s8;
25 typedef unsigned char __u8;
27 typedef __signed__ short __s16;
28 typedef unsigned short __u16;
30 typedef __signed__ int __s32;
31 typedef unsigned int __u32;
33 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
34 typedef __signed__ long long __s64;
35 typedef unsigned long long __u64;
38 #endif /* __ASSEMBLY__ */
41 * These aren't exported outside the kernel to avoid name space clashes
47 typedef __signed__ char s8;
48 typedef unsigned char u8;
50 typedef __signed__ short s16;
51 typedef unsigned short u16;
53 typedef __signed__ int s32;
54 typedef unsigned int u32;
56 typedef __signed__ long long s64;
57 typedef unsigned long long u64;
59 /* DMA addresses come in generic and 64-bit flavours. */
61 #ifdef CONFIG_HIGHMEM64G
62 typedef u64 dma_addr_t;
64 typedef u32 dma_addr_t;
66 typedef u64 dma64_addr_t;
68 typedef unsigned int kmem_bufctl_t;
70 #endif /* __ASSEMBLY__ */
72 #define BITS_PER_LONG 32
74 #endif /* __KERNEL__ */
76 #endif /* __ASM_SH64_TYPES_H */