]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/blackfin/include/asm/types.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / blackfin / include / asm / types.h
1 /*
2  * U-boot - types.h
3  *
4  * Copyright (c) 2005-2007 Analog Devices Inc.
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #ifndef _BLACKFIN_TYPES_H
10 #define _BLACKFIN_TYPES_H
11
12 /*
13  * This file is never included by application software unless
14  * explicitly requested (e.g., via linux/types.h) in which case the
15  * application is Linux specific so (user-) name space pollution is
16  * not a major issue.  However, for interoperability, libraries still
17  * need to be careful to avoid a name clashes.
18  */
19
20 typedef unsigned short umode_t;
21
22 /*
23  * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
24  * header files exported to user space
25  */
26
27 typedef __signed__ char __s8;
28 typedef unsigned char __u8;
29
30 typedef __signed__ short __s16;
31 typedef unsigned short __u16;
32
33 typedef __signed__ int __s32;
34 typedef unsigned int __u32;
35
36 /* HK0617   -- Changes to unsigned long temporarily */
37 #if defined(__GNUC__)
38 __extension__ typedef __signed__ long long __s64;
39 __extension__ typedef unsigned long long __u64;
40 #endif
41
42 /*
43  * These aren't exported outside the kernel to avoid name space clashes
44  */
45 #ifdef __KERNEL__
46
47 typedef signed char s8;
48 typedef unsigned char u8;
49
50 typedef signed short s16;
51 typedef unsigned short u16;
52
53 typedef signed int s32;
54 typedef unsigned int u32;
55
56 typedef signed long long s64;
57 typedef unsigned long long u64;
58
59 #define BITS_PER_LONG 32
60
61 /* Dma addresses are 32-bits wide. */
62
63 typedef u32 dma_addr_t;
64
65 typedef unsigned long phys_addr_t;
66 typedef unsigned long phys_size_t;
67
68 #endif
69
70 #endif