fdc.h 742 B

123456789101112131415161718192021222324
  1. #ifndef HW_FDC_H
  2. #define HW_FDC_H
  3. #include "qemu-common.h"
  4. /* fdc.c */
  5. #define MAX_FD 2
  6. typedef enum FDriveType {
  7. FDRIVE_DRV_144 = 0x00, /* 1.44 MB 3"5 drive */
  8. FDRIVE_DRV_288 = 0x01, /* 2.88 MB 3"5 drive */
  9. FDRIVE_DRV_120 = 0x02, /* 1.2 MB 5"25 drive */
  10. FDRIVE_DRV_NONE = 0x03, /* No drive connected */
  11. } FDriveType;
  12. ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds);
  13. void fdctrl_init_sysbus(qemu_irq irq, int dma_chann,
  14. target_phys_addr_t mmio_base, DriveInfo **fds);
  15. void sun4m_fdctrl_init(qemu_irq irq, target_phys_addr_t io_base,
  16. DriveInfo **fds, qemu_irq *fdc_tc);
  17. FDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i);
  18. #endif