2022-04-02 18:08:56 +05:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_SWIOTLB_H
|
|
|
|
#define __ASM_SWIOTLB_H
|
|
|
|
|
|
|
|
#include <linux/swiotlb.h>
|
|
|
|
|
|
|
|
extern unsigned int ppc_swiotlb_enable;
|
2022-09-13 23:14:27 +05:00
|
|
|
extern unsigned int ppc_swiotlb_flags;
|
2022-04-02 18:08:56 +05:00
|
|
|
|
|
|
|
#ifdef CONFIG_SWIOTLB
|
|
|
|
void swiotlb_detect_4g(void);
|
|
|
|
#else
|
|
|
|
static inline void swiotlb_detect_4g(void) {}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __ASM_SWIOTLB_H */
|