xref: /kernel/linux/linux-5.10/arch/m68k/include/asm/unaligned.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/m68k/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_M68K_UNALIGNED_H
38c2ecf20Sopenharmony_ci#define _ASM_M68K_UNALIGNED_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifdef CONFIG_CPU_HAS_NO_UNALIGNED
78c2ecf20Sopenharmony_ci#include <linux/unaligned/be_struct.h>
88c2ecf20Sopenharmony_ci#include <linux/unaligned/le_byteshift.h>
98c2ecf20Sopenharmony_ci#include <linux/unaligned/generic.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define get_unaligned	__get_unaligned_be
128c2ecf20Sopenharmony_ci#define put_unaligned	__put_unaligned_be
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#else
158c2ecf20Sopenharmony_ci/*
168c2ecf20Sopenharmony_ci * The m68k can do unaligned accesses itself.
178c2ecf20Sopenharmony_ci */
188c2ecf20Sopenharmony_ci#include <linux/unaligned/access_ok.h>
198c2ecf20Sopenharmony_ci#include <linux/unaligned/generic.h>
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#define get_unaligned	__get_unaligned_be
228c2ecf20Sopenharmony_ci#define put_unaligned	__put_unaligned_be
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#endif /* _ASM_M68K_UNALIGNED_H */
27

Indexes created Thu Nov 07 10:32:03 CST 2024