Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2008 Michal Simek <monstr@monstr.eu> |
| 4 | * Copyright (C) 2006 Atmark Techno, Inc. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _ASM_MICROBLAZE_UNALIGNED_H |
| 8 | #define _ASM_MICROBLAZE_UNALIGNED_H |
| 9 | |
| 10 | # ifdef __KERNEL__ |
| 11 | |
| 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 | |
| 24 | # include <linux/unaligned/generic.h> |
| 25 | |
| 26 | # endif /* __KERNEL__ */ |
| 27 | #endif /* _ASM_MICROBLAZE_UNALIGNED_H */ |