2 * Copyright (C) 2006 Atmel Corporation
4 * See file CREDITS for list of people who contributed to this
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 #ifndef __ASM_AVR32_TYPES_H
23 #define __ASM_AVR32_TYPES_H
27 typedef unsigned short umode_t;
30 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
31 * header files exported to user space
33 typedef __signed__ char __s8;
34 typedef unsigned char __u8;
36 typedef __signed__ short __s16;
37 typedef unsigned short __u16;
39 typedef __signed__ int __s32;
40 typedef unsigned int __u32;
43 __extension__ typedef __signed__ long long __s64;
44 __extension__ typedef unsigned long long __u64;
47 #endif /* __ASSEMBLY__ */
50 * These aren't exported outside the kernel to avoid name space clashes
54 #define BITS_PER_LONG 32
58 typedef __signed__ char s8;
59 typedef unsigned char u8;
61 typedef __signed__ short s16;
62 typedef unsigned short u16;
64 typedef __signed__ int s32;
65 typedef unsigned int u32;
67 typedef __signed__ long long s64;
68 typedef unsigned long long u64;
70 /* Dma addresses are 32-bits wide. */
72 typedef u32 dma_addr_t;
74 typedef unsigned long phys_addr_t;
75 typedef unsigned long phys_size_t;
82 #endif /* __ASSEMBLY__ */
84 #endif /* __KERNEL__ */
87 #endif /* __ASM_AVR32_TYPES_H */