From 020c8e7602fc6bf6a6ce62d99fb0a0882877ccd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 27 Apr 2013 22:18:38 +0200 Subject: fdc: QOM'ify ISA floppy controller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce type constant and cast macro to obsolete DO_UPCAST(). Reuse type constant for PC machine compatibility settings. Prepares for ISA realizefn. Signed-off-by: Andreas Färber Signed-off-by: Andreas Färber Message-id: 1367093935-29091-4-git-send-email-afaerber@suse.de Cc: Markus Armbruster Signed-off-by: Anthony Liguori --- include/hw/block/fdc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/hw') diff --git a/include/hw/block/fdc.h b/include/hw/block/fdc.h index a8f6f7c850..d48b2f860c 100644 --- a/include/hw/block/fdc.h +++ b/include/hw/block/fdc.h @@ -13,6 +13,8 @@ typedef enum FDriveType { FDRIVE_DRV_NONE = 0x03, /* No drive connected */ } FDriveType; +#define TYPE_ISA_FDC "isa-fdc" + ISADevice *fdctrl_init_isa(ISABus *bus, DriveInfo **fds); void fdctrl_init_sysbus(qemu_irq irq, int dma_chann, hwaddr mmio_base, DriveInfo **fds); -- cgit v1.2.3