hw/timer/i8254: rename pit_init() -> i8254_pit_init()

and remove the old i386/pc dependency

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Philippe Mathieu-Daudé 2017-10-17 13:44:15 -03:00 committed by Michael Tokarev
parent 40a3bbc93e
commit acf695eca6
11 changed files with 11 additions and 12 deletions

View file

@ -26,6 +26,7 @@
#define HW_I8254_H
#include "hw/hw.h"
#include "hw/qdev.h"
#include "hw/isa/isa.h"
#define PIT_FREQ 1193182
@ -48,8 +49,8 @@ typedef struct PITChannelInfo {
#define TYPE_I8254 "isa-pit"
#define TYPE_KVM_I8254 "kvm-pit"
static inline ISADevice *pit_init(ISABus *bus, int base, int isa_irq,
qemu_irq alt_irq)
static inline ISADevice *i8254_pit_init(ISABus *bus, int base, int isa_irq,
qemu_irq alt_irq)
{
DeviceState *dev;
ISADevice *d;

View file

@ -26,8 +26,8 @@
#define QEMU_I8254_INTERNAL_H
#include "hw/hw.h"
#include "hw/i386/pc.h"
#include "hw/isa/isa.h"
#include "qemu/timer.h"
typedef struct PITChannelState {
int count; /* can be 65536 */