2010-05-14 09:29:15 +02:00
|
|
|
#ifndef HW_FDC_H
|
|
|
|
#define HW_FDC_H
|
|
|
|
|
2012-05-11 17:22:19 +02:00
|
|
|
#include "qemu-common.h"
|
2011-02-12 22:23:12 +01:00
|
|
|
|
2007-11-17 18:14:51 +01:00
|
|
|
/* fdc.c */
|
|
|
|
#define MAX_FD 2
|
|
|
|
|
2013-04-27 22:18:38 +02:00
|
|
|
#define TYPE_ISA_FDC "isa-fdc"
|
|
|
|
|
2012-05-11 17:22:19 +02:00
|
|
|
ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds);
|
2011-02-05 17:32:23 +01:00
|
|
|
void fdctrl_init_sysbus(qemu_irq irq, int dma_chann,
|
2012-10-23 12:30:10 +02:00
|
|
|
hwaddr mmio_base, DriveInfo **fds);
|
|
|
|
void sun4m_fdctrl_init(qemu_irq irq, hwaddr io_base,
|
2011-02-05 17:32:23 +01:00
|
|
|
DriveInfo **fds, qemu_irq *fdc_tc);
|
2012-07-10 11:12:27 +02:00
|
|
|
|
2016-01-22 21:50:56 +01:00
|
|
|
FloppyDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i);
|
2016-02-17 19:25:32 +01:00
|
|
|
void isa_fdc_get_drive_max_chs(FloppyDriveType type,
|
|
|
|
uint8_t *maxc, uint8_t *maxh, uint8_t *maxs);
|
2011-10-20 16:37:26 +02:00
|
|
|
|
2010-05-14 09:29:15 +02:00
|
|
|
#endif
|