Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Becky Bruce | ec3cf2e | 2009-05-14 12:42:28 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2009 Becky Bruce, Freescale Semiconductor |
Becky Bruce | ec3cf2e | 2009-05-14 12:42:28 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_SWIOTLB_H |
| 7 | #define __ASM_SWIOTLB_H |
| 8 | |
| 9 | #include <linux/swiotlb.h> |
| 10 | |
Becky Bruce | ec3cf2e | 2009-05-14 12:42:28 +0000 | [diff] [blame] | 11 | extern unsigned int ppc_swiotlb_enable; |
Becky Bruce | ec3cf2e | 2009-05-14 12:42:28 +0000 | [diff] [blame] | 12 | |
Jia Hongtao | 688ba1d | 2012-08-03 18:14:10 +0800 | [diff] [blame] | 13 | #ifdef CONFIG_SWIOTLB |
| 14 | void swiotlb_detect_4g(void); |
| 15 | #else |
| 16 | static inline void swiotlb_detect_4g(void) {} |
| 17 | #endif |
| 18 | |
Becky Bruce | ec3cf2e | 2009-05-14 12:42:28 +0000 | [diff] [blame] | 19 | #endif /* __ASM_SWIOTLB_H */ |