Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / block / fdc.h
blobc367c5efeafe474fbfd5a8b98d49285061f5a3bb
1 #ifndef HW_FDC_H
2 #define HW_FDC_H
4 #include "exec/hwaddr.h"
5 #include "qapi/qapi-types-block.h"
7 /* fdc.c */
8 #define MAX_FD 2
10 #define TYPE_ISA_FDC "isa-fdc"
12 void isa_fdc_init_drives(ISADevice *fdc, DriveInfo **fds);
13 void fdctrl_init_sysbus(qemu_irq irq, hwaddr mmio_base, DriveInfo **fds);
14 void sun4m_fdctrl_init(qemu_irq irq, hwaddr io_base,
15 DriveInfo **fds, qemu_irq *fdc_tc);
17 void isa_fdc_set_iobase(ISADevice *fdc, hwaddr iobase);
18 void isa_fdc_set_enabled(ISADevice *fdc, bool enabled);
20 FloppyDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i);
21 int cmos_get_fd_drive_type(FloppyDriveType fd0);
23 #endif