]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/x86/include/asm/swiotlb.h
swiotlb: Remove the swiotlb variable usage
[mirror_ubuntu-hirsute-kernel.git] / arch / x86 / include / asm / swiotlb.h
CommitLineData
1965aae3
PA
1#ifndef _ASM_X86_SWIOTLB_H
2#define _ASM_X86_SWIOTLB_H
1da177e4 3
1da4f989 4#include <linux/swiotlb.h>
17a941d8 5
1da177e4
LT
6/* SWIOTLB interface */
7
65f87d8a
AK
8extern int swiotlb_force;
9
1da177e4
LT
10#ifdef CONFIG_SWIOTLB
11extern int swiotlb;
b18485e7 12extern int pci_swiotlb_init(void);
1da177e4
LT
13#else
14#define swiotlb 0
b18485e7 15static inline int pci_swiotlb_init(void)
be54f9d1 16{
b18485e7 17 return 0;
be54f9d1 18}
1da177e4
LT
19#endif
20
cde14bbf
JB
21static inline void dma_mark_clean(void *addr, size_t size) {}
22
1965aae3 23#endif /* _ASM_X86_SWIOTLB_H */