linux-bk/include/asm-ia64/types.h
<<
>>
Prefs
   1#ifndef _ASM_IA64_TYPES_H
   2#define _ASM_IA64_TYPES_H
   3
   4/*
   5 * This file is never included by application software unless explicitly requested (e.g.,
   6 * via linux/types.h) in which case the application is Linux specific so (user-) name
   7 * space pollution is not a major issue.  However, for interoperability, libraries still
   8 * need to be careful to avoid a name clashes.
   9 *
  10 * Copyright (C) 1998-2000, 2002 Hewlett-Packard Co
  11 *      David Mosberger-Tang <davidm@hpl.hp.com>
  12 */
  13
  14#ifdef __ASSEMBLY__
  15# define __IA64_UL(x)           (x)
  16# define __IA64_UL_CONST(x)     x
  17
  18# ifdef __KERNEL__
  19#  define BITS_PER_LONG 64
  20# endif
  21
  22#else
  23# define __IA64_UL(x)           ((unsigned long)(x))
  24# define __IA64_UL_CONST(x)     x##UL
  25
  26typedef unsigned int umode_t;
  27
  28/*
  29 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  30 * header files exported to user space
  31 */
  32
  33typedef __signed__ char __s8;
  34typedef unsigned char __u8;
  35
  36typedef __signed__ short __s16;
  37typedef unsigned short __u16;
  38
  39typedef __signed__ int __s32;
  40typedef unsigned int __u32;
  41
  42typedef __signed__ long __s64;
  43typedef unsigned long __u64;
  44
  45/*
  46 * These aren't exported outside the kernel to avoid name space clashes
  47 */
  48# ifdef __KERNEL__
  49
  50typedef __s8 s8;
  51typedef __u8 u8;
  52
  53typedef __s16 s16;
  54typedef __u16 u16;
  55
  56typedef __s32 s32;
  57typedef __u32 u32;
  58
  59typedef __s64 s64;
  60typedef __u64 u64;
  61
  62#define BITS_PER_LONG 64
  63
  64/* DMA addresses are 64-bits wide, in general.  */
  65
  66typedef u64 dma_addr_t;
  67
  68# endif /* __KERNEL__ */
  69#endif /* !__ASSEMBLY__ */
  70
  71#endif /* _ASM_IA64_TYPES_H */
  72
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.