-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIPS: Move definition of __BITFIELD_FIELD to sharable header.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
- Loading branch information
Ralf Baechle
committed
May 21, 2014
1 parent
60b5f90
commit 64a17a0
Showing
3 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
* | ||
* Copyright (C) 2014 by Ralf Baechle <ralf@linux-mips.org> | ||
*/ | ||
#ifndef __UAPI_ASM_BITFIELD_H | ||
#define __UAPI_ASM_BITFIELD_H | ||
|
||
/* | ||
* * Damn ... bitfields depend from byteorder :-( | ||
* */ | ||
#ifdef __MIPSEB__ | ||
#define __BITFIELD_FIELD(field, more) \ | ||
field; \ | ||
more | ||
|
||
#elif defined(__MIPSEL__) | ||
|
||
#define __BITFIELD_FIELD(field, more) \ | ||
more \ | ||
field; | ||
|
||
#else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */ | ||
#error "MIPS but neither __MIPSEL__ nor __MIPSEB__?" | ||
#endif | ||
|
||
#endif /* __UAPI_ASM_BITFIELD_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters