uboot/arch/avr32/include/asm/types.h
<<
>>
Prefs
   1/*
   2 * Copyright (C) 2006 Atmel Corporation
   3 *
   4 * SPDX-License-Identifier:     GPL-2.0+
   5 */
   6#ifndef __ASM_AVR32_TYPES_H
   7#define __ASM_AVR32_TYPES_H
   8
   9#ifndef __ASSEMBLY__
  10
  11typedef unsigned short umode_t;
  12
  13/*
  14 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  15 * header files exported to user space
  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__)
  27__extension__ typedef __signed__ long long __s64;
  28__extension__ typedef unsigned long long __u64;
  29#endif
  30
  31#endif /* __ASSEMBLY__ */
  32
  33/*
  34 * These aren't exported outside the kernel to avoid name space clashes
  35 */
  36#ifdef __KERNEL__
  37
  38#define BITS_PER_LONG 32
  39
  40#ifndef __ASSEMBLY__
  41
  42typedef __signed__ char s8;
  43typedef unsigned char u8;
  44
  45typedef __signed__ short s16;
  46typedef unsigned short u16;
  47
  48typedef __signed__ int s32;
  49typedef unsigned int u32;
  50
  51typedef __signed__ long long s64;
  52typedef unsigned long long u64;
  53
  54/* Dma addresses are 32-bits wide.  */
  55
  56typedef u32 dma_addr_t;
  57
  58typedef unsigned long phys_addr_t;
  59typedef unsigned long phys_size_t;
  60
  61#ifdef CONFIG_LBD
  62typedef u64 sector_t;
  63#define HAVE_SECTOR_T
  64#endif
  65
  66#endif /* __ASSEMBLY__ */
  67
  68#endif /* __KERNEL__ */
  69
  70
  71#endif /* __ASM_AVR32_TYPES_H */
  72