blob: 12875190b156647b430033ff61b7894b14e3f53b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _H8300_TYPES_H
2#define _H8300_TYPES_H
3
H. Peter Anvin86153152008-04-06 10:35:04 -07004#include <asm-generic/int-ll64.h>
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#if !defined(__ASSEMBLY__)
7
8/*
9 * This file is never included by application software unless
10 * explicitly requested (e.g., via linux/types.h) in which case the
11 * application is Linux specific so (user-) name space pollution is
12 * not a major issue. However, for interoperability, libraries still
13 * need to be careful to avoid a name clashes.
14 */
15
16typedef unsigned short umode_t;
17
18/*
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 * These aren't exported outside the kernel to avoid name space clashes
20 */
21#ifdef __KERNEL__
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#define BITS_PER_LONG 32
24
25/* Dma addresses are 32-bits wide. */
26
27typedef u32 dma_addr_t;
28
Linus Torvalds1da177e2005-04-16 15:20:36 -070029#endif /* __KERNEL__ */
30
31#endif /* __ASSEMBLY__ */
32
33#endif /* _H8300_TYPES_H */