[PATCH] hwmon: Inline w83792d register access functions
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-sh64 / types.h
blob8d41db2153b599bcd618a47bff5726bd9d7828bd
1 #ifndef __ASM_SH64_TYPES_H
2 #define __ASM_SH64_TYPES_H
4 /*
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
7 * for more details.
9 * include/asm-sh64/types.h
11 * Copyright (C) 2000, 2001 Paolo Alberelli
15 #ifndef __ASSEMBLY__
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;
36 #endif
38 #endif /* __ASSEMBLY__ */
41 * These aren't exported outside the kernel to avoid name space clashes
43 #ifdef __KERNEL__
45 #ifndef __ASSEMBLY__
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;
63 #else
64 typedef u32 dma_addr_t;
65 #endif
66 typedef u64 dma64_addr_t;
68 #endif /* __ASSEMBLY__ */
70 #define BITS_PER_LONG 32
72 #endif /* __KERNEL__ */
74 #endif /* __ASM_SH64_TYPES_H */