blob: 3c1a1cd161286c53ad4201cb297376c1f1af5796 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5
6#ifndef __ASM_SWIOTLB_H
7#define __ASM_SWIOTLB_H
8
9#include <linux/swiotlb.h>
10
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000011extern unsigned int ppc_swiotlb_enable;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000012
13#ifdef CONFIG_SWIOTLB
14void swiotlb_detect_4g(void);
15#else
16static inline void swiotlb_detect_4g(void) {}
17#endif
18
19#endif /* __ASM_SWIOTLB_H */