2009-07-07 13:58:51 +00:00
|
|
|
#ifndef _ASM_ARM_UNALIGNED_H
|
|
|
|
#define _ASM_ARM_UNALIGNED_H
|
|
|
|
|
2009-10-29 11:29:37 +00:00
|
|
|
#include <linux/unaligned/le_byteshift.h>
|
|
|
|
#include <linux/unaligned/be_byteshift.h>
|
2009-07-07 13:58:51 +00:00
|
|
|
#include <linux/unaligned/generic.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Select endianness
|
|
|
|
*/
|
2013-12-14 03:47:35 +00:00
|
|
|
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
2009-07-07 13:58:51 +00:00
|
|
|
#define get_unaligned __get_unaligned_le
|
|
|
|
#define put_unaligned __put_unaligned_le
|
|
|
|
#else
|
|
|
|
#define get_unaligned __get_unaligned_be
|
|
|
|
#define put_unaligned __put_unaligned_be
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _ASM_ARM_UNALIGNED_H */
|