blob: 041877290470f18b3867234e9ff3459d97df8d28 [file] [log] [blame]
Harvey Harrison6510d412008-04-29 01:03:30 -07001#ifndef _ASM_AVR32_UNALIGNED_H
2#define _ASM_AVR32_UNALIGNED_H
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -07003
4/*
5 * AVR32 can handle some unaligned accesses, depending on the
6 * implementation. The AVR32 AP implementation can handle unaligned
7 * words, but halfwords must be halfword-aligned, and doublewords must
8 * be word-aligned.
Haavard Skinnemoene122eaf2007-06-20 15:29:15 +02009 *
10 * However, swapped word loads must be word-aligned so we can't
11 * optimize word loads in general.
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070012 */
13
Harvey Harrison6510d412008-04-29 01:03:30 -070014#include <linux/unaligned/be_struct.h>
15#include <linux/unaligned/le_byteshift.h>
16#include <linux/unaligned/generic.h>
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070017
Harvey Harrison6510d412008-04-29 01:03:30 -070018#define get_unaligned __get_unaligned_be
19#define put_unaligned __put_unaligned_be
20
21#endif /* _ASM_AVR32_UNALIGNED_H */