]>
Commit | Line | Data |
---|---|---|
845773ab IY |
1 | #ifndef HW_FDC_H |
2 | #define HW_FDC_H | |
3 | ||
9af23989 | 4 | #include "qapi/qapi-types-block.h" |
d288c7ba | 5 | |
87ecb68b PB |
6 | /* fdc.c */ |
7 | #define MAX_FD 2 | |
87ecb68b | 8 | |
020c8e76 AF |
9 | #define TYPE_ISA_FDC "isa-fdc" |
10 | ||
dfc65f1f | 11 | ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds); |
63ffb564 | 12 | void fdctrl_init_sysbus(qemu_irq irq, int dma_chann, |
a8170e5e AK |
13 | hwaddr mmio_base, DriveInfo **fds); |
14 | void sun4m_fdctrl_init(qemu_irq irq, hwaddr io_base, | |
63ffb564 | 15 | DriveInfo **fds, qemu_irq *fdc_tc); |
61a8d649 | 16 | |
2da44dd0 | 17 | FloppyDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i); |
e08fde0c RK |
18 | void isa_fdc_get_drive_max_chs(FloppyDriveType type, |
19 | uint8_t *maxc, uint8_t *maxh, uint8_t *maxs); | |
34d4260e | 20 | |
845773ab | 21 | #endif |