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. 5 * 6 * Copyright (C) 2014 by Ralf Baechle <ralf@linux-mips.org> 7 */ 8 #ifndef __UAPI_ASM_BITFIELD_H 9 #define __UAPI_ASM_BITFIELD_H 10 11 /* 12 * * Damn ... bitfields depend from byteorder :-( 13 * */ 14 #ifdef __MIPSEB__ 15 #define __BITFIELD_FIELD(field, more) \ 16 field; \ 17 more 18 19 #elif defined(__MIPSEL__) 20 21 #define __BITFIELD_FIELD(field, more) \ 22 more \ 23 field; 24 25 #else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */ 26 #error "MIPS but neither __MIPSEL__ nor __MIPSEB__?" 27 #endif 28 29 #endif /* __UAPI_ASM_BITFIELD_H */ 30