mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
[SPARC64]: Const'ify pci_iommu_ops.
Based upon a similar patch for x86_64 written by Stephen Hemminger. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0bba2dd823
commit
c6e87566ea
4 changed files with 5 additions and 5 deletions
|
@ -282,10 +282,10 @@ int __init pcic_present(void)
|
||||||
return pci_controller_scan(pci_is_controller);
|
return pci_controller_scan(pci_is_controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pci_iommu_ops *pci_iommu_ops;
|
const struct pci_iommu_ops *pci_iommu_ops;
|
||||||
EXPORT_SYMBOL(pci_iommu_ops);
|
EXPORT_SYMBOL(pci_iommu_ops);
|
||||||
|
|
||||||
extern struct pci_iommu_ops pci_sun4u_iommu_ops,
|
extern const struct pci_iommu_ops pci_sun4u_iommu_ops,
|
||||||
pci_sun4v_iommu_ops;
|
pci_sun4v_iommu_ops;
|
||||||
|
|
||||||
/* Find each controller in the system, attach and initialize
|
/* Find each controller in the system, attach and initialize
|
||||||
|
|
|
@ -759,7 +759,7 @@ static void pci_4u_dma_sync_sg_for_cpu(struct pci_dev *pdev, struct scatterlist
|
||||||
spin_unlock_irqrestore(&iommu->lock, flags);
|
spin_unlock_irqrestore(&iommu->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pci_iommu_ops pci_sun4u_iommu_ops = {
|
const struct pci_iommu_ops pci_sun4u_iommu_ops = {
|
||||||
.alloc_consistent = pci_4u_alloc_consistent,
|
.alloc_consistent = pci_4u_alloc_consistent,
|
||||||
.free_consistent = pci_4u_free_consistent,
|
.free_consistent = pci_4u_free_consistent,
|
||||||
.map_single = pci_4u_map_single,
|
.map_single = pci_4u_map_single,
|
||||||
|
|
|
@ -583,7 +583,7 @@ static void pci_4v_dma_sync_sg_for_cpu(struct pci_dev *pdev, struct scatterlist
|
||||||
/* Nothing to do... */
|
/* Nothing to do... */
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pci_iommu_ops pci_sun4v_iommu_ops = {
|
const struct pci_iommu_ops pci_sun4v_iommu_ops = {
|
||||||
.alloc_consistent = pci_4v_alloc_consistent,
|
.alloc_consistent = pci_4v_alloc_consistent,
|
||||||
.free_consistent = pci_4v_free_consistent,
|
.free_consistent = pci_4v_free_consistent,
|
||||||
.map_single = pci_4v_map_single,
|
.map_single = pci_4v_map_single,
|
||||||
|
|
|
@ -54,7 +54,7 @@ struct pci_iommu_ops {
|
||||||
void (*dma_sync_sg_for_cpu)(struct pci_dev *, struct scatterlist *, int, int);
|
void (*dma_sync_sg_for_cpu)(struct pci_dev *, struct scatterlist *, int, int);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct pci_iommu_ops *pci_iommu_ops;
|
extern const struct pci_iommu_ops *pci_iommu_ops;
|
||||||
|
|
||||||
/* Allocate and map kernel buffer using consistent mode DMA for a device.
|
/* Allocate and map kernel buffer using consistent mode DMA for a device.
|
||||||
* hwdev should be valid struct pci_dev pointer for PCI devices.
|
* hwdev should be valid struct pci_dev pointer for PCI devices.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue