unaligned.h 561 B

1234567891011121314151617181920212223242526
  1. #ifndef _ASM_M68K_UNALIGNED_H
  2. #define _ASM_M68K_UNALIGNED_H
  3. #ifdef CONFIG_CPU_HAS_NO_UNALIGNED
  4. #include <linux/unaligned/be_struct.h>
  5. #include <linux/unaligned/le_byteshift.h>
  6. #include <linux/unaligned/generic.h>
  7. #define get_unaligned __get_unaligned_be
  8. #define put_unaligned __put_unaligned_be
  9. #else
  10. /*
  11. * The m68k can do unaligned accesses itself.
  12. */
  13. #include <linux/unaligned/access_ok.h>
  14. #include <linux/unaligned/generic.h>
  15. #define get_unaligned __get_unaligned_be
  16. #define put_unaligned __put_unaligned_be
  17. #endif
  18. #endif /* _ASM_M68K_UNALIGNED_H */