Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[linux/fpc-iii.git] / arch / powerpc / include / asm / swiotlb.h
blobde99d6e29430341623fd8a0f6ee3d3a4c4e1a768
1 /*
2 * Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
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.
9 */
11 #ifndef __ASM_SWIOTLB_H
12 #define __ASM_SWIOTLB_H
14 #include <linux/swiotlb.h>
16 extern struct dma_map_ops swiotlb_dma_ops;
18 static inline void dma_mark_clean(void *addr, size_t size) {}
20 extern unsigned int ppc_swiotlb_enable;
21 int __init swiotlb_setup_bus_notifier(void);
23 extern void pci_dma_dev_setup_swiotlb(struct pci_dev *pdev);
25 #ifdef CONFIG_SWIOTLB
26 void swiotlb_detect_4g(void);
27 #else
28 static inline void swiotlb_detect_4g(void) {}
29 #endif
31 #endif /* __ASM_SWIOTLB_H */