diff options
| author | Harley Travis <harleytravis123@outlook.com> | 2026-05-27 18:04:13 -0500 |
|---|---|---|
| committer | Harley Travis <harleytravis123@outlook.com> | 2026-05-27 18:04:13 -0500 |
| commit | 32673d5872a2c77c2cc70a14a1e50cd440bc0180 (patch) | |
| tree | 568fb469e295bbb69d166765d4712c21f77568fc /Kernel/KFloppyB.HH | |
| parent | b223d23c0165fccf014a4e8c0ed1a21425be7100 (diff) | |
| download | templeos-floppy-driver-32673d5872a2c77c2cc70a14a1e50cd440bc0180.tar.gz | |
Refactor source code and create an "installer"
I have moved some source files into subdirectories for ease of
installation. I have also added an installer script to automatically
place driver files into their respective system directories.
Diffstat (limited to 'Kernel/KFloppyB.HH')
| -rw-r--r-- | Kernel/KFloppyB.HH | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Kernel/KFloppyB.HH b/Kernel/KFloppyB.HH new file mode 100644 index 0000000..76f6859 --- /dev/null +++ b/Kernel/KFloppyB.HH @@ -0,0 +1,25 @@ +/*
+ Copyright (C) 2025-2026 Harley Travis <yoshi128k@gmail.com>.
+ This software (including source code) is licensed under the BSD Zero Clause
+ License. See the Copying.TXT file for details.
+*/
+
+// headers for floppy driver
+public extern Bool FDCIrq;
+public extern U16 fdc_base;
+public extern U0 CMOSGetFloppyDrives();
+public extern U0 FDCSendCmd(U16 base, U8 cmd);
+public extern U8 FDCReadData(U16 base);
+public extern U0 FDCCheckInt(U16 base, U8 *st0, U8 *cyl);
+public extern I16 fdc_mtr_ticks;
+public extern U8 fdc_mtr_state;
+public extern U0 FDCMotorOff(U16 base);
+public extern U0 FDCMotorPwrOffTimer();
+public extern U0 FDCMotorCtrl(U16 base, Bool onoff);
+public extern I8 FDCRecalibrate(U16 base);
+public extern I8 FDCReset(U16 base);
+public extern I8 FDCSeek(U16 base, U8 cyli, U8 head);
+public extern U0 FDCRead(U16 base, U8 cyl, U8 head, U8 sect, U8 trklen);
+public extern U0 FDCReadMulti(U16 base, U8 cyl, U8 head, U8 sect, U8 trklen);
+public extern U0 FDCWrite(U16 base, U8 cyl, U8 head, U8 sect, U8 trklen);
+public extern U0 FDCWriteMulti(U16 base, U8 cyl, U8 head, U8 sect, U8 trklen);
|
