of: MSI: Simplify irqdomain lookup
[linux/fpc-iii.git] / arch / mips / include / uapi / asm / bitfield.h
blobad9861359cea7f0b19a8745c93af3ef6f11ac3d2
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2014 by Ralf Baechle <ralf@linux-mips.org>
7 */
8 #ifndef __UAPI_ASM_BITFIELD_H
9 #define __UAPI_ASM_BITFIELD_H
12 * * Damn ... bitfields depend from byteorder :-(
13 * */
14 #ifdef __MIPSEB__
15 #define __BITFIELD_FIELD(field, more) \
16 field; \
17 more
19 #elif defined(__MIPSEL__)
21 #define __BITFIELD_FIELD(field, more) \
22 more \
23 field;
25 #else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
26 #error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
27 #endif
29 #endif /* __UAPI_ASM_BITFIELD_H */