unaligned.h 565 字节
Newer Older
1 2
#ifndef _ASM_M68KNOMMU_UNALIGNED_H
#define _ASM_M68KNOMMU_UNALIGNED_H
L
Linus Torvalds 已提交
3 4 5


#ifdef CONFIG_COLDFIRE
6 7 8
#include <linux/unaligned/be_struct.h>
#include <linux/unaligned/le_byteshift.h>
#include <linux/unaligned/generic.h>
L
Linus Torvalds 已提交
9

10 11
#define get_unaligned	__get_unaligned_be
#define put_unaligned	__put_unaligned_be
L
Linus Torvalds 已提交
12 13 14 15 16

#else
/*
 * The m68k can do unaligned accesses itself. 
 */
17 18
#include <linux/unaligned/access_ok.h>
#include <linux/unaligned/generic.h>
L
Linus Torvalds 已提交
19

20 21
#define get_unaligned	__get_unaligned_be
#define put_unaligned	__put_unaligned_be
L
Linus Torvalds 已提交
22 23 24

#endif

25
#endif /* _ASM_M68KNOMMU_UNALIGNED_H */