]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/blackfin/include/asm/types.h
4 * Copyright (c) 2005-2007 Analog Devices Inc.
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef _BLACKFIN_TYPES_H
10 #define _BLACKFIN_TYPES_H
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.
20 typedef unsigned short umode_t
;
23 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
24 * header files exported to user space
27 typedef __signed__
char __s8
;
28 typedef unsigned char __u8
;
30 typedef __signed__
short __s16
;
31 typedef unsigned short __u16
;
33 typedef __signed__
int __s32
;
34 typedef unsigned int __u32
;
36 /* HK0617 -- Changes to unsigned long temporarily */
38 __extension__
typedef __signed__
long long __s64
;
39 __extension__
typedef unsigned long long __u64
;
43 * These aren't exported outside the kernel to avoid name space clashes
47 typedef signed char s8
;
48 typedef unsigned char u8
;
50 typedef signed short s16
;
51 typedef unsigned short u16
;
53 typedef signed int s32
;
54 typedef unsigned int u32
;
56 typedef signed long long s64
;
57 typedef unsigned long long u64
;
59 #define BITS_PER_LONG 32
61 /* Dma addresses are 32-bits wide. */
63 typedef u32 dma_addr_t
;
65 typedef unsigned long phys_addr_t
;
66 typedef unsigned long phys_size_t
;