mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
PC speaker emulation (Joachim Henke)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1851 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
52328140e2
commit
fd06c37550
7 changed files with 177 additions and 20 deletions
12
hw/i8254.c
12
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue