1 #ifndef HW_FDC_H 2 #define HW_FDC_H 3 4 #include "exec/hwaddr.h" 5 #include "hw/irq.h" 6 #include "qapi/qapi-types-block.h" 7 8 /* fdc.c */ 9 #define MAX_FD 2 10 11 #define TYPE_ISA_FDC "isa-fdc" 12 13 ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds); 14 void fdctrl_init_sysbus(qemu_irq irq, int dma_chann, 15 hwaddr mmio_base, DriveInfo **fds); 16 void sun4m_fdctrl_init(qemu_irq irq, hwaddr io_base, 17 DriveInfo **fds, qemu_irq *fdc_tc); 18 19 FloppyDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i); 20 void isa_fdc_get_drive_max_chs(FloppyDriveType type, 21 uint8_t *maxc, uint8_t *maxh, uint8_t *maxs); 22 23 #endif 24