]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/blackfin/include/asm/types.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / blackfin / include / asm / types.h
CommitLineData
6cb142fa
WD
1/*
2 * U-boot - types.h
3 *
155fd766 4 * Copyright (c) 2005-2007 Analog Devices Inc.
6cb142fa 5 *
1a459660 6 * SPDX-License-Identifier: GPL-2.0+
6cb142fa
WD
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
20typedef 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
27typedef __signed__ char __s8;
28typedef unsigned char __u8;
29
30typedef __signed__ short __s16;
31typedef unsigned short __u16;
32
33typedef __signed__ int __s32;
34typedef unsigned int __u32;
35
36/* HK0617 -- Changes to unsigned long temporarily */
b075d74e
SK
37#if defined(__GNUC__)
38__extension__ typedef __signed__ long long __s64;
39__extension__ typedef unsigned long long __u64;
6cb142fa
WD
40#endif
41
42/*
43 * These aren't exported outside the kernel to avoid name space clashes
44 */
45#ifdef __KERNEL__
46
47typedef signed char s8;
48typedef unsigned char u8;
49
50typedef signed short s16;
51typedef unsigned short u16;
52
53typedef signed int s32;
54typedef unsigned int u32;
55
56typedef signed long long s64;
57typedef unsigned long long u64;
58
59#define BITS_PER_LONG 32
60
61/* Dma addresses are 32-bits wide. */
62
63typedef u32 dma_addr_t;
64
e99ccb48
KG
65typedef unsigned long phys_addr_t;
66typedef unsigned long phys_size_t;
67
6cb142fa
WD
68#endif
69
70#endif