sync hh.org
[hh.org.git] / include / asm-avr32 / types.h
blob3f47db9675afd546d78ec371f1bdc61ddb3120ce
1 /*
2 * Copyright (C) 2004-2006 Atmel Corporation
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8 #ifndef __ASM_AVR32_TYPES_H
9 #define __ASM_AVR32_TYPES_H
11 #ifndef __ASSEMBLY__
13 typedef unsigned short umode_t;
16 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
17 * header files exported to user space
19 typedef __signed__ char __s8;
20 typedef unsigned char __u8;
22 typedef __signed__ short __s16;
23 typedef unsigned short __u16;
25 typedef __signed__ int __s32;
26 typedef unsigned int __u32;
28 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
29 typedef __signed__ long long __s64;
30 typedef unsigned long long __u64;
31 #endif
33 #endif /* __ASSEMBLY__ */
36 * These aren't exported outside the kernel to avoid name space clashes
38 #ifdef __KERNEL__
40 #define BITS_PER_LONG 32
42 #ifndef __ASSEMBLY__
44 typedef signed char s8;
45 typedef unsigned char u8;
47 typedef signed short s16;
48 typedef unsigned short u16;
50 typedef signed int s32;
51 typedef unsigned int u32;
53 typedef signed long long s64;
54 typedef unsigned long long u64;
56 /* Dma addresses are 32-bits wide. */
58 typedef u32 dma_addr_t;
60 #ifdef CONFIG_LBD
61 typedef u64 sector_t;
62 #define HAVE_SECTOR_T
63 #endif
65 #endif /* __ASSEMBLY__ */
67 #endif /* __KERNEL__ */
70 #endif /* __ASM_AVR32_TYPES_H */