diff options
| author | Harley Travis <harleytravis123@outlook.com> | 2026-06-10 19:38:10 -0500 |
|---|---|---|
| committer | Harley Travis <harleytravis123@outlook.com> | 2026-06-10 19:38:10 -0500 |
| commit | 4bc7bf943f6eb46c36584e8c36744b1ddfc0f30a (patch) | |
| tree | 271cc590cc4ae369f735c2e75c3b91f912e730d6 /Kernel | |
| parent | a18382111660fbc1937d8b55697192e7b9ef7b02 (diff) | |
| download | templeos-floppy-driver-4bc7bf943f6eb46c36584e8c36744b1ddfc0f30a.tar.gz | |
Create Let2BlkDevTypeFDC.HC
This file patches Let2BlkDevType to provide drive letters for floppy drives. The original function is to be commented out and this file included in its place.
Diffstat (limited to 'Kernel')
| -rw-r--r-- | Kernel/Patches/Let2BlkDevTypeFDC.HC | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Kernel/Patches/Let2BlkDevTypeFDC.HC b/Kernel/Patches/Let2BlkDevTypeFDC.HC new file mode 100644 index 0000000..0632b88 --- /dev/null +++ b/Kernel/Patches/Let2BlkDevTypeFDC.HC @@ -0,0 +1,17 @@ +I64 Let2BlkDevType(U8 drv_let) +{//Drv letter to BlkDev Type. drv_let=0 not allowed. See BDT_NULL. + drv_let=Let2Let(drv_let); + if ('A'<=drv_let<='B') + return BDT_RAM; + if ('C'<=drv_let<='L') + return BDT_ATA; + if ('M'<=drv_let<='P') + return BDT_ISO_FILE_READ; + if ('Q'<=drv_let<='S') + return BDT_ISO_FILE_WRITE; + if ('T'<=drv_let<='V') + return BDT_ATAPI; + if ('W'<=drv_let<='Z') + return BDT_FLOPPY; + return BDT_NULL; +}
\ No newline at end of file |
