swiotlb.h 343 B

12345678910111213141516171819
  1. #ifndef _ASM_X86_SWIOTLB_H
  2. #define _ASM_X86_SWIOTLB_H
  3. #include <linux/swiotlb.h>
  4. #ifdef CONFIG_SWIOTLB
  5. extern int swiotlb;
  6. extern int pci_swiotlb_init(void);
  7. #else
  8. #define swiotlb 0
  9. static inline int pci_swiotlb_init(void)
  10. {
  11. return 0;
  12. }
  13. #endif
  14. static inline void dma_mark_clean(void *addr, size_t size) {}
  15. #endif /* _ASM_X86_SWIOTLB_H */