David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 1 | /* MN10300 Basic type definitions |
| 2 | * |
| 3 | * Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd. |
| 4 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public Licence |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the Licence, or (at your option) any later version. |
| 10 | */ |
| 11 | #ifndef _ASM_TYPES_H |
| 12 | #define _ASM_TYPES_H |
| 13 | |
H. Peter Anvin | 8523437 | 2008-04-06 10:35:07 -0700 | [diff] [blame^] | 14 | #include <asm-generic/int-ll64.h> |
| 15 | |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 16 | #ifndef __ASSEMBLY__ |
| 17 | |
| 18 | typedef unsigned short umode_t; |
| 19 | |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 20 | #endif /* __ASSEMBLY__ */ |
| 21 | |
| 22 | /* |
| 23 | * These aren't exported outside the kernel to avoid name space clashes |
| 24 | */ |
| 25 | #ifdef __KERNEL__ |
| 26 | |
| 27 | #define BITS_PER_LONG 32 |
| 28 | |
| 29 | #ifndef __ASSEMBLY__ |
| 30 | |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 31 | /* Dma addresses are 32-bits wide. */ |
| 32 | typedef u32 dma_addr_t; |
| 33 | |
| 34 | #endif /* __ASSEMBLY__ */ |
| 35 | |
| 36 | #endif /* __KERNEL__ */ |
| 37 | |
| 38 | #endif /* _ASM_TYPES_H */ |