diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-24 21:58:30 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-04-24 21:58:30 +0000 |
commit | fd06c37550b43980e8d641bb109c219cbe001d13 (patch) | |
tree | 785a969324a3bcd45cce511775a15891e3cc673d /hw/i8254.c | |
parent | 52328140e2892c0f7033f6857f1a96da1680bf79 (diff) |
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.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/i8254.c b/hw/i8254.c index 6f05168274..a4097632eb 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) |