]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/powerpc/include/asm/types.h
Move arch/ppc to arch/powerpc
[people/ms/u-boot.git] / arch / powerpc / include / asm / types.h
CommitLineData
b15cbc0b
WD
1#ifndef _PPC_TYPES_H
2#define _PPC_TYPES_H
3
4#ifndef __ASSEMBLY__
5
6typedef unsigned short umode_t;
7
8typedef __signed__ char __s8;
9typedef unsigned char __u8;
10
11typedef __signed__ short __s16;
12typedef unsigned short __u16;
13
14typedef __signed__ int __s32;
15typedef unsigned int __u32;
16
b075d74e
SK
17#if defined(__GNUC__)
18__extension__ typedef __signed__ long long __s64;
19__extension__ typedef unsigned long long __u64;
b15cbc0b
WD
20#endif
21
22typedef struct {
23 __u32 u[4];
f9a109b3 24} __attribute__((aligned(16))) vector128;
b15cbc0b
WD
25
26#ifdef __KERNEL__
27/*
28 * These aren't exported outside the kernel to avoid name space clashes
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
39typedef signed long long s64;
40typedef unsigned long long u64;
41
42#define BITS_PER_LONG 32
43
44/* DMA addresses are 32-bits wide */
45typedef u32 dma_addr_t;
46
e99ccb48
KG
47#ifdef CONFIG_PHYS_64BIT
48typedef unsigned long long phys_addr_t;
49typedef unsigned long long phys_size_t;
50#else
51typedef unsigned long phys_addr_t;
52typedef unsigned long phys_size_t;
53#endif
54
b15cbc0b
WD
55#endif /* __KERNEL__ */
56#endif /* __ASSEMBLY__ */
57
58#endif