unaligned.h 633 B

12345678910111213141516171819202122
  1. #ifndef _ASM_AVR32_UNALIGNED_H
  2. #define _ASM_AVR32_UNALIGNED_H
  3. /*
  4. * AVR32 can handle some unaligned accesses, depending on the
  5. * implementation. The AVR32 AP implementation can handle unaligned
  6. * words, but halfwords must be halfword-aligned, and doublewords must
  7. * be word-aligned.
  8. *
  9. * However, swapped word loads must be word-aligned so we can't
  10. * optimize word loads in general.
  11. */
  12. #include <linux/unaligned/be_struct.h>
  13. #include <linux/unaligned/le_byteshift.h>
  14. #include <linux/unaligned/generic.h>
  15. #define get_unaligned __get_unaligned_be
  16. #define put_unaligned __put_unaligned_be
  17. #endif /* _ASM_AVR32_UNALIGNED_H */