~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to xen/include/asm-i386/types.h

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _I386_TYPES_H
2
 
#define _I386_TYPES_H
3
 
 
4
 
typedef 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
 
 
11
 
typedef __signed__ char __s8;
12
 
typedef unsigned char __u8;
13
 
 
14
 
typedef __signed__ short __s16;
15
 
typedef unsigned short __u16;
16
 
 
17
 
typedef __signed__ int __s32;
18
 
typedef unsigned int __u32;
19
 
 
20
 
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
21
 
typedef __signed__ long long __s64;
22
 
typedef unsigned long long __u64;
23
 
#endif
24
 
 
25
 
#include <xeno/config.h>
26
 
 
27
 
typedef signed char s8;
28
 
typedef unsigned char u8;
29
 
 
30
 
typedef signed short s16;
31
 
typedef unsigned short u16;
32
 
 
33
 
typedef signed int s32;
34
 
typedef unsigned int u32;
35
 
 
36
 
typedef signed long long s64;
37
 
typedef unsigned long long u64;
38
 
 
39
 
#define BITS_PER_LONG 32
40
 
 
41
 
/* DMA addresses come in generic and 64-bit flavours.  */
42
 
 
43
 
#ifdef CONFIG_HIGHMEM
44
 
typedef u64 dma_addr_t;
45
 
#else
46
 
typedef u32 dma_addr_t;
47
 
#endif
48
 
typedef u64 dma64_addr_t;
49
 
 
50
 
#endif