i8254: Factor out pit_get_channel_info
commit4aa5d2853a69d95f5e05bd02200dfc6f47cab9de
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 1 Feb 2012 19:31:43 +0000 (1 20:31 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 17 Feb 2012 15:58:22 +0000 (17 09:58 -0600)
tree16251b86d628106b5933949ae7ceb932f3b67569
parent302fe51b5900c5ca5be921269b61f4862e0634ce
i8254: Factor out pit_get_channel_info

Instead of providing 4 individual query functions for mode, gate, output
and initial counter state, introduce a service that queries all
information at once. This comes with tiny additional costs for
pcspk_callback but with a much cleaner interface. Also, it will simplify
the implementation of the KVM in-kernel PIT model.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/i8254.c
hw/i8254.h
hw/pcspk.c