swiotlb.h 386 B

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