18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef __ASM_SWIOTLB_H
78c2ecf20Sopenharmony_ci#define __ASM_SWIOTLB_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <linux/swiotlb.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciextern unsigned int ppc_swiotlb_enable;
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#ifdef CONFIG_SWIOTLB
148c2ecf20Sopenharmony_civoid swiotlb_detect_4g(void);
158c2ecf20Sopenharmony_ci#else
168c2ecf20Sopenharmony_cistatic inline void swiotlb_detect_4g(void) {}
178c2ecf20Sopenharmony_ci#endif
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#endif /* __ASM_SWIOTLB_H */
20