unaligned.h 633 字节
Newer Older
1 2
#ifndef _ASM_AVR32_UNALIGNED_H
#define _ASM_AVR32_UNALIGNED_H
H
Haavard Skinnemoen 已提交
3 4 5 6 7 8

/*
 * AVR32 can handle some unaligned accesses, depending on the
 * implementation.  The AVR32 AP implementation can handle unaligned
 * words, but halfwords must be halfword-aligned, and doublewords must
 * be word-aligned.
9 10 11
 *
 * However, swapped word loads must be word-aligned so we can't
 * optimize word loads in general.
H
Haavard Skinnemoen 已提交
12 13
 */

14 15 16
#include <linux/unaligned/be_struct.h>
#include <linux/unaligned/le_byteshift.h>
#include <linux/unaligned/generic.h>
H
Haavard Skinnemoen 已提交
17

18 19 20 21
#define get_unaligned	__get_unaligned_be
#define put_unaligned	__put_unaligned_be

#endif /* _ASM_AVR32_UNALIGNED_H */