summaryrefslogtreecommitdiff
path: root/Kernel/BlkDev/Patches/BlkDevAddFDC.HC
blob: f122412cc3e4477628dca58ba1ff4a0606ed7590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PATCH: Add the ability to create floppy drvs
// FILE: ::/Kernel/BlkDev/DskAddDev.HC
// TO INSTALL: #include this file at the end of the switch statement.

case BDT_FLOPPY:
  dv->dv_signature=DRV_SIGNATURE_VAL;
  if (!BlkDevInit(bd))
    dv->dv_signature=0;
  else {
    if (make_free)
      dv=DrvMakeFreeSlot(bd->first_drive_let);
    else
      dv=DrvMakeFreeSlot(DrvNextFreeLet(bd->first_drive_let))
    dv->size=bd->max_blk+1;
    FDCFsChk(dv,bd,&br,num);
  }
  break;