Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2004-2006 Atmel Corporation |
| 3 | * |
| 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 |
| 10 | |
H. Peter Anvin | 63eae0c | 2008-04-06 10:35:01 -0700 | [diff] [blame] | 11 | #include <asm-generic/int-ll64.h> |
| 12 | |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 13 | #ifndef __ASSEMBLY__ |
| 14 | |
| 15 | typedef unsigned short umode_t; |
| 16 | |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 17 | #endif /* __ASSEMBLY__ */ |
| 18 | |
| 19 | /* |
| 20 | * These aren't exported outside the kernel to avoid name space clashes |
| 21 | */ |
| 22 | #ifdef __KERNEL__ |
| 23 | |
| 24 | #define BITS_PER_LONG 32 |
| 25 | |
| 26 | #ifndef __ASSEMBLY__ |
| 27 | |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 28 | /* Dma addresses are 32-bits wide. */ |
| 29 | |
| 30 | typedef u32 dma_addr_t; |
| 31 | |
Haavard Skinnemoen | 5f97f7f | 2006-09-25 23:32:13 -0700 | [diff] [blame] | 32 | #endif /* __ASSEMBLY__ */ |
| 33 | |
| 34 | #endif /* __KERNEL__ */ |
| 35 | |
| 36 | |
| 37 | #endif /* __ASM_AVR32_TYPES_H */ |