swiotlb.h 395 B

1234567891011121314151617181920212223
  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 int pci_swiotlb_init(void);
  9. #else
  10. #define swiotlb 0
  11. static inline int pci_swiotlb_init(void)
  12. {
  13. return 0;
  14. }
  15. #endif
  16. static inline void dma_mark_clean(void *addr, size_t size) {}
  17. #endif /* _ASM_X86_SWIOTLB_H */