Isaku Yamahata | 845773a | 2010-05-14 16:29:15 +0900 | [diff] [blame] | 1 | #ifndef HW_FDC_H |
| 2 | #define HW_FDC_H |
| 3 | |
Markus Armbruster | dfc65f1 | 2012-05-11 17:22:19 +0200 | [diff] [blame] | 4 | #include "qemu-common.h" |
Blue Swirl | d288c7b | 2011-02-12 21:23:12 +0000 | [diff] [blame] | 5 | |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 6 | /* fdc.c */ |
| 7 | #define MAX_FD 2 |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 8 | |
Markus Armbruster | 61a8d64 | 2012-07-10 11:12:27 +0200 | [diff] [blame] | 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 | |
Markus Armbruster | dfc65f1 | 2012-05-11 17:22:19 +0200 | [diff] [blame] | 16 | ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds); |
Blue Swirl | 63ffb56 | 2011-02-05 16:32:23 +0000 | [diff] [blame] | 17 | void fdctrl_init_sysbus(qemu_irq irq, int dma_chann, |
Avi Kivity | a8170e5 | 2012-10-23 12:30:10 +0200 | [diff] [blame] | 18 | hwaddr mmio_base, DriveInfo **fds); |
| 19 | void sun4m_fdctrl_init(qemu_irq irq, hwaddr io_base, |
Blue Swirl | 63ffb56 | 2011-02-05 16:32:23 +0000 | [diff] [blame] | 20 | DriveInfo **fds, qemu_irq *fdc_tc); |
Markus Armbruster | 61a8d64 | 2012-07-10 11:12:27 +0200 | [diff] [blame] | 21 | |
| 22 | FDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i); |
Kevin Wolf | 34d4260 | 2011-10-20 16:37:26 +0200 | [diff] [blame] | 23 | |
Isaku Yamahata | 845773a | 2010-05-14 16:29:15 +0900 | [diff] [blame] | 24 | #endif |