linux-bk/include/asm-mips/types.h
<<
>>
Prefs
   1/* $Id: types.h,v 1.3 1999/08/18 23:37:50 ralf Exp $
   2 *
   3 * This file is subject to the terms and conditions of the GNU General Public
   4 * License.  See the file "COPYING" in the main directory of this archive
   5 * for more details.
   6 *
   7 * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle
   8 * Copyright (C) 1999 Silicon Graphics, Inc.
   9 */
  10#ifndef _ASM_TYPES_H
  11#define _ASM_TYPES_H
  12
  13#ifndef __ASSEMBLY__
  14
  15typedef unsigned short umode_t;
  16
  17/*
  18 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  19 * header files exported to user space
  20 */
  21
  22typedef __signed__ char __s8;
  23typedef unsigned char __u8;
  24
  25typedef __signed__ short __s16;
  26typedef unsigned short __u16;
  27
  28typedef __signed__ int __s32;
  29typedef unsigned int __u32;
  30
  31#if (_MIPS_SZLONG == 64)
  32
  33typedef __signed__ long __s64;
  34typedef unsigned long __u64;
  35
  36#else
  37 
  38#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  39typedef __signed__ long long __s64;
  40typedef unsigned long long __u64;
  41#endif
  42 
  43#endif
  44
  45#endif /* __ASSEMBLY__ */
  46
  47/*
  48 * These aren't exported outside the kernel to avoid name space clashes
  49 */
  50#ifdef __KERNEL__
  51
  52#define BITS_PER_LONG _MIPS_SZLONG
  53
  54#ifndef __ASSEMBLY__
  55
  56typedef __signed char s8;
  57typedef unsigned char u8;
  58
  59typedef __signed short s16;
  60typedef unsigned short u16;
  61
  62typedef __signed int s32;
  63typedef unsigned int u32;
  64
  65#if (_MIPS_SZLONG == 64)
  66
  67typedef __signed__ long s64;
  68typedef unsigned long u64;
  69
  70#else
  71
  72#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  73typedef __signed__ long long s64;
  74typedef unsigned long long u64;
  75#endif
  76
  77#endif
  78
  79typedef unsigned long dma_addr_t;
  80
  81#endif /* __ASSEMBLY__ */
  82
  83#endif /* __KERNEL__ */
  84
  85#endif /* _ASM_TYPES_H */
  86
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.