]>
Commit | Line | Data |
---|---|---|
845773ab IY |
1 | #ifndef HW_FDC_H |
2 | #define HW_FDC_H | |
3 | ||
dfc65f1f | 4 | #include "qemu-common.h" |
d288c7ba | 5 | |
87ecb68b PB |
6 | /* fdc.c */ |
7 | #define MAX_FD 2 | |
87ecb68b | 8 | |
61a8d649 MA |
9 | typedef enum FDriveType { |
10 | FDRIVE_DRV_144 = 0x00, /* 1.44 MB 3"5 drive */ | |
11 | FDRIVE_DRV_288 = 0x01, /* 2.88 MB 3"5 drive */ | |
12 | FDRIVE_DRV_120 = 0x02, /* 1.2 MB 5"25 drive */ | |
13 | FDRIVE_DRV_NONE = 0x03, /* No drive connected */ | |
14 | } FDriveType; | |
15 | ||
dfc65f1f | 16 | ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds); |
63ffb564 BS |
17 | void fdctrl_init_sysbus(qemu_irq irq, int dma_chann, |
18 | target_phys_addr_t mmio_base, DriveInfo **fds); | |
19 | void sun4m_fdctrl_init(qemu_irq irq, target_phys_addr_t io_base, | |
20 | DriveInfo **fds, qemu_irq *fdc_tc); | |
61a8d649 MA |
21 | |
22 | FDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i); | |
34d4260e | 23 | |
845773ab | 24 | #endif |