byteorder.h 912 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * include/asm-microblaze/byteorder.h -- Endian id and conversion ops
  3. *
  4. * Copyright (C) 2003 John Williams <jwilliams@itee.uq.edu.au>
  5. * Copyright (C) 2001 NEC Corporation
  6. * Copyright (C) 2001 Miles Bader <miles@gnu.org>
  7. *
  8. * This file is subject to the terms and conditions of the GNU General
  9. * Public License. See the file COPYING in the main directory of this
  10. * archive for more details.
  11. *
  12. * Written by Miles Bader <miles@gnu.org>
  13. * Microblaze port by John Williams
  14. */
  15. #ifndef __MICROBLAZE_BYTEORDER_H__
  16. #define __MICROBLAZE_BYTEORDER_H__
  17. #include <asm/types.h>
  18. #ifdef __GNUC__
  19. #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
  20. # define __BYTEORDER_HAS_U64__
  21. # define __SWAB_64_THRU_32__
  22. #endif
  23. #endif /* __GNUC__ */
  24. #ifdef __MICROBLAZEEL__
  25. #include <linux/byteorder/little_endian.h>
  26. #else
  27. #include <linux/byteorder/big_endian.h>
  28. #endif
  29. #endif /* __MICROBLAZE_BYTEORDER_H__ */