swiotlb.h 443 B

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