linux-bk/include/asm-s390x/types.h
<<
>>
Prefs
   1/*
   2 *  include/asm-s390/types.h
   3 *
   4 *  S390 version
   5 *
   6 *  Derived from "include/asm-i386/types.h"
   7 */
   8
   9#ifndef _S390_TYPES_H
  10#define _S390_TYPES_H
  11
  12#ifndef __ASSEMBLY__
  13
  14typedef unsigned short umode_t;
  15
  16/*
  17 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  18 * header files exported to user space
  19 */
  20
  21typedef __signed__ char __s8;
  22typedef unsigned char __u8;
  23
  24typedef __signed__ short __s16;
  25typedef unsigned short __u16;
  26
  27typedef __signed__ int __s32;
  28typedef unsigned int __u32;
  29
  30typedef __signed__ long __s64;
  31typedef unsigned long __u64;
  32
  33/* 
  34 * A address type so that arithmetic can be done on it & it can be upgraded to
  35 * 64 bit when neccessary 
  36 */
  37
  38typedef unsigned long  addr_t; 
  39typedef signed long  saddr_t;
  40
  41#endif /* __ASSEMBLY__ */
  42
  43/*
  44 * These aren't exported outside the kernel to avoid name space clashes
  45 */
  46#ifdef __KERNEL__
  47
  48#define BITS_PER_LONG 64
  49
  50#ifndef __ASSEMBLY__
  51
  52typedef signed char s8;
  53typedef unsigned char u8;
  54
  55typedef signed short s16;
  56typedef unsigned short u16;
  57
  58typedef signed int s32;
  59typedef unsigned int u32;
  60
  61typedef signed long s64;
  62typedef unsigned  long u64;
  63
  64typedef u32 dma_addr_t;
  65
  66#endif /* __ASSEMBLY__ */
  67
  68#endif                                 /* __KERNEL__                       */
  69#endif
  70
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.