Add support for using floppy images in CBFS.
[seabios.git] / src / block.c
index 3345db7154ade50c7e73958b626263ae03ef6cd6..aa341a23d0c53cc5e7ddd9382d195070cf7744d3 100644 (file)
@@ -235,12 +235,14 @@ process_op(struct disk_op_s *op)
 {
     u8 type = GET_GLOBAL(Drives.drives[op->driveid].type);
     switch (type) {
+    case DTYPE_FLOPPY:
+        return process_floppy_op(op);
     case DTYPE_ATA:
         return process_ata_op(op);
     case DTYPE_ATAPI:
         return process_atapi_op(op);
-    case DTYPE_FLOPPY:
-        return process_floppy_op(op);
+    case DTYPE_RAMDISK:
+        return process_ramdisk_op(op);
     default:
         op->count = 0;
         return DISK_RET_EPARAM;