1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
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
7 * Copyright (C) 2014 by Ralf Baechle <ralf@linux-mips.org>
9 #ifndef __UAPI_ASM_BITFIELD_H
10 #define __UAPI_ASM_BITFIELD_H
13 * * Damn ... bitfields depend from byteorder :-(
16 #define __BITFIELD_FIELD(field, more) \
20 #elif defined(__MIPSEL__)
22 #define __BITFIELD_FIELD(field, more) \
26 #else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
27 #error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
30 #endif /* __UAPI_ASM_BITFIELD_H */