Statistics
| Branch: | Revision:

root / hw / i8254.h @ 93148aa5

History | View | Annotate | Download (1.9 kB)

# Date Author Comment
b1277b03 02/17/2012 05:58 pm Jan Kiszka

i8254: Factor out interface header

Move the public interface of the PIT into its own header file and update
all users.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

319ba9f5 02/17/2012 05:58 pm Jan Kiszka

i8254: Pass alternative IRQ output object on initialization

HPET legacy emulation will require control over the PIT IRQ output. To
enable this, add support for an alternative IRQ output object to the PIT
factory function. If the isa_irq number is < 0, this object will be...

ce967e2f 02/17/2012 05:58 pm Jan Kiszka

i8254: Rework & fix interaction with HPET in legacy mode

When the HPET enters legacy mode, the IRQ output of the PIT is
suppressed and replaced by the HPET timer 0. But the current code to
emulate this was broken in many ways. It reset the PIT state after...

4aa5d285 02/17/2012 05:58 pm Jan Kiszka

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...