swiotlb.h 670 B

1234567891011121314151617181920212223242526272829303132
  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_override(void);
  7. extern int __init pci_swiotlb_detect_4gb(void);
  8. extern void __init pci_swiotlb_init(void);
  9. extern void __init pci_swiotlb_late_init(void);
  10. #else
  11. #define swiotlb 0
  12. static inline int pci_swiotlb_detect_override(void)
  13. {
  14. return 0;
  15. }
  16. static inline int pci_swiotlb_detect_4gb(void)
  17. {
  18. return 0;
  19. }
  20. static inline void pci_swiotlb_init(void)
  21. {
  22. }
  23. static inline void pci_swiotlb_late_init(void)
  24. {
  25. }
  26. #endif
  27. static inline void dma_mark_clean(void *addr, size_t size) {}
  28. #endif /* _ASM_X86_SWIOTLB_H */