2010-05-14 07:29:15 +00:00
|
|
|
#ifndef HW_FDC_H
|
|
|
|
#define HW_FDC_H
|
|
|
|
|
2012-05-11 15:22:19 +00:00
|
|
|
#include "qemu-common.h"
|
2011-02-12 21:23:12 +00:00
|
|
|
|
2007-11-17 17:14:51 +00:00
|
|
|
/* fdc.c */
|
|
|
|
#define MAX_FD 2
|
|
|
|
|
2012-07-10 09:12:27 +00:00
|
|
|
typedef enum FDriveType {
|
|
|
|
FDRIVE_DRV_144 = 0x00, /* 1.44 MB 3"5 drive */
|
|
|
|
FDRIVE_DRV_288 = 0x01, /* 2.88 MB 3"5 drive */
|
|
|
|
FDRIVE_DRV_120 = 0x02, /* 1.2 MB 5"25 drive */
|
|
|
|
FDRIVE_DRV_NONE = 0x03, /* No drive connected */
|
|
|
|
} FDriveType;
|
|
|
|
|
2012-05-11 15:22:19 +00:00
|
|
|
ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds);
|
2011-02-05 16:32:23 +00:00
|
|
|
void fdctrl_init_sysbus(qemu_irq irq, int dma_chann,
|
2012-10-23 10:30:10 +00:00
|
|
|
hwaddr mmio_base, DriveInfo **fds);
|
|
|
|
void sun4m_fdctrl_init(qemu_irq irq, hwaddr io_base,
|
2011-02-05 16:32:23 +00:00
|
|
|
DriveInfo **fds, qemu_irq *fdc_tc);
|
2012-07-10 09:12:27 +00:00
|
|
|
|
|
|
|
FDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i);
|
2011-10-20 14:37:26 +00:00
|
|
|
|
2010-05-14 07:29:15 +00:00
|
|
|
#endif
|