arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / unicore32 / include / mach / bitfield.h
blob766b7f01f1cdc3c7c1d1f76b2ff08084ddb1f74f
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * linux/arch/unicore32/include/mach/bitfield.h
5 * Code specific to PKUnity SoC and UniCore ISA
7 * Copyright (C) 2001-2010 GUAN Xue-tao
8 */
9 #ifndef __MACH_PUV3_BITFIELD_H__
10 #define __MACH_PUV3_BITFIELD_H__
12 #ifndef __ASSEMBLY__
13 #define UData(Data) ((unsigned long) (Data))
14 #else
15 #define UData(Data) (Data)
16 #endif
18 #define FIELD(val, vmask, vshift) (((val) & ((UData(1) << (vmask)) - 1)) << (vshift))
19 #define FMASK(vmask, vshift) (((UData(1) << (vmask)) - 1) << (vshift))
21 #endif /* __MACH_PUV3_BITFIELD_H__ */