aboutsummaryrefslogtreecommitdiff
path: root/hw/i8254.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-24 21:58:30 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-24 21:58:30 +0000
commitfd06c37550b43980e8d641bb109c219cbe001d13 (patch)
tree785a969324a3bcd45cce511775a15891e3cc673d /hw/i8254.c
parent52328140e2892c0f7033f6857f1a96da1680bf79 (diff)
downloadqemu-fd06c37550b43980e8d641bb109c219cbe001d13.zip
qemu-fd06c37550b43980e8d641bb109c219cbe001d13.tar.gz
qemu-fd06c37550b43980e8d641bb109c219cbe001d13.tar.bz2
PC speaker emulation (Joachim Henke)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1851 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/i8254.c')
-rw-r--r--hw/i8254.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/i8254.c b/hw/i8254.c
index 6f05168..a409763 100644
--- a/hw/i8254.c
+++ b/hw/i8254.c
@@ -209,6 +209,18 @@ int pit_get_gate(PITState *pit, int channel)
return s->gate;
}
+int pit_get_initial_count(PITState *pit, int channel)
+{
+ PITChannelState *s = &pit->channels[channel];
+ return s->count;
+}
+
+int pit_get_mode(PITState *pit, int channel)
+{
+ PITChannelState *s = &pit->channels[channel];
+ return s->mode;
+}
+
static inline void pit_load_count(PITChannelState *s, int val)
{
if (val == 0)