]> Git Repo - qemu.git/commitdiff
spapr_iommu: Make spapr_tce_find_by_liobn() public
authorAlexey Kardashevskiy <[email protected]>
Thu, 7 May 2015 05:33:35 +0000 (15:33 +1000)
committerAlexander Graf <[email protected]>
Wed, 3 Jun 2015 21:56:51 +0000 (23:56 +0200)
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 <[email protected]>
Reviewed-by: David Gibson <[email protected]>
Signed-off-by: David Gibson <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
hw/ppc/spapr_iommu.c
include/hw/ppc/spapr.h

index 3a773f703ea84eee38276b9176d73d75548edd0b..c17e831c4357343b6d17d86dc83c674f65ad2616 100644 (file)
@@ -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;
 
index 1dab3e1419dbd59c6cc06a167e27b541e18968e8..7d9ab9d16c2a5754d150def6339c85031d875ef9 100644 (file)
@@ -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);
This page took 0.024526 seconds and 4 git commands to generate.