mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
87774a4a42
commit
12f421745c
5 changed files with 88 additions and 50 deletions
|
@ -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__) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue