mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Keep track of ISA ports ISA device is using in qdev.
Store all io ports used by device in ISADevice structure. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
21150814d9
commit
dee41d58ef
13 changed files with 57 additions and 0 deletions
4
hw/isa.h
4
hw/isa.h
|
@ -14,6 +14,8 @@ struct ISADevice {
|
|||
DeviceState qdev;
|
||||
uint32_t isairq[2];
|
||||
int nirqs;
|
||||
uint16_t ioports[32];
|
||||
int nioports;
|
||||
};
|
||||
|
||||
typedef int (*isa_qdev_initfn)(ISADevice *dev);
|
||||
|
@ -26,6 +28,8 @@ ISABus *isa_bus_new(DeviceState *dev);
|
|||
void isa_bus_irqs(qemu_irq *irqs);
|
||||
qemu_irq isa_reserve_irq(int isairq);
|
||||
void isa_init_irq(ISADevice *dev, qemu_irq *p, int isairq);
|
||||
void isa_init_ioport(ISADevice *dev, uint16_t ioport);
|
||||
void isa_init_ioport_range(ISADevice *dev, uint16_t start, uint16_t length);
|
||||
void isa_qdev_register(ISADeviceInfo *info);
|
||||
ISADevice *isa_create(const char *name);
|
||||
ISADevice *isa_create_simple(const char *name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue