diff options
author | Gerd Hoffmann | 2020-06-19 11:18:58 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2020-06-24 23:18:28 +0200 |
commit | 89ed90e318847e27e64185fe6a370fc7c91e2165 (patch) | |
tree | 73d3d8eb633f4bf60591fe2d2d3598de4647f885 /hw/i386/pc.c | |
parent | floppy: make isa_fdc_get_drive_max_chs static (diff) | |
download | qemu-89ed90e318847e27e64185fe6a370fc7c91e2165.tar.gz qemu-89ed90e318847e27e64185fe6a370fc7c91e2165.tar.xz qemu-89ed90e318847e27e64185fe6a370fc7c91e2165.zip |
floppy: move cmos_get_fd_drive_type() from pc
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
Message-Id: <20200619091905.21676-6-kraxel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/pc.c')
-rw-r--r-- | hw/i386/pc.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index d103b8c0ab..e78e32b41b 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -386,31 +386,6 @@ static uint64_t ioportF0_read(void *opaque, hwaddr addr, unsigned size) #define REG_EQUIPMENT_BYTE 0x14 -int cmos_get_fd_drive_type(FloppyDriveType fd0) -{ - int val; - - switch (fd0) { - case FLOPPY_DRIVE_TYPE_144: - /* 1.44 Mb 3"5 drive */ - val = 4; - break; - case FLOPPY_DRIVE_TYPE_288: - /* 2.88 Mb 3"5 drive */ - val = 5; - break; - case FLOPPY_DRIVE_TYPE_120: - /* 1.2 Mb 5"5 drive */ - val = 2; - break; - case FLOPPY_DRIVE_TYPE_NONE: - default: - val = 0; - break; - } - return val; -} - static void cmos_init_hd(ISADevice *s, int type_ofs, int info_ofs, int16_t cylinders, int8_t heads, int8_t sectors) { |