|
@@ -42,6 +42,7 @@
|
|
|
#include "sysemu/block-backend.h"
|
|
|
#include "sysemu/blockdev.h"
|
|
|
#include "sysemu/sysemu.h"
|
|
|
+#include "exec/ioport.h"
|
|
|
#include "qemu/log.h"
|
|
|
#include "qemu/main-loop.h"
|
|
|
#include "qemu/module.h"
|
|
@@ -60,6 +61,7 @@ struct FDCtrlISABus {
|
|
|
uint32_t irq;
|
|
|
uint32_t dma;
|
|
|
struct FDCtrl state;
|
|
|
+ PortioList portio_list;
|
|
|
int32_t bootindexA;
|
|
|
int32_t bootindexB;
|
|
|
};
|
|
@@ -91,7 +93,7 @@ static void isabus_fdc_realize(DeviceState *dev, Error **errp)
|
|
|
FDCtrl *fdctrl = &isa->state;
|
|
|
Error *err = NULL;
|
|
|
|
|
|
- isa_register_portio_list(isadev, &fdctrl->portio_list,
|
|
|
+ isa_register_portio_list(isadev, &isa->portio_list,
|
|
|
isa->iobase, fdc_portio_list, fdctrl,
|
|
|
"fdc");
|
|
|
|