|
@@ -21,6 +21,7 @@
|
|
#include <asm/iommu.h>
|
|
#include <asm/iommu.h>
|
|
|
|
|
|
#include "iommu_common.h"
|
|
#include "iommu_common.h"
|
|
|
|
+#include "kernel.h"
|
|
|
|
|
|
#define STC_CTXMATCH_ADDR(STC, CTX) \
|
|
#define STC_CTXMATCH_ADDR(STC, CTX) \
|
|
((STC)->strbuf_ctxmatch_base + ((CTX) << 3))
|
|
((STC)->strbuf_ctxmatch_base + ((CTX) << 3))
|
|
@@ -840,8 +841,6 @@ static struct dma_map_ops sun4u_dma_ops = {
|
|
struct dma_map_ops *dma_ops = &sun4u_dma_ops;
|
|
struct dma_map_ops *dma_ops = &sun4u_dma_ops;
|
|
EXPORT_SYMBOL(dma_ops);
|
|
EXPORT_SYMBOL(dma_ops);
|
|
|
|
|
|
-extern int pci64_dma_supported(struct pci_dev *pdev, u64 device_mask);
|
|
|
|
-
|
|
|
|
int dma_supported(struct device *dev, u64 device_mask)
|
|
int dma_supported(struct device *dev, u64 device_mask)
|
|
{
|
|
{
|
|
struct iommu *iommu = dev->archdata.iommu;
|
|
struct iommu *iommu = dev->archdata.iommu;
|