drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / mips / include / uapi / asm / bitfield.h
blobb11713d8743efef3ef1082e88f9a2d3b9d28fbd3
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.
7 * Copyright (C) 2014 by Ralf Baechle <ralf@linux-mips.org>
8 */
9 #ifndef __UAPI_ASM_BITFIELD_H
10 #define __UAPI_ASM_BITFIELD_H
13 * * Damn ... bitfields depend from byteorder :-(
14 * */
15 #ifdef __MIPSEB__
16 #define __BITFIELD_FIELD(field, more) \
17 field; \
18 more
20 #elif defined(__MIPSEL__)
22 #define __BITFIELD_FIELD(field, more) \
23 more \
24 field;
26 #else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
27 #error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
28 #endif
30 #endif /* __UAPI_ASM_BITFIELD_H */