diff options
author | Tushar Dave <tushar.n.dave@oracle.com> | 2016-10-28 10:12:44 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-18 11:17:00 -0800 |
commit | f08978b0fdbf37d3c91efb60a20bdee3ba8f59c6 (patch) | |
tree | 61a2039e1611d9898c0c23b13e9d95b70430087a /arch/sparc/kernel/pci_sun4v.h | |
parent | 5116ab4eabed575b7cca61a6e89b7d6fb7440970 (diff) | |
download | lwn-f08978b0fdbf37d3c91efb60a20bdee3ba8f59c6.tar.gz lwn-f08978b0fdbf37d3c91efb60a20bdee3ba8f59c6.zip |
sparc64: Enable sun4v dma ops to use IOMMU v2 APIs
Add Hypervisor IOMMU v2 APIs pci_iotsb_map(), pci_iotsb_demap() and
enable sun4v dma ops to use IOMMU v2 API for all PCIe devices with
64bit DMA mask.
Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com>
Reviewed-by: chris hyser <chris.hyser@oracle.com>
Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/pci_sun4v.h')
-rw-r--r-- | arch/sparc/kernel/pci_sun4v.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sparc/kernel/pci_sun4v.h b/arch/sparc/kernel/pci_sun4v.h index 1019e0fe6e9d..22603a4e48bf 100644 --- a/arch/sparc/kernel/pci_sun4v.h +++ b/arch/sparc/kernel/pci_sun4v.h @@ -99,4 +99,15 @@ unsigned long pci_sun4v_iotsb_conf(unsigned long devhandle, unsigned long pci_sun4v_iotsb_bind(unsigned long devhandle, unsigned long iotsb_num, unsigned int pci_device); +unsigned long pci_sun4v_iotsb_map(unsigned long devhandle, + unsigned long iotsb_num, + unsigned long iotsb_index_iottes, + unsigned long io_attributes, + unsigned long io_page_list_pa, + long *mapped); +unsigned long pci_sun4v_iotsb_demap(unsigned long devhandle, + unsigned long iotsb_num, + unsigned long iotsb_index, + unsigned long iottes, + unsigned long *demapped); #endif /* !(_PCI_SUN4V_H) */ |