mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
apci: switch timer to memory api
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
a29028214c
commit
77d58b1e47
5 changed files with 23 additions and 17 deletions
|
@ -84,6 +84,7 @@ typedef void (*acpi_update_sci_fn)(ACPIREGS *ar);
|
|||
|
||||
struct ACPIPMTimer {
|
||||
QEMUTimer *timer;
|
||||
MemoryRegion io;
|
||||
int64_t overflow_time;
|
||||
|
||||
acpi_update_sci_fn update_sci;
|
||||
|
@ -119,8 +120,8 @@ struct ACPIREGS {
|
|||
/* PM_TMR */
|
||||
void acpi_pm_tmr_update(ACPIREGS *ar, bool enable);
|
||||
void acpi_pm_tmr_calc_overflow_time(ACPIREGS *ar);
|
||||
uint32_t acpi_pm_tmr_get(ACPIREGS *ar);
|
||||
void acpi_pm_tmr_init(ACPIREGS *ar, acpi_update_sci_fn update_sci);
|
||||
void acpi_pm_tmr_init(ACPIREGS *ar, acpi_update_sci_fn update_sci,
|
||||
MemoryRegion *parent);
|
||||
void acpi_pm_tmr_reset(ACPIREGS *ar);
|
||||
|
||||
#include "qemu-timer.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue