blob: 613bf1e962f07b08fdef6b512b0cfd87da468791 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* types.h: FRV types
2 *
3 * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 */
11
12#ifndef _ASM_TYPES_H
13#define _ASM_TYPES_H
14
H. Peter Anvin8f337b52008-04-06 10:35:03 -070015#include <asm-generic/int-ll64.h>
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#ifndef __ASSEMBLY__
18
19typedef unsigned short umode_t;
20
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#endif /* __ASSEMBLY__ */
22
23/*
24 * These aren't exported outside the kernel to avoid name space clashes
25 */
26#ifdef __KERNEL__
27
28#define BITS_PER_LONG 32
29
30#ifndef __ASSEMBLY__
31
Linus Torvalds1da177e2005-04-16 15:20:36 -070032/* Dma addresses are 32-bits wide. */
33
34typedef u32 dma_addr_t;
35
Linus Torvalds1da177e2005-04-16 15:20:36 -070036#endif /* __ASSEMBLY__ */
37
38#endif /* __KERNEL__ */
39
40#endif /* _ASM_TYPES_H */