#include "dma.h"#include "irq.h"#include "blockdev.h"#include "semaphore.h"#include "timer.h"#include "sched.h"Include dependency graph for floppy.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | Floppy |
| This is the floppy disk driver. More... | |
Functions | |
| bool | really_turn_motor_off (void *floppy_void_ptr) |
| bool | floppy_interrupt_handler () |
Variables | |
| Floppy * | floppy |
| const unsigned | DG144_HEADS = 2 |
| const unsigned | DG144_TRACKS = 80 |
| const unsigned | DG144_SPT = 18 |
| const unsigned | DG144_GAP3FMT = 0x54 |
| const unsigned | DG144_GAP3RW = 0x1b |
| const unsigned | DG168_HEADS = 2 |
| const unsigned | DG168_TRACKS = 80 |
| const unsigned | DG168_SPT = 21 |
| const unsigned | DG168_GAP3FMT = 0x0c |
| const unsigned | DG168_GAP3RW = 0x1c |
| const unsigned | FDC_DOR = 0x3f2 |
| const unsigned | FDC_MSR = 0x3f4 |
| const unsigned | FDC_DRS = 0x3f4 |
| const unsigned | FDC_DATA = 0x3f5 |
| const unsigned | FDC_DIR = 0x3f7 |
| const unsigned | FDC_CCR = 0x3f7 |
| const unsigned | CMD_SPECIFY = 0x03 |
| const unsigned | CMD_WRITE = 0xc5 |
| const unsigned | CMD_READ = 0xe6 |
| const unsigned | CMD_RECAL = 0x07 |
| const unsigned | CMD_SENSEI = 0x08 |
| const unsigned | CMD_FORMAT = 0x4d |
| const unsigned | CMD_SEEK = 0x0f |
| const unsigned | CMD_VERSION = 0x10 |
|
|
Interrupt handler called to signal the completion of an operation.
|
|
|
|
|
|
format track (+ MFM)
|
|
|
read data (+ MT,MFM,SK)
|
|
|
recalibrate
|
|
|
seek track
|
|
|
sense interrupt status
|
|
|
specify drive timings
|
|
|
FDC version.
|
|
|
write data (+ MT,MFM)
|
|
|
gap3 while formatting (1.44M)
|
|
|
gap3 while reading/writing (1.44M)
|
|
|
heads per drive (1.44M)
|
|
|
sectors per track (1.44M)
|
|
|
number of tracks (1.44M)
|
|
|
gap3 while formatting (1.68M)
|
|
|
gap3 while reading/writing (1.68M)
|
|
|
heads per drive (1.68M)
|
|
|
sectors per track (1.68M)
|
|
|
number of tracks (1.68M)
|
|
|
Config Control Register (output).
|
|
|
Data Register.
|
|
|
Digital Input Register (input).
|
|
|
Digital Output Register.
|
|
|
Data Rate Select Register (output).
|
|
|
Main Status Register (input).
|
|
|
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman