unaligned.h 509 B

123456789101112131415161718192021
  1. #ifndef _ASM_POWERPC_UNALIGNED_H
  2. #define _ASM_POWERPC_UNALIGNED_H
  3. #ifdef __KERNEL__
  4. /*
  5. * The PowerPC can do unaligned accesses itself based on its endian mode.
  6. */
  7. #include <linux/unaligned/access_ok.h>
  8. #include <linux/unaligned/generic.h>
  9. #ifdef __LITTLE_ENDIAN__
  10. #define get_unaligned __get_unaligned_le
  11. #define put_unaligned __put_unaligned_le
  12. #else
  13. #define get_unaligned __get_unaligned_be
  14. #define put_unaligned __put_unaligned_be
  15. #endif
  16. #endif /* __KERNEL__ */
  17. #endif /* _ASM_POWERPC_UNALIGNED_H */