types.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  4. */
  5. #ifndef __ASM_ARC_TYPES_H
  6. #define __ASM_ARC_TYPES_H
  7. typedef unsigned short umode_t;
  8. /*
  9. * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
  10. * header files exported to user space
  11. */
  12. typedef __signed__ char __s8;
  13. typedef unsigned char __u8;
  14. typedef __signed__ short __s16;
  15. typedef unsigned short __u16;
  16. typedef __signed__ int __s32;
  17. typedef unsigned int __u32;
  18. #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
  19. typedef __signed__ long long __s64;
  20. typedef unsigned long long __u64;
  21. #endif
  22. /*
  23. * These aren't exported outside the kernel to avoid name space clashes
  24. */
  25. typedef signed char s8;
  26. typedef unsigned char u8;
  27. typedef signed short s16;
  28. typedef unsigned short u16;
  29. typedef signed int s32;
  30. typedef unsigned int u32;
  31. typedef signed long long s64;
  32. typedef unsigned long long u64;
  33. #define BITS_PER_LONG 32
  34. /* Dma addresses are 32-bits wide. */
  35. typedef u32 dma_addr_t;
  36. typedef unsigned long phys_addr_t;
  37. typedef unsigned long phys_size_t;
  38. #endif /* __ASM_ARC_TYPES_H */