From: Alexey Kardashevskiy Date: Thu, 7 May 2015 05:33:35 +0000 (+1000) Subject: spapr_iommu: Make spapr_tce_find_by_liobn() public X-Git-Tag: v2.4.0-rc0~99^2~28 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fae807a2b182a613798fe619f9069bd0bbe3dc6a;p=qemu-xen-unstable.git spapr_iommu: Make spapr_tce_find_by_liobn() public At the moment spapr_tce_find_by_liobn() is used by H_PUT_TCE/... handlers to find an IOMMU by LIOBN. We are going to implement Dynamic DMA windows (DDW), new code will go to a new file and we will use spapr_tce_find_by_liobn() there too so let's make it public. Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c index 3a773f703e..c17e831c43 100644 --- a/hw/ppc/spapr_iommu.c +++ b/hw/ppc/spapr_iommu.c @@ -41,7 +41,7 @@ enum sPAPRTCEAccess { static QLIST_HEAD(spapr_tce_tables, sPAPRTCETable) spapr_tce_tables; -static sPAPRTCETable *spapr_tce_find_by_liobn(uint32_t liobn) +sPAPRTCETable *spapr_tce_find_by_liobn(uint32_t liobn) { sPAPRTCETable *tcet; diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 1dab3e1419..7d9ab9d16c 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -511,6 +511,7 @@ struct sPAPRTCETable { QLIST_ENTRY(sPAPRTCETable) list; }; +sPAPRTCETable *spapr_tce_find_by_liobn(uint32_t liobn); void spapr_events_init(sPAPREnvironment *spapr); void spapr_events_fdt_skel(void *fdt, uint32_t epow_irq); int spapr_h_cas_compose_response(target_ulong addr, target_ulong size);