uboot/arch/blackfin/include/asm/types.h
<<
>>
Prefs
   1/*
   2 * U-Boot - types.h
   3 *
   4 * Copyright (c) 2005-2007 Analog Devices Inc.
   5 *
   6 * SPDX-License-Identifier:     GPL-2.0+
   7 */
   8
   9#ifndef _BLACKFIN_TYPES_H
  10#define _BLACKFIN_TYPES_H
  11
  12/*
  13 * This file is never included by application software unless
  14 * explicitly requested (e.g., via linux/types.h) in which case the
  15 * application is Linux specific so (user-) name space pollution is
  16 * not a major issue.  However, for interoperability, libraries still
  17 * need to be careful to avoid a name clashes.
  18 */
  19
  20typedef unsigned short umode_t;
  21
  22/*
  23 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  24 * header files exported to user space
  25 */
  26
  27typedef __signed__ char __s8;
  28typedef unsigned char __u8;
  29
  30typedef __signed__ short __s16;
  31typedef unsigned short __u16;
  32
  33typedef __signed__ int __s32;
  34typedef unsigned int __u32;
  35
  36/* HK0617   -- Changes to unsigned long temporarily */
  37#if defined(__GNUC__)
  38__extension__ typedef __signed__ long long __s64;
  39__extension__ typedef unsigned long long __u64;
  40#endif
  41
  42/*
  43 * These aren't exported outside the kernel to avoid name space clashes
  44 */
  45#ifdef __KERNEL__
  46
  47typedef signed char s8;
  48typedef unsigned char u8;
  49
  50typedef signed short s16;
  51typedef unsigned short u16;
  52
  53typedef signed int s32;
  54typedef unsigned int u32;
  55
  56typedef signed long long s64;
  57typedef unsigned long long u64;
  58
  59#define BITS_PER_LONG 32
  60
  61/* Dma addresses are 32-bits wide. */
  62
  63typedef u32 dma_addr_t;
  64
  65typedef unsigned long phys_addr_t;
  66typedef unsigned long phys_size_t;
  67
  68#endif
  69
  70#endif
  71