uboot/arch/xtensa/include/asm/types.h
<<
>>
Prefs
   1/*
   2 *  Copyright (C) 1997 Tensilica Inc.
   3 *
   4 * SPDX-License-Identifier:     GPL-2.0+
   5 */
   6
   7#ifndef _XTENSA_TYPES_H
   8#define _XTENSA_TYPES_H
   9
  10typedef unsigned short umode_t;
  11
  12/*
  13 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  14 * header files exported to user space
  15 */
  16
  17typedef __signed__ char __s8;
  18typedef unsigned char __u8;
  19
  20typedef __signed__ short __s16;
  21typedef unsigned short __u16;
  22
  23typedef __signed__ int __s32;
  24typedef unsigned int __u32;
  25
  26#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  27typedef __signed__ long long __s64;
  28typedef unsigned long long __u64;
  29#endif
  30
  31/*
  32 * These aren't exported outside the kernel to avoid name space clashes
  33 */
  34#ifdef __KERNEL__
  35
  36typedef signed char s8;
  37typedef unsigned char u8;
  38
  39typedef signed short s16;
  40typedef unsigned short u16;
  41
  42typedef signed int s32;
  43typedef unsigned int u32;
  44
  45typedef signed long long s64;
  46typedef unsigned long long u64;
  47
  48#define BITS_PER_LONG 32
  49
  50/* Dma addresses are 32-bits wide */
  51
  52typedef u32 dma_addr_t;
  53
  54typedef unsigned long phys_addr_t;
  55typedef unsigned long phys_size_t;
  56
  57
  58#endif /* __KERNEL__ */
  59
  60#endif /* _XTENSA_TYPES_H */
  61