예제 #1
0
void
SoftSectoredDisk::getControlInfo(unsigned long pos,
                                 bool&         hole,
                                 bool&         writeProtect)
{
    if (initialized_m)
    {
        hole         = defaultHoleStatus(pos);
        writeProtect = checkWriteProtect();
    }
    else
    {
        hole         = true;
        writeProtect = false;
    }

    debugss(ssFloppyDisk, INFO, "init: %d hole: %d wp: %d\n", initialized_m, hole, writeProtect);
}
예제 #2
0
void
HardSectoredDisk::getControlInfo(unsigned long pos,
                                 bool&         hole,
                                 bool&         writeProtect)
{
    if (initialized_m)
    {
        hole         = defaultHoleStatus(pos);
        writeProtect = checkWriteProtect();
    }
    else
    {
        // No disk in drive so hole light is on.
        hole         = true;

        // write protect sensor is not blocked.
        writeProtect = false;
    }
}