qemu-e2k/hw/rtc
Peter Maydell 2f93d8b04a rtc: Move RTC function prototypes to their own header
softmmu/rtc.c defines two public functions: qemu_get_timedate() and
qemu_timedate_diff().  Currently we keep the prototypes for these in
qemu-common.h, but most files don't need them.  Move them to their
own header, a new include/sysemu/rtc.h.

Since the C files using these two functions did not need to include
qemu-common.h for any other reason, we can remove those include lines
when we add the include of the new rtc.h.

The license for the .h file follows that of the softmmu/rtc.c
where both the functions are defined.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2022-01-28 14:29:46 +00:00
..
allwinner-rtc.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
aspeed_rtc.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
ds1338.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
exynos4210_rtc.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
goldfish_rtc.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
Kconfig
m41t80.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
m48t59-internal.h
m48t59-isa.c
m48t59.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
mc146818rtc.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
meson.build
pl031.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
sun4v-rtc.c
trace-events
trace.h
twl92230.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00
xlnx-zynqmp-rtc.c rtc: Move RTC function prototypes to their own header 2022-01-28 14:29:46 +00:00