| Age | Commit message (Collapse) | Author |
|
Since this file is effectively a patch to KStart32, it makes sense to keep it in the Patches subdirectory.
|
|
I added headers for the "read ID" and disk check functions, and added the proper types.
|
|
|
|
|
|
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.
|
|
This file adds a case to BlkDevInit for the floppy BDT, allowing it to be initialized. It is to be placed after the last case in the function's switch statement.
|
|
The Bt call was modified to test for the corrrect bit of SRA.
|
|
FDCWriteBlks now checks if the disk is write-protected before attempting a write, throwing an exception if it is. I also reworked the retry check for both it and FDCReadBlks.
|
|
I realized that the logic that determined the sector size value sent to the controller would not work properly on larger sector size, so I redid it.
|
|
The BlkDevAdd code now checks if the floppy disk has a valid RedSea boot sector before attempting to initialize it.
|
|
BlkDevAdd should set drv_offset to 0 (since the BlkDev's drv_offset will also be zero; floppies don't have a partition table), so I removed the forced-set to 0 in the code.
|
|
I have added a function that will check for the presence of valid sector data on either side of a floppy disk. This function is used to check for the presence of a disk in a way that does not rely on the proper handling of the disk change flag.
|
|
This file adds code for handling floppy block devices to the BlkDevAdd function. It is to be included at the end of the function's switch statement.
|
|
This file replaces the DefineLstLoad call that sets ST_BLKDEV_TYPES to add the FDC type. The original code is to be commented out and this file included after it.
|
|
This file replaces the block device type list in KernelA.HH. The original code is to be commented out and this file included after it.
|
|
I halved the size of the DMA buffer in keeping with the "one track at a time" methodology I have adopted.
|
|
This file contains new headers for the BlkDev-ified driver.
|
|
I added the data rate values accepted by the FDC to the main header file.
|
|
I moved the version check into the drive-0-only code; it wouldn't make sense to check the version each time a drive gets initialized.
|
|
I have decided not to use multi-track mode and instead do atomic reads and writes to sector ranges. I have also added a timeout to the motor command when the motor is turned on (approximately 500 milliseconds to accomodate 5ΒΌ" drives). FDCInit now sets the highest-accessible block.
|
|
DMA will always be used, so I have removed the DMA flag from CBlkDev.
|
|
This is the initial commit for the BlkDev-ified driver. It is not at all
in a working state at this point, and the old files have been left for
reference purposes.
|
|
I fixed the read and write functions so that they correctly check the
status of the controller before performing the write (hopefully).
|
|
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.
|