Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  *  arch/arm/include/asm/byteorder.h
0004  *
0005  * ARM Endian-ness.  In little endian mode, the data bus is connected such
0006  * that byte accesses appear as:
0007  *  0 = d0...d7, 1 = d8...d15, 2 = d16...d23, 3 = d24...d31
0008  * and word accesses (data or instruction) appear as:
0009  *  d0...d31
0010  *
0011  * When in big endian mode, byte accesses appear as:
0012  *  0 = d24...d31, 1 = d16...d23, 2 = d8...d15, 3 = d0...d7
0013  * and word accesses (data or instruction) appear as:
0014  *  d0...d31
0015  */
0016 #ifndef __ASM_ARM_BYTEORDER_H
0017 #define __ASM_ARM_BYTEORDER_H
0018 
0019 #ifdef __ARMEB__
0020 #include <linux/byteorder/big_endian.h>
0021 #else
0022 #include <linux/byteorder/little_endian.h>
0023 #endif
0024 
0025 #endif
0026