2009-05-14 20:42:28 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_SWIOTLB_H
|
|
|
|
#define __ASM_SWIOTLB_H
|
|
|
|
|
|
|
|
#include <linux/swiotlb.h>
|
|
|
|
|
2009-08-05 03:08:25 +08:00
|
|
|
extern struct dma_map_ops swiotlb_dma_ops;
|
2009-05-14 20:42:28 +08:00
|
|
|
|
|
|
|
static inline void dma_mark_clean(void *addr, size_t size) {}
|
|
|
|
|
|
|
|
extern unsigned int ppc_swiotlb_enable;
|
|
|
|
int __init swiotlb_setup_bus_notifier(void);
|
|
|
|
|
2009-08-05 03:08:22 +08:00
|
|
|
extern void pci_dma_dev_setup_swiotlb(struct pci_dev *pdev);
|
|
|
|
|
2009-05-14 20:42:28 +08:00
|
|
|
#endif /* __ASM_SWIOTLB_H */
|