diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-11-22 13:17:57 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-12-04 13:52:42 +0100 |
commit | afafe4bbe0cf7d3318e1ac7b40925561f86a6bd4 (patch) | |
tree | 2a60fad66478806872933bca752d76e3af13df52 /hw/vt82c686.c | |
parent | 77d58b1e47c8d1c661f98f12b47ab519d3561488 (diff) |
apci: switch cnt to memory api
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/vt82c686.c')
-rw-r--r-- | hw/vt82c686.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/vt82c686.c b/hw/vt82c686.c index 219cfaec72..15f0b6a91c 100644 --- a/hw/vt82c686.c +++ b/hw/vt82c686.c @@ -211,9 +211,6 @@ static void pm_ioport_writew(void *opaque, uint32_t addr, uint32_t val) acpi_pm1_evt_write_en(&s->ar, val); pm_update_sci(s); break; - case 0x04: - acpi_pm1_cnt_write(&s->ar, val, 0); - break; default: break; } @@ -233,9 +230,6 @@ static uint32_t pm_ioport_readw(void *opaque, uint32_t addr) case 0x02: val = s->ar.pm1.evt.en; break; - case 0x04: - val = s->ar.pm1.cnt.cnt; - break; default: val = 0; break; @@ -443,7 +437,7 @@ static int vt82c686b_pm_initfn(PCIDevice *dev) memory_region_add_subregion(get_system_io(), 0, &s->io); acpi_pm_tmr_init(&s->ar, pm_tmr_timer, &s->io); - acpi_pm1_cnt_init(&s->ar); + acpi_pm1_cnt_init(&s->ar, &s->io); pm_smbus_init(&s->dev.qdev, &s->smb); |