summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2015-02-06 14:55:47 +1100
committerAlexander Graf <agraf@suse.de>2015-03-09 14:59:56 +0100
commit12f421745cd763742377c7134f48fa12fb889ee3 (patch)
treea10b274c4058d63993dcf0445f5e3f8a5b99b104 /include/hw/ppc
parent87774a4a4217b5cddc693f0678d0fc2bfc7f2ec1 (diff)
downloadhqemu-12f421745cd763742377c7134f48fa12fb889ee3.zip
hqemu-12f421745cd763742377c7134f48fa12fb889ee3.tar.gz
pseries: Move sPAPR RTC code into its own file
At the moment the RTAS (firmware/hypervisor) time of day functions are implemented in spapr_rtas.c along with a bunch of other things. Since we're going to be expanding these a bit, move the RTAS RTC related code out into new file spapr_rtc.c. Also add its own initialization function, spapr_rtc_init() called from the main machine init routine. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/hw/ppc')
-rw-r--r--include/hw/ppc/spapr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index 642cdc3..e43339d 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -480,5 +480,6 @@ int spapr_dma_dt(void *fdt, int node_off, const char *propname,
uint32_t liobn, uint64_t window, uint32_t size);
int spapr_tcet_dma_dt(void *fdt, int node_off, const char *propname,
sPAPRTCETable *tcet);
+void spapr_rtc_init(void);
#endif /* !defined (__HW_SPAPR_H__) */
OpenPOWER on IntegriCloud