]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/x86/include/asm/types.h
Provide option to avoid defining a custom version of uintptr_t.
[people/ms/u-boot.git] / arch / x86 / include / asm / types.h
CommitLineData
2262cfee
WD
1#ifndef __ASM_I386_TYPES_H
2#define __ASM_I386_TYPES_H
3
4typedef unsigned short umode_t;
5
6/*
7 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
8 * header files exported to user space
9 */
10
11typedef __signed__ char __s8;
12typedef unsigned char __u8;
13
14typedef __signed__ short __s16;
15typedef unsigned short __u16;
16
17typedef __signed__ int __s32;
18typedef unsigned int __u32;
19
f8fa6368
SK
20#if defined(__GNUC__)
21__extension__ typedef __signed__ long long __s64;
22__extension__ typedef unsigned long long __u64;
2262cfee
WD
23#endif
24
25/*
26 * These aren't exported outside the kernel to avoid name space clashes
27 */
28#ifdef __KERNEL__
29
30typedef signed char s8;
31typedef unsigned char u8;
32
33typedef signed short s16;
34typedef unsigned short u16;
35
36typedef signed int s32;
37typedef unsigned int u32;
38
0d296cc2 39#if !defined(CONFIG_USE_STDINT) || !defined(__INT64_TYPE__)
2262cfee
WD
40typedef signed long long s64;
41typedef unsigned long long u64;
0d296cc2
GB
42#else
43typedef __INT64_TYPE__ s64;
44typedef __UINT64_TYPE__ u64;
45#endif
2262cfee
WD
46
47#define BITS_PER_LONG 32
48
49/* Dma addresses are 32-bits wide. */
50
51typedef u32 dma_addr_t;
52
ec516c48
GB
53typedef unsigned long long phys_addr_t;
54typedef unsigned long long phys_size_t;
e99ccb48 55
2262cfee
WD
56#endif /* __KERNEL__ */
57
58#endif