Floppy Driver is basically done, just gotta implement DMA and then it should be all done!
This commit is contained in:
parent
cfb28351f1
commit
6987737813
@ -24,7 +24,7 @@ void Floppy_Handler()
|
||||
{
|
||||
// IRQ Handler
|
||||
FloppyIRQRecived = 1;
|
||||
Serial_Printf(DEBUG_COM_PORT, "Recived IRQ From Floppy Drive.\n");
|
||||
Serial_Printf(DEBUG_COM_PORT, "FLOPPY:> Recived IRQ From FDC.\n");
|
||||
}
|
||||
|
||||
void Floppy_IRQ_Wait()
|
||||
@ -296,13 +296,13 @@ void Floppy_Motor_Control(bool enable)
|
||||
{
|
||||
if(enable == true) {
|
||||
outb (FLOPPY_DOR, FLOPPY_DOR_MASK_DRIVE0_MOTOR | FLOPPY_DOR_MASK_RESET);
|
||||
Serial_Printf(DEBUG_COM_PORT, "Starting FDD Motor.");
|
||||
Serial_Printf(DEBUG_COM_PORT, "FLOPPY:> Starting FDD Motor.\n");
|
||||
int i;
|
||||
while(i >= 500) i++;
|
||||
}
|
||||
else {
|
||||
outb (FLOPPY_DOR, FLOPPY_DOR_MASK_DRIVE0_MOTOR | FLOPPY_DOR_MASK_RESET);
|
||||
Serial_Printf(DEBUG_COM_PORT, "Stopping FDD Motor.");
|
||||
Floppy_Reset();
|
||||
Serial_Printf(DEBUG_COM_PORT, "FLOPPY:> Stopping FDD Motor, FDC Reseting.\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ void __attribute__((section(".entry"))) start(BootParams* bootParams) {
|
||||
printf("Done!\n");
|
||||
masterFDDType = Master_FDD_Detect();
|
||||
slaveFDDType = Slave_FDD_Detect();
|
||||
Print_Storage_Types(masterFDDType, slaveFDDType);
|
||||
Floppy_Init();
|
||||
|
||||
|
||||
|
||||
|
||||
@ -6,5 +6,5 @@
|
||||
#pragma once
|
||||
|
||||
#define LOGO " _ _____ _ __________________\n / | / / | / | / / _/_ __/ ____/\n / |/ / /| | / |/ // / / / / __/ \n / /| / ___ |/ /| // / / / / /___ \n/_/ |_/_/ |_/_/ |_/___/ /_/ /_____/ \n"
|
||||
#define VERSION "RD-00028"
|
||||
#define VERSION "RD-00029"
|
||||
#define BOOTLOGO " _ ______ ____ ____ ______\n / | / / __ )/ __ \\/ __ /_ __/\n / |/ / __ / / / / / / // / \n / /| / /_/ / /_/ / /_/ // / \n/_/ |_/_____/\\____/\\____//_/ \n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user