ide: map at isa ports too (for serenityos, #299)

This commit is contained in:
Fabian 2022-07-21 22:07:45 +09:00
parent 81f8976500
commit cd384b9b0c

View file

@ -83,8 +83,8 @@ function IDEDevice(cpu, master_buffer, slave_buffer, is_cd, nr, bus)
this.pci_space = [
0x86, 0x80, 0x10, 0x70, 0x05, 0x00, 0xA0, 0x02,
0x00, 0x80, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
0 | 1, 0, 0x00, 0x00,
0 | 1, 0, 0x00, 0x00,
this.ata_port & 0xFF | 1, this.ata_port >> 8, 0x00, 0x00,
this.ata_port_high & 0xFF | 1, this.ata_port_high >> 8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, // second device
0x00, 0x00, 0x00, 0x00, // second device
this.master_port & 0xFF | 1, this.master_port >> 8, 0x00, 0x00,