]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/sandbox/include/asm/types.h
2 * Copyright (c) 2011 The Chromium OS Authors.
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __ASM_SANDBOX_TYPES_H
8 #define __ASM_SANDBOX_TYPES_H
10 typedef unsigned short umode_t
;
13 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
14 * header files exported to user space
17 typedef __signed__
char __s8
;
18 typedef unsigned char __u8
;
20 typedef __signed__
short __s16
;
21 typedef unsigned short __u16
;
23 typedef __signed__
int __s32
;
24 typedef unsigned int __u32
;
27 __extension__
typedef __signed__
long long __s64
;
28 __extension__
typedef unsigned long long __u64
;
32 * These aren't exported outside the kernel to avoid name space clashes
36 typedef signed char s8
;
37 typedef unsigned char u8
;
39 typedef signed short s16
;
40 typedef unsigned short u16
;
42 typedef signed int s32
;
43 typedef unsigned int u32
;
45 #if !defined(CONFIG_USE_STDINT) || !defined(__INT64_TYPE__)
46 typedef signed long long s64
;
47 typedef unsigned long long u64
;
49 typedef __INT64_TYPE__ s64
;
50 typedef __UINT64_TYPE__ u64
;
54 * Number of bits in a C 'long' on this architecture.
57 #define BITS_PER_LONG 64
58 #else /* CONFIG_PHYS64 */
59 #define BITS_PER_LONG 32
60 #endif /* CONFIG_PHYS64 */
63 typedef unsigned long long dma_addr_t
;
64 typedef u64 phys_addr_t
;
65 typedef u64 phys_size_t
;
66 #else /* CONFIG_PHYS64 */
67 typedef unsigned long dma_addr_t
;
68 typedef u32 phys_addr_t
;
69 typedef u32 phys_size_t
;
70 #endif /* CONFIG_PHYS64 */
72 #endif /* __KERNEL__ */