PageRenderTime 23ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/powerpc/include/asm/types.h

https://bitbucket.org/abioy/linux
C Header | 64 lines | 34 code | 13 blank | 17 comment | 2 complexity | 427de60cbed0c971b5c8635dc325a3f1 MD5 | raw file
Possible License(s): CC-BY-SA-3.0, GPL-2.0, LGPL-2.0, AGPL-1.0
  1. #ifndef _ASM_POWERPC_TYPES_H
  2. #define _ASM_POWERPC_TYPES_H
  3. /*
  4. * This is here because we used to use l64 for 64bit powerpc
  5. * and we don't want to impact user mode with our change to ll64
  6. * in the kernel.
  7. */
  8. #if defined(__powerpc64__) && !defined(__KERNEL__)
  9. # include <asm-generic/int-l64.h>
  10. #else
  11. # include <asm-generic/int-ll64.h>
  12. #endif
  13. #ifndef __ASSEMBLY__
  14. /*
  15. * This file is never included by application software unless
  16. * explicitly requested (e.g., via linux/types.h) in which case the
  17. * application is Linux specific so (user-) name space pollution is
  18. * not a major issue. However, for interoperability, libraries still
  19. * need to be careful to avoid a name clashes.
  20. *
  21. * This program is free software; you can redistribute it and/or
  22. * modify it under the terms of the GNU General Public License
  23. * as published by the Free Software Foundation; either version
  24. * 2 of the License, or (at your option) any later version.
  25. */
  26. #ifdef __powerpc64__
  27. typedef unsigned int umode_t;
  28. #else
  29. typedef unsigned short umode_t;
  30. #endif
  31. typedef struct {
  32. __u32 u[4];
  33. } __attribute__((aligned(16))) __vector128;
  34. #endif /* __ASSEMBLY__ */
  35. #ifdef __KERNEL__
  36. #ifndef __ASSEMBLY__
  37. typedef __vector128 vector128;
  38. #if defined(__powerpc64__) || defined(CONFIG_PHYS_64BIT)
  39. typedef u64 dma_addr_t;
  40. #else
  41. typedef u32 dma_addr_t;
  42. #endif
  43. typedef u64 dma64_addr_t;
  44. typedef struct {
  45. unsigned long entry;
  46. unsigned long toc;
  47. unsigned long env;
  48. } func_descr_t;
  49. #endif /* __ASSEMBLY__ */
  50. #endif /* __KERNEL__ */
  51. #endif /* _ASM_POWERPC_TYPES_H */