mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 22:33:53 -06:00
hw/isa/superio: Factor out the floppy disc controller code from pc87312.c
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20180308223946.26784-13-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cd9526ab7c
commit
6f6695b136
5 changed files with 58 additions and 32 deletions
|
@ -39,10 +39,6 @@ typedef struct PC87312State {
|
|||
uint16_t iobase;
|
||||
uint8_t config; /* initial configuration */
|
||||
|
||||
struct {
|
||||
ISADevice *dev;
|
||||
} fdc;
|
||||
|
||||
struct {
|
||||
ISADevice *dev;
|
||||
} ide;
|
||||
|
|
|
@ -29,6 +29,7 @@ typedef struct ISASuperIODevice {
|
|||
|
||||
ISADevice *parallel[MAX_PARALLEL_PORTS];
|
||||
ISADevice *serial[MAX_SERIAL_PORTS];
|
||||
ISADevice *floppy;
|
||||
} ISASuperIODevice;
|
||||
|
||||
typedef struct ISASuperIOFuncs {
|
||||
|
@ -47,6 +48,7 @@ typedef struct ISASuperIOClass {
|
|||
|
||||
ISASuperIOFuncs parallel;
|
||||
ISASuperIOFuncs serial;
|
||||
ISASuperIOFuncs floppy;
|
||||
} ISASuperIOClass;
|
||||
|
||||
#endif /* HW_ISA_SUPERIO_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue