swiotlb.h 779 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License as published by the
  6. * Free Software Foundation; either version 2 of the License, or (at your
  7. * option) any later version.
  8. *
  9. */
  10. #ifndef __ASM_SWIOTLB_H
  11. #define __ASM_SWIOTLB_H
  12. #include <linux/swiotlb.h>
  13. extern struct dma_mapping_ops swiotlb_dma_ops;
  14. extern struct dma_mapping_ops swiotlb_pci_dma_ops;
  15. int swiotlb_arch_address_needs_mapping(struct device *, dma_addr_t,
  16. size_t size);
  17. static inline void dma_mark_clean(void *addr, size_t size) {}
  18. extern unsigned int ppc_swiotlb_enable;
  19. int __init swiotlb_setup_bus_notifier(void);
  20. #endif /* __ASM_SWIOTLB_H */