summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/swiotlb.h
blob: d010d0dcc532ad4d7ff3b0bc2d7a8018b58ee145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __BACKPORT_LINUX_SWIOTLB_H
#define __BACKPORT_LINUX_SWIOTLB_H

#include <linux/version.h>

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28))
#include_next <linux/swiotlb.h>
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)) */

#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0))
#if (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(6,4))
static inline unsigned long swiotlb_nr_tbl(void)
{
	return 0;
}
#endif
#endif

#endif /* __BACKPORT_LINUX_SWIOTLB_H */