wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 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 | |
| 16 | #ifndef __MICROBLAZE_BYTEORDER_H__ |
| 17 | #define __MICROBLAZE_BYTEORDER_H__ |
| 18 | |
| 19 | #include <asm/types.h> |
| 20 | |
| 21 | #ifdef __GNUC__ |
| 22 | |
wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 23 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) |
| 24 | # define __BYTEORDER_HAS_U64__ |
| 25 | # define __SWAB_64_THRU_32__ |
| 26 | #endif |
| 27 | |
| 28 | #endif /* __GNUC__ */ |
| 29 | |
Michal Simek | b98cba0 | 2010-08-12 11:47:11 +0200 | [diff] [blame] | 30 | #ifdef __MICROBLAZEEL__ |
| 31 | #include <linux/byteorder/little_endian.h> |
| 32 | #else |
wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 33 | #include <linux/byteorder/big_endian.h> |
Michal Simek | b98cba0 | 2010-08-12 11:47:11 +0200 | [diff] [blame] | 34 | #endif |
wdenk | 507bbe3 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 35 | |
| 36 | #endif /* __MICROBLAZE_BYTEORDER_H__ */ |