types.h 827 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * include/asm-xtensa/types.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 2001 - 2005 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_TYPES_H
  11. #define _XTENSA_TYPES_H
  12. #include <asm-generic/int-ll64.h>
  13. #ifdef __ASSEMBLY__
  14. # define __XTENSA_UL(x) (x)
  15. # define __XTENSA_UL_CONST(x) x
  16. #else
  17. # define __XTENSA_UL(x) ((unsigned long)(x))
  18. # define __XTENSA_UL_CONST(x) x##UL
  19. #endif
  20. #ifndef __ASSEMBLY__
  21. typedef unsigned short umode_t;
  22. /*
  23. * These aren't exported outside the kernel to avoid name space clashes
  24. */
  25. #ifdef __KERNEL__
  26. #define BITS_PER_LONG 32
  27. /* Dma addresses are 32-bits wide. */
  28. typedef u32 dma_addr_t;
  29. #endif /* __KERNEL__ */
  30. #endif
  31. #endif /* _XTENSA_TYPES_H */