linux-bk/include/asm-ppc/types.h
<<
>>
Prefs
   1#ifndef _PPC_TYPES_H
   2#define _PPC_TYPES_H
   3
   4#ifndef __ASSEMBLY__
   5
   6typedef __signed__ char __s8;
   7typedef unsigned char __u8;
   8
   9typedef __signed__ short __s16;
  10typedef unsigned short __u16;
  11
  12typedef __signed__ int __s32;
  13typedef unsigned int __u32;
  14
  15#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  16typedef __signed__ long long __s64;
  17typedef unsigned long long __u64;
  18#endif
  19
  20typedef struct {
  21        __u32 u[4];
  22} __attribute((aligned(16))) __vector128;
  23
  24/*
  25 * XXX allowed outside of __KERNEL__ for now, until glibc gets
  26 * a proper set of asm headers of its own.  -- paulus
  27 */
  28typedef unsigned short umode_t;
  29
  30#endif /* __ASSEMBLY__ */
  31
  32#ifdef __KERNEL__
  33/*
  34 * These aren't exported outside the kernel to avoid name space clashes
  35 */
  36#define BITS_PER_LONG 32
  37
  38#ifndef __ASSEMBLY__
  39
  40typedef signed char s8;
  41typedef unsigned char u8;
  42
  43typedef signed short s16;
  44typedef unsigned short u16;
  45
  46typedef signed int s32;
  47typedef unsigned int u32;
  48
  49typedef signed long long s64;
  50typedef unsigned long long u64;
  51
  52typedef __vector128 vector128;
  53
  54/* DMA addresses are 32-bits wide */
  55typedef u32 dma_addr_t;
  56typedef u64 dma64_addr_t;
  57
  58#ifdef CONFIG_LBD
  59typedef u64 sector_t;
  60#define HAVE_SECTOR_T
  61#endif
  62
  63#endif /* __ASSEMBLY__ */
  64
  65#endif /* __KERNEL__ */
  66
  67#endif
  68
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.