bitfield.h 703 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 2014 by Ralf Baechle <ralf@linux-mips.org>
  7. */
  8. #ifndef __UAPI_ASM_BITFIELD_H
  9. #define __UAPI_ASM_BITFIELD_H
  10. /*
  11. * * Damn ... bitfields depend from byteorder :-(
  12. * */
  13. #ifdef __MIPSEB__
  14. #define __BITFIELD_FIELD(field, more) \
  15. field; \
  16. more
  17. #elif defined(__MIPSEL__)
  18. #define __BITFIELD_FIELD(field, more) \
  19. more \
  20. field;
  21. #else /* !defined (__MIPSEB__) && !defined (__MIPSEL__) */
  22. #error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
  23. #endif
  24. #endif /* __UAPI_ASM_BITFIELD_H */