Path: blob/master/arch/mips/include/uapi/asm/bitfield.h
26496 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* This file is subject to the terms and conditions of the GNU General Public3* License. See the file "COPYING" in the main directory of this archive4* for more details.5*6* Copyright (C) 2014 by Ralf Baechle <[email protected]>7*/8#ifndef __UAPI_ASM_BITFIELD_H9#define __UAPI_ASM_BITFIELD_H1011/*12* * Damn ... bitfields depend from byteorder :-(13* */14#ifdef __MIPSEB__15#define __BITFIELD_FIELD(field, more) \16field; \17more1819#elif defined(__MIPSEL__)2021#define __BITFIELD_FIELD(field, more) \22more \23field;2425#else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */26#error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"27#endif2829#endif /* __UAPI_ASM_BITFIELD_H */303132