1 /* pci_sun4v_asm: Hypervisor calls for PCI support.
3 * Copyright (C) 2006 David S. Miller <davem@davemloft.net>
6 #include <asm/hypervisor.h>
12 * %o4: io_page_list phys address
14 * returns %o0: num ttes mapped
16 .globl pci_sun4v_iommu_map
18 mov HV_FAST_PCI_IOMMU_MAP, %o5
27 * returns %o0: num ttes demapped
29 .globl pci_sun4v_iommu_demap
30 pci_sun4v_iommu_demap:
31 mov HV_FAST_PCI_IOMMU_DEMAP, %o5
43 .globl pci_sun4v_iommu_getmap
44 pci_sun4v_iommu_getmap:
46 mov HV_FAST_PCI_IOMMU_GETMAP, %o5
55 * %o2: pci_config_offset
60 * If there is an error, the data will be returned
63 .globl pci_sun4v_config_get
65 mov HV_FAST_PCI_CONFIG_GET, %o5
74 * %o2: pci_config_offset
80 * status will be zero if the operation completed
81 * successfully, else -1 if not
83 .globl pci_sun4v_config_put
85 mov HV_FAST_PCI_CONFIG_PUT, %o5