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: -status if status was non-zero, else
15 * %o0: num pages mapped
17 .globl pci_sun4v_iommu_map
20 mov HV_FAST_PCI_IOMMU_MAP, %o5
32 * returns %o0: num ttes demapped
34 .globl pci_sun4v_iommu_demap
35 pci_sun4v_iommu_demap:
36 mov HV_FAST_PCI_IOMMU_DEMAP, %o5
48 .globl pci_sun4v_iommu_getmap
49 pci_sun4v_iommu_getmap:
51 mov HV_FAST_PCI_IOMMU_GETMAP, %o5
60 * %o2: pci_config_offset
65 * If there is an error, the data will be returned
68 .globl pci_sun4v_config_get
70 mov HV_FAST_PCI_CONFIG_GET, %o5
79 * %o2: pci_config_offset
85 * status will be zero if the operation completed
86 * successfully, else -1 if not
88 .globl pci_sun4v_config_put
90 mov HV_FAST_PCI_CONFIG_PUT, %o5