From 64d7e9a421fea0ac50b44541f5521de455e7cd5d Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 13 Feb 2011 19:54:40 +0000 Subject: i8254: convert to qdev Convert to qdev. Don't expose PITState. Signed-off-by: Blue Swirl --- hw/pcspk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/pcspk.c') diff --git a/hw/pcspk.c b/hw/pcspk.c index 26a0ecb9df..5f02908dac 100644 --- a/hw/pcspk.c +++ b/hw/pcspk.c @@ -37,7 +37,7 @@ typedef struct { uint8_t sample_buf[PCSPK_BUF_LEN]; QEMUSoundCard card; SWVoiceOut *voice; - PITState *pit; + ISADevice *pit; unsigned int pit_count; unsigned int samples; unsigned int play_pos; @@ -137,7 +137,7 @@ static void pcspk_ioport_write(void *opaque, uint32_t addr, uint32_t val) } } -void pcspk_init(PITState *pit) +void pcspk_init(ISADevice *pit) { PCSpkState *s = &pcspk_state; -- cgit v1.2.3