1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  * This file is subject to the terms and conditions of the GNU General Public
4  * License.  See the file "COPYING" in the main directory of this archive
5  * for more details.
6  *
7  * Copyright (C) 2014 by Ralf Baechle <ralf@linux-mips.org>
8  */
9 #ifndef __UAPI_ASM_BITFIELD_H
10 #define __UAPI_ASM_BITFIELD_H
11 
12 /*
13  *  * Damn ...  bitfields depend from byteorder :-(
14  *   */
15 #ifdef __MIPSEB__
16 #define __BITFIELD_FIELD(field, more)					\
17 	field;								\
18 	more
19 
20 #elif defined(__MIPSEL__)
21 
22 #define __BITFIELD_FIELD(field, more)					\
23 	more								\
24 	field;
25 
26 #else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
27 #error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
28 #endif
29 
30 #endif /* __UAPI_ASM_BITFIELD_H */