Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

floppy.h File Reference

#include "dma.h"
#include "irq.h"
#include "blockdev.h"
#include "semaphore.h"
#include "timer.h"
#include "sched.h"

Include dependency graph for floppy.h:

Include dependency graph

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

Included by dependency graph

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

Floppyfloppy
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


Function Documentation

bool floppy_interrupt_handler  )  [inline]
 

Interrupt handler called to signal the completion of an operation.

bool really_turn_motor_off void *  floppy_void_ptr  ) 
 


Variable Documentation

const unsigned CMD_FORMAT = 0x4d
 

format track (+ MFM)

const unsigned CMD_READ = 0xe6
 

read data (+ MT,MFM,SK)

const unsigned CMD_RECAL = 0x07
 

recalibrate

const unsigned CMD_SEEK = 0x0f
 

seek track

const unsigned CMD_SENSEI = 0x08
 

sense interrupt status

const unsigned CMD_SPECIFY = 0x03
 

specify drive timings

const unsigned CMD_VERSION = 0x10
 

FDC version.

const unsigned CMD_WRITE = 0xc5
 

write data (+ MT,MFM)

const unsigned DG144_GAP3FMT = 0x54
 

gap3 while formatting (1.44M)

const unsigned DG144_GAP3RW = 0x1b
 

gap3 while reading/writing (1.44M)

const unsigned DG144_HEADS = 2
 

heads per drive (1.44M)

const unsigned DG144_SPT = 18
 

sectors per track (1.44M)

const unsigned DG144_TRACKS = 80
 

number of tracks (1.44M)

const unsigned DG168_GAP3FMT = 0x0c
 

gap3 while formatting (1.68M)

const unsigned DG168_GAP3RW = 0x1c
 

gap3 while reading/writing (1.68M)

const unsigned DG168_HEADS = 2
 

heads per drive (1.68M)

const unsigned DG168_SPT = 21
 

sectors per track (1.68M)

const unsigned DG168_TRACKS = 80
 

number of tracks (1.68M)

const unsigned FDC_CCR = 0x3f7
 

Config Control Register (output).

const unsigned FDC_DATA = 0x3f5
 

Data Register.

const unsigned FDC_DIR = 0x3f7
 

Digital Input Register (input).

const unsigned FDC_DOR = 0x3f2
 

Digital Output Register.

const unsigned FDC_DRS = 0x3f4
 

Data Rate Select Register (output).

const unsigned FDC_MSR = 0x3f4
 

Main Status Register (input).

Floppy* floppy
 


Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman