]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/i8254.c
PC speaker emulation (Joachim Henke)
[mirror_qemu.git] / hw / i8254.c
index 6f05168274058ccbc8bdff729229a713e5c99fa8..a4097632eb283b208aa4445779d3f57db37c3d2b 100644 (file)
@@ -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)