types.h 744 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _ASM_TYPES_H
  2. #define _ASM_TYPES_H
  3. #include <asm-generic/int-ll64.h>
  4. /*
  5. * This file is never included by application software unless
  6. * explicitly requested (e.g., via linux/types.h) in which case the
  7. * application is Linux specific so (user-) name space pollution is
  8. * not a major issue. However, for interoperability, libraries still
  9. * need to be careful to avoid a name clashes.
  10. */
  11. typedef unsigned short umode_t;
  12. /*
  13. * These aren't exported outside the kernel to avoid name space clashes
  14. */
  15. #ifdef __KERNEL__
  16. #define BITS_PER_LONG 32
  17. /* Dma addresses are 32-bits wide. */
  18. typedef u32 dma_addr_t;
  19. typedef unsigned long phys_addr_t;
  20. typedef unsigned long phys_size_t;
  21. #endif /* __KERNEL__ */
  22. #endif /* _ASM_TYPES_H */