]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/riscv/include/asm/types.h
2 * Copyright (C) 2011 Andes Technology Corporation
3 * Copyright (C) 2010 Shawn Lin (nobuhiro@andestech.com)
4 * Copyright (C) 2011 Macpaul Lin (macpaul@andestech.com)
5 * Copyright (C) 2017 Rick Chen (rick@andestech.com)
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
12 #ifndef __ASM_RISCV_TYPES_H
13 #define __ASM_RISCV_TYPES_H
15 typedef unsigned short umode_t
;
18 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
19 * header files exported to user space
22 typedef __signed__
char __s8
;
23 typedef unsigned char __u8
;
25 typedef __signed__
short __s16
;
26 typedef unsigned short __u16
;
28 typedef __signed__
int __s32
;
29 typedef unsigned int __u32
;
31 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
32 typedef __signed__
long long __s64
;
33 typedef unsigned long long __u64
;
37 * These aren't exported outside the kernel to avoid name space clashes
41 typedef signed char s8
;
42 typedef unsigned char u8
;
44 typedef signed short s16
;
45 typedef unsigned short u16
;
47 typedef signed int s32
;
48 typedef unsigned int u32
;
50 typedef signed long long s64
;
51 typedef unsigned long long u64
;
53 #define BITS_PER_LONG 32
57 typedef u32 dma_addr_t
;
59 typedef unsigned long phys_addr_t
;
60 typedef unsigned long phys_size_t
;
62 #endif /* __KERNEL__ */