18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
48c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
58c2ecf20Sopenharmony_ci * for more details.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 2014 by Ralf Baechle <ralf@linux-mips.org>
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef __UAPI_ASM_BITFIELD_H
108c2ecf20Sopenharmony_ci#define __UAPI_ASM_BITFIELD_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/*
138c2ecf20Sopenharmony_ci *  * Damn ...  bitfields depend from byteorder :-(
148c2ecf20Sopenharmony_ci *   */
158c2ecf20Sopenharmony_ci#ifdef __MIPSEB__
168c2ecf20Sopenharmony_ci#define __BITFIELD_FIELD(field, more)					\
178c2ecf20Sopenharmony_ci	field;								\
188c2ecf20Sopenharmony_ci	more
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#elif defined(__MIPSEL__)
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#define __BITFIELD_FIELD(field, more)					\
238c2ecf20Sopenharmony_ci	more								\
248c2ecf20Sopenharmony_ci	field;
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
278c2ecf20Sopenharmony_ci#error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
288c2ecf20Sopenharmony_ci#endif
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci#endif /* __UAPI_ASM_BITFIELD_H */
31