unaligned.h 871 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2008 Michal Simek <monstr@monstr.eu>
  3. * Copyright (C) 2006 Atmark Techno, Inc.
  4. *
  5. * This file is subject to the terms and conditions of the GNU General Public
  6. * License. See the file "COPYING" in the main directory of this archive
  7. * for more details.
  8. */
  9. #ifndef _ASM_MICROBLAZE_UNALIGNED_H
  10. #define _ASM_MICROBLAZE_UNALIGNED_H
  11. # ifdef __KERNEL__
  12. # ifdef __MICROBLAZEEL__
  13. # include <linux/unaligned/le_struct.h>
  14. # include <linux/unaligned/be_byteshift.h>
  15. # define get_unaligned __get_unaligned_le
  16. # define put_unaligned __put_unaligned_le
  17. # else
  18. # include <linux/unaligned/be_struct.h>
  19. # include <linux/unaligned/le_byteshift.h>
  20. # define get_unaligned __get_unaligned_be
  21. # define put_unaligned __put_unaligned_be
  22. # endif
  23. # include <linux/unaligned/generic.h>
  24. # endif /* __KERNEL__ */
  25. #endif /* _ASM_MICROBLAZE_UNALIGNED_H */