xref: /kernel/linux/linux-5.10/arch/powerpc/include/asm/unaligned.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/powerpc/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_UNALIGNED_H
38c2ecf20Sopenharmony_ci#define _ASM_POWERPC_UNALIGNED_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#ifdef __KERNEL__
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/*
88c2ecf20Sopenharmony_ci * The PowerPC can do unaligned accesses itself based on its endian mode.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci#include <linux/unaligned/access_ok.h>
118c2ecf20Sopenharmony_ci#include <linux/unaligned/generic.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#ifdef __LITTLE_ENDIAN__
148c2ecf20Sopenharmony_ci#define get_unaligned	__get_unaligned_le
158c2ecf20Sopenharmony_ci#define put_unaligned	__put_unaligned_le
168c2ecf20Sopenharmony_ci#else
178c2ecf20Sopenharmony_ci#define get_unaligned	__get_unaligned_be
188c2ecf20Sopenharmony_ci#define put_unaligned	__put_unaligned_be
198c2ecf20Sopenharmony_ci#endif
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif	/* __KERNEL__ */
228c2ecf20Sopenharmony_ci#endif	/* _ASM_POWERPC_UNALIGNED_H */
23

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