Try to be more consistent when referring to disks vs. drives (eg, Drive Controllers, not Disk Controllers)
This commit is contained in:
parent
1cc5b58c1e
commit
b04ef7e49f
40 changed files with 5266 additions and 68 deletions
|
|
@ -92,11 +92,11 @@
|
|||
*
|
||||
* An example of #1 is in /devices/pc/machine/5160/cga/256kb/demo/machine.xml:
|
||||
*
|
||||
* <hdc id="hdcXT" drives='[{name:"10Mb Hard Disk",type:3}]'/>
|
||||
* <hdc id="hdcXT" drives='[{name:"10Mb Hard Drive",type:3}]'/>
|
||||
*
|
||||
* and an example of #2 is in /disks/pc/fixed/win101.xml:
|
||||
*
|
||||
* <hdc id="hdcXT" drives='[{name:"10Mb Hard Disk",path:"/disks/pc/fixed/win101/10mb.json",type:3}]'/>
|
||||
* <hdc id="hdcXT" drives='[{name:"10Mb Hard Drive",path:"/disks/pc/fixed/win101/10mb.json",type:3}]'/>
|
||||
*
|
||||
* The HDC component expects an array of drive entries. Array position determines drive numbering
|
||||
* (the first entry is drive 0, the second is drive 1, etc), and each entry contains the following
|
||||
|
|
@ -150,7 +150,7 @@
|
|||
* The real challenge here is avoiding revocation of a machine that still has critical changes to commit,
|
||||
* but since we can't even solve the problem of a user closing their browser at an inopportune time
|
||||
* and potentially leaving a disk image in an inconsistent state, premature revocation is the least of
|
||||
* our problems. Since a real hard disk could suffer the same fate if the machine's power was turned off
|
||||
* our problems. Since a real hard drive could suffer the same fate if the machine's power was turned off
|
||||
* at the wrong time, you could say that we're simply providing a faithful simulation of reality.
|
||||
*/
|
||||
|
||||
|
|
@ -1062,7 +1062,7 @@ Disk.prototype.load = function(sDiskName, sDiskPath, file, fnNotify, controller)
|
|||
var sDiskParm = DumpAPI.QUERY.PATH;
|
||||
var sSizeParm = '&' + DumpAPI.QUERY.MBHD + "=10";
|
||||
/*
|
||||
* 'mbhd' is a new parm added for hard disk support. In the case of 'file' or 'dir' requests,
|
||||
* 'mbhd' is a new parm added for hard drive support. In the case of 'file' or 'dir' requests,
|
||||
* 'mbhd' informs DumpAPI.ENDPOINT that it should create a hard disk image, and one not larger than
|
||||
* the specified size (eg, 10mb). In fact, until DumpAPI.ENDPOINT is changed to create custom hard
|
||||
* disk BPBs, you'll always get a standard PC XT 10mb disk image, so if the 'file' or 'dir' contains
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ FDC.REG_DATA = {
|
|||
/*
|
||||
* FDC "Fixed Disk" Register (0x3F6, write-only)
|
||||
*
|
||||
* Since this register's functions are all specific to the Hard Disk Controller, see the HDC component for details.
|
||||
* Since this register's functions are all specific to the Hard Drive Controller, see the HDC component for details.
|
||||
* The fact that this HDC register is in the middle of the FDC I/O port range is an oddity of the "HFCOMBO" controller.
|
||||
*/
|
||||
|
||||
|
|
@ -351,8 +351,8 @@ FDC.REG_DATA = {
|
|||
* FDC Digital Input Register (0x3F7, read-only, MODEL_5170 only)
|
||||
*
|
||||
* Bit 7 indicates a diskette change (the MODEL_5170 introduced change-line support). Bits 0-6 are for the selected
|
||||
* hard disk drive, so this port must be shared with the HDC; bits 0-6 are valid for 50 microseconds after a write to
|
||||
* the Drive Head Register.
|
||||
* hard drive, so this port must be shared with the HDC; bits 0-6 are valid for 50 microseconds after a write to the
|
||||
* Drive Head Register.
|
||||
*/
|
||||
FDC.REG_INPUT = {
|
||||
PORT: 0x3F7,
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ HDC.DEFAULT_DRIVE_NAME = "Hard Drive";
|
|||
* perfectly justified in retaining my original understanding of Kb and Mb and completely ignoring the
|
||||
* existence of KiB and MiB.
|
||||
*
|
||||
* Besides, I suspect these changes were nothing more than a self-serving push by hard disk manufacturers,
|
||||
* Besides, I suspect these changes were nothing more than a self-serving push by hard drive manufacturers,
|
||||
* who wanted to exaggerate their disk capacities by treating Mb as 1,000,000 bytes.
|
||||
*
|
||||
* Also, I capitalize only the first letter of units like Kb and Mb, because kilobyte and megabyte are
|
||||
|
|
@ -578,7 +578,7 @@ HDC.prototype.setBinding = function(sHTMLType, sBinding, control, sValue)
|
|||
var sAlert = web.downloadFile(disk.encodeAsBase64(), "octet-stream", true, disk.sDiskFile.replace(".json", ".img"));
|
||||
web.alertUser(sAlert);
|
||||
} else {
|
||||
hdc.notice("Hard disk " + iDrive + " is not available.");
|
||||
hdc.notice("Hard drive " + iDrive + " is not available.");
|
||||
}
|
||||
};
|
||||
}(+sBinding.slice(-1));
|
||||
|
|
@ -1195,7 +1195,7 @@ HDC.prototype.seekDrive = function(drive, iSector, nSectors)
|
|||
/*
|
||||
* Important difference between the FDC and the XTC: the XTC uses 0-based sector numbers, so unlike
|
||||
* FDC.seekDrive(), we must NOT add 1 to bSector below. I could change how sector numbers are stored in
|
||||
* hard disk images, but it seems preferable to keep the image format consistent and controller-independent.
|
||||
* hard drive images, but it seems preferable to keep the image format consistent and controller-independent.
|
||||
*/
|
||||
drive.bSector = (iSector % nSectorsPerTrack);
|
||||
drive.nBytes = nSectors * aDiskInfo[3];
|
||||
|
|
@ -1324,8 +1324,8 @@ HDC.prototype.doneLoadDisk = function(drive, disk, sDiskName, sDiskPath)
|
|||
/**
|
||||
* unloadDrive(iDrive)
|
||||
*
|
||||
* NOTE: At the moment, we support only auto-mounts; there is no user interface for selecting hard disk images,
|
||||
* let alone unloading them, so there is currently no need for the following function.
|
||||
* NOTE: At the moment, we support only auto-mounts; there is no user interface for selecting hard drive
|
||||
* images, let alone unloading them, so there is currently no need for the following function.
|
||||
*
|
||||
* @this {HDC}
|
||||
* @param {number} iDrive
|
||||
|
|
@ -2158,7 +2158,7 @@ HDC.prototype.setATCIRR = function(fWrite)
|
|||
if (!(this.regFDR & HDC.ATC.FDR.INT_DISABLE)) {
|
||||
/*
|
||||
* TODO: Determine what the "correct" instruction delay should be here. When the OS/2 1.0 Install Disk
|
||||
* begins copying files to the hard disk, at one point it performs the following 125-sector write (use the
|
||||
* begins copying files to the hard drive, at one point it performs the following 125-sector write (use the
|
||||
* Debugger's "m hdc on" and "m pic on" commands to enable HDC and PIC messages, along with "m data on"
|
||||
* if you also want to see the actual sector data being written):
|
||||
*
|
||||
|
|
@ -2953,7 +2953,7 @@ HDC.prototype.intBIOSDisk = function(addr)
|
|||
* controller the caller really wants to reset.
|
||||
*
|
||||
* An unfortunate side-effect of this behavior: when the HDC BIOS is initialized for the first time, it may
|
||||
* issue several resets internally, depending on whether there are 0, 1 or 2 hard disks installed, and each
|
||||
* issue several resets internally, depending on whether there are 0, 1 or 2 hard drives installed, and each
|
||||
* of those resets also triggers completely useless diskette resets, each wasting up to two seconds waiting
|
||||
* for the FDC to interrupt. The FDC tries to interrupt, but it can't, because at this early stage of
|
||||
* ROM BIOS initialization, IRQ.FDC hasn't been unmasked yet.
|
||||
|
|
|
|||
Loading…
Reference in a new issue