162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 462306a36Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 562306a36Sopenharmony_ci * for more details. 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Copyright (C) 2014 by Ralf Baechle <ralf@linux-mips.org> 862306a36Sopenharmony_ci */ 962306a36Sopenharmony_ci#ifndef __UAPI_ASM_BITFIELD_H 1062306a36Sopenharmony_ci#define __UAPI_ASM_BITFIELD_H 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci/* 1362306a36Sopenharmony_ci * * Damn ... bitfields depend from byteorder :-( 1462306a36Sopenharmony_ci * */ 1562306a36Sopenharmony_ci#ifdef __MIPSEB__ 1662306a36Sopenharmony_ci#define __BITFIELD_FIELD(field, more) \ 1762306a36Sopenharmony_ci field; \ 1862306a36Sopenharmony_ci more 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci#elif defined(__MIPSEL__) 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci#define __BITFIELD_FIELD(field, more) \ 2362306a36Sopenharmony_ci more \ 2462306a36Sopenharmony_ci field; 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci#else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */ 2762306a36Sopenharmony_ci#error "MIPS but neither __MIPSEL__ nor __MIPSEB__?" 2862306a36Sopenharmony_ci#endif 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#endif /* __UAPI_ASM_BITFIELD_H */ 31