From 2da44dd0c60488727e9ca429ec1480e0968d0ca1 Mon Sep 17 00:00:00 2001 From: John Snow Date: Fri, 22 Jan 2016 15:50:56 -0500 Subject: fdc: add drive type qapi enum Change the floppy drive type to a QAPI enum type, to allow us to specify the floppy drive type from the CLI in a forthcoming patch. Reviewed-by: Eric Blake Signed-off-by: John Snow Message-id: 1453495865-9649-4-git-send-email-jsnow@redhat.com --- include/hw/block/fdc.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'include/hw/block') diff --git a/include/hw/block/fdc.h b/include/hw/block/fdc.h index d48b2f860c..adce14f479 100644 --- a/include/hw/block/fdc.h +++ b/include/hw/block/fdc.h @@ -6,13 +6,6 @@ /* fdc.c */ #define MAX_FD 2 -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; - #define TYPE_ISA_FDC "isa-fdc" ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds); @@ -21,6 +14,6 @@ void fdctrl_init_sysbus(qemu_irq irq, int dma_chann, void sun4m_fdctrl_init(qemu_irq irq, hwaddr io_base, DriveInfo **fds, qemu_irq *fdc_tc); -FDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i); +FloppyDriveType isa_fdc_get_drive_type(ISADevice *fdc, int i); #endif -- cgit v1.2.3-55-g7522