Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2)  * Xtensa doesn't handle unaligned accesses efficiently.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * This file is subject to the terms and conditions of the GNU General Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * License.  See the file "COPYING" in the main directory of this archive
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * Copyright (C) 2001 - 2005 Tensilica Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef _ASM_XTENSA_UNALIGNED_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define _ASM_XTENSA_UNALIGNED_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <asm/byteorder.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #ifdef __LITTLE_ENDIAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) # include <linux/unaligned/le_struct.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) # include <linux/unaligned/be_byteshift.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) # include <linux/unaligned/generic.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) # define get_unaligned	__get_unaligned_le
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) # define put_unaligned	__put_unaligned_le
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) # include <linux/unaligned/be_struct.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) # include <linux/unaligned/le_byteshift.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) # include <linux/unaligned/generic.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) # define get_unaligned	__get_unaligned_be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) # define put_unaligned	__put_unaligned_be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #endif	/* _ASM_XTENSA_UNALIGNED_H */