blob: 3c1a1cd161286c53ad4201cb297376c1f1af5796 [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Becky Bruceec3cf2e2009-05-14 12:42:28 +00002/*
3 * Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
Becky Bruceec3cf2e2009-05-14 12:42:28 +00004 */
5
6#ifndef __ASM_SWIOTLB_H
7#define __ASM_SWIOTLB_H
8
9#include <linux/swiotlb.h>
10
Becky Bruceec3cf2e2009-05-14 12:42:28 +000011extern unsigned int ppc_swiotlb_enable;
Becky Bruceec3cf2e2009-05-14 12:42:28 +000012
Jia Hongtao688ba1d2012-08-03 18:14:10 +080013#ifdef CONFIG_SWIOTLB
14void swiotlb_detect_4g(void);
15#else
16static inline void swiotlb_detect_4g(void) {}
17#endif
18
Becky Bruceec3cf2e2009-05-14 12:42:28 +000019#endif /* __ASM_SWIOTLB_H */