mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
renamed register members to better align with the standard
Renamed members that carry register values to better align with the actual wording in the ATA/ATAPI-6 standard. Other changes in this commit include: - added a bunch of named constants for ATA registers and their bits - improved PCI configuration space setup - renamed class IDEPCIAdapter to IDEController
This commit is contained in:
parent
b9e6445baa
commit
4131aa709f
2 changed files with 395 additions and 385 deletions
|
|
@ -29,7 +29,7 @@ import { PS2 } from "./ps2.js";
|
|||
import { read_elf } from "./elf.js";
|
||||
|
||||
import { FloppyController } from "./floppy.js";
|
||||
import { IDEPCIAdapter } from "./ide.js";
|
||||
import { IDEController } from "./ide.js";
|
||||
import { VirtioNet } from "./virtio_net.js";
|
||||
import { VGAScreen } from "./vga.js";
|
||||
import { VirtioBalloon } from "./virtio_balloon.js";
|
||||
|
|
@ -1120,7 +1120,7 @@ CPU.prototype.init = function(settings, device_bus)
|
|||
};
|
||||
}
|
||||
|
||||
this.devices.ide = new IDEPCIAdapter(this, device_bus, ide_config);
|
||||
this.devices.ide = new IDEController(this, device_bus, ide_config);
|
||||
|
||||
if(settings.hda) {
|
||||
this.devices.hda = this.devices.ide.channels[0];
|
||||
|
|
|
|||
776
src/ide.js
776
src/ide.js
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue