diff options
| author | Harley Travis <harleytravis123@outlook.com> | 2026-06-20 20:00:32 -0500 |
|---|---|---|
| committer | Harley Travis <harleytravis123@outlook.com> | 2026-06-20 20:00:32 -0500 |
| commit | edd15150f34b040d5ab68a1b418705c0de895a1e (patch) | |
| tree | 0f0c7fc7d4440b76607169cf33dd3e3267b6e44a /Adam/ABlkDev/Patches/Mount2CaseBFDC.HC | |
| parent | 26fd4c3343fb5a55ac8b305a6adea3212e3d7fdd (diff) | |
| download | templeos-floppy-driver-edd15150f34b040d5ab68a1b418705c0de895a1e.tar.gz | |
Re-arrange patch files
Some of the patches are applied to files in subdirectories of ::/Kernel and ::/Adam. The directory tree has been re-arranged in such a way as to allow them to be #included without having the compiler backtrack to their parent directory.
Diffstat (limited to 'Adam/ABlkDev/Patches/Mount2CaseBFDC.HC')
| -rw-r--r-- | Adam/ABlkDev/Patches/Mount2CaseBFDC.HC | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Adam/ABlkDev/Patches/Mount2CaseBFDC.HC b/Adam/ABlkDev/Patches/Mount2CaseBFDC.HC new file mode 100644 index 0000000..2ffaa2f --- /dev/null +++ b/Adam/ABlkDev/Patches/Mount2CaseBFDC.HC @@ -0,0 +1,22 @@ +// PATCH: Add the ability to configure floppy BlkDevs (part 2 of 2) +// FILE: ::/Adam/ABlkDev/Mount.HC +// TO INSTALL: #include this file at the end of the second switch statement. +// ADAM PATCH: Must be installed after kernel patches! + +case BDT_FLOPPY: + if (defaults) { + // These assume a 1.44 Meg, 3.5-inch floppy + DocPrint("bd->base0=%s;",base0_buf); + DocPrint("bd->blk_size=128<<%d;",2); + DocPrint("bd->cyls=%s;bd->heads=%d;bd->spt=%s;","80",2,"18"); + DocPrint("bd->srt=%s;bd->hut=%s;bd->hlt=%s;","13","5","0"); + DocPrint("bd->bps=%d;bd->gpl1=%s;bd->gpl2=%s",0,"27","124"); + DocPrint("bd->dtl=%s","255"); + } else { + DocPrint("bd->base0=%s;",base0_buf); + DocPrint("bd->blk_size=128<<%d;",size); + DocPrint("bd->cyls=%s;bd->heads=%d;bd->spt=%s;",cyl_buf,heads,spt_buf); + DocPrint("bd->srt=%s;bd->hut=%s;bd->hlt=%s;",srt_buf,hut_buf,hlt_buf); + DocPrint("bd->bps=%d;bd->gpl1=%s;bd->gpl2=%s",bps,gpl1_buf,gpl2_buf); + DocPrint("bd->dtl=%s",dtl_buf); + }
\ No newline at end of file |
