#include <disk.h>
Public Member Functions | |
Disk (char *name, VoidFunctionPtr callWhenDone, int callArg) | |
~Disk () | |
void | ReadRequest (int sectorNumber, char *data) |
void | WriteRequest (int sectorNumber, char *data) |
void | HandleInterrupt () |
int | ComputeLatency (int newSector, bool writing) |
|
Definition at line 43 of file disk.cc. References ASSERT, DEBUG(), DiskSize, FALSE, Lseek(), MagicNumber, MagicSize, OpenForReadWrite(), OpenForWrite(), Read(), VoidFunctionPtr, and WriteFile().
|
|
Definition at line 76 of file disk.cc. References Close().
|
|
Definition at line 233 of file disk.cc. References DEBUG(), FALSE, RotationTime, stats, and Statistics::totalTicks. Referenced by ReadRequest(), and WriteRequest().
|
|
Definition at line 162 of file disk.cc. References FALSE.
|
|
Definition at line 116 of file disk.cc. References ASSERT, ComputeLatency(), DEBUG(), DebugIsEnabled(), DiskInt, FALSE, interrupt, Lseek(), MagicSize, Statistics::numDiskReads, NumSectors, Read(), Interrupt::Schedule(), SectorSize, stats, and TRUE.
|
|
Definition at line 136 of file disk.cc. References ASSERT, ComputeLatency(), DEBUG(), DebugIsEnabled(), DiskInt, interrupt, Lseek(), MagicSize, Statistics::numDiskWrites, NumSectors, Interrupt::Schedule(), SectorSize, stats, TRUE, and WriteFile().
|