1 /* pci_sun4v_asm: Hypervisor calls for PCI support.
3 * Copyright (C) 2006 David S. Miller <davem@davemloft.net>
6 #include <asm/hypervisor.h>
13 .globl pci_sun4v_devino_to_sysino
14 pci_sun4v_devino_to_sysino:
15 mov HV_FAST_INTR_DEVINO2SYSINO, %o5
24 * %o4: io_page_list phys address
26 * returns %o0: num ttes mapped
28 .globl pci_sun4v_iommu_map
30 mov HV_FAST_PCI_IOMMU_MAP, %o5
39 * returns %o0: num ttes demapped
41 .globl pci_sun4v_iommu_demap
42 pci_sun4v_iommu_demap:
43 mov HV_FAST_PCI_IOMMU_DEMAP, %o5
55 .globl pci_sun4v_iommu_getmap
56 pci_sun4v_iommu_getmap:
58 mov HV_FAST_PCI_IOMMU_GETMAP, %o5
67 * %o2: pci_config_offset
72 * If there is an error, the data will be returned
75 .globl pci_sun4v_config_get
77 mov HV_FAST_PCI_CONFIG_GET, %o5
86 * %o2: pci_config_offset
92 * status will be zero if the operation completed
93 * successfully, else -1 if not
95 .globl pci_sun4v_config_put
97 mov HV_FAST_PCI_CONFIG_PUT, %o5