summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/pci_sun4v.h
diff options
context:
space:
mode:
authorDavid S. Miller2006-02-10 07:05:54 +0100
committerDavid S. Miller2006-03-20 10:12:11 +0100
commitbade5622167181844cd4e60087971c1f949e149f (patch)
tree0bd0144e472786f8ba5b37a2bb90204ff6bf204b /arch/sparc64/kernel/pci_sun4v.h
parent[SPARC64]: Beginnings of SUN4V PCI controller support. (diff)
downloadkernel-qcow2-linux-bade5622167181844cd4e60087971c1f949e149f.tar.gz
kernel-qcow2-linux-bade5622167181844cd4e60087971c1f949e149f.tar.xz
kernel-qcow2-linux-bade5622167181844cd4e60087971c1f949e149f.zip
[SPARC64]: More SUN4V PCI controller work.
Add assembler file for PCI hypervisor calls. Setup basic skeleton of SUN4V PCI controller driver. Add 32-bit devhandle to PBM struct, as this is needed for hypervisor calls. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/pci_sun4v.h')
-rw-r--r--arch/sparc64/kernel/pci_sun4v.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/pci_sun4v.h b/arch/sparc64/kernel/pci_sun4v.h
new file mode 100644
index 000000000000..d3ac7ece4b31
--- /dev/null
+++ b/arch/sparc64/kernel/pci_sun4v.h
@@ -0,0 +1,20 @@
+/* pci_sun4v.h: SUN4V specific PCI controller support.
+ *
+ * Copyright (C) 2006 David S. Miller (davem@davemloft.net)
+ */
+
+#ifndef _PCI_SUN4V_H
+#define _PCI_SUN4V_H
+
+extern unsigned long pci_sun4v_devino_to_sysino(unsigned long devhandle,
+ unsigned long deino);
+extern unsigned long pci_sun4v_iommu_map(unsigned long devhandle,
+ unsigned long tsbid,
+ unsigned long num_ttes,
+ unsigned long io_attributes,
+ unsigned long io_page_list_pa);
+extern unsigned long pci_sun4v_iommu_demap(unsigned long devhandle,
+ unsigned long tsbid,
+ unsigned long num_ttes);
+
+#endif /* !(_PCI_SUN4V_H) */