~ubuntu-branches/ubuntu/maverick/u-boot-omap3/maverick

« back to all changes in this revision

Viewing changes to include/asm-m68k/types.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2010-03-22 15:06:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100322150623-i21g8rgiyl5dohag
Tags: upstream-2010.3git20100315
ImportĀ upstreamĀ versionĀ 2010.3git20100315

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _M68K_TYPES_H
 
2
#define _M68K_TYPES_H
 
3
 
 
4
#ifndef __ASSEMBLY__
 
5
 
 
6
typedef unsigned short umode_t;
 
7
 
 
8
typedef __signed__ char __s8;
 
9
typedef unsigned char __u8;
 
10
 
 
11
typedef __signed__ short __s16;
 
12
typedef unsigned short __u16;
 
13
 
 
14
typedef __signed__ int __s32;
 
15
typedef unsigned int __u32;
 
16
 
 
17
#if defined(__GNUC__)
 
18
__extension__ typedef __signed__ long long __s64;
 
19
__extension__ typedef unsigned long long __u64;
 
20
#endif
 
21
 
 
22
typedef struct {
 
23
        __u32 u[4];
 
24
} __attribute__((aligned(16))) vector128;
 
25
 
 
26
#ifdef __KERNEL__
 
27
/*
 
28
 * These aren't exported outside the kernel to avoid name space clashes
 
29
 */
 
30
typedef signed char s8;
 
31
typedef unsigned char u8;
 
32
 
 
33
typedef signed short s16;
 
34
typedef unsigned short u16;
 
35
 
 
36
typedef signed int s32;
 
37
typedef unsigned int u32;
 
38
 
 
39
typedef signed long long s64;
 
40
typedef unsigned long long u64;
 
41
 
 
42
#define BITS_PER_LONG 32
 
43
 
 
44
/* DMA addresses are 32-bits wide */
 
45
typedef u32 dma_addr_t;
 
46
 
 
47
typedef unsigned long phys_addr_t;
 
48
typedef unsigned long phys_size_t;
 
49
 
 
50
#endif /* __KERNEL__ */
 
51
#endif /* __ASSEMBLY__ */
 
52
 
 
53
#endif