summaryrefslogtreecommitdiff
path: root/Kernel/BlkDev/Patches/BlkDevAddFDC.HC
blob: a8f34f7ca075c271fb23234ad851a5bd6ba25a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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 {
    dv->size=bd->max_blk+1;
    FDCFsChk(dv,bd,&br,num);
    res++;
  }
  break;