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:
Christian Schnell 2025-05-12 20:17:08 +02:00 committed by Fabian
parent b9e6445baa
commit 4131aa709f
2 changed files with 395 additions and 385 deletions

View file

@ -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];

File diff suppressed because it is too large Load diff