summaryrefslogtreecommitdiff
path: root/hw/i8254.c
diff options
context:
space:
mode:
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 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)