Re: ATAPI Doesn't fire IRQ
Posted: Sun Apr 05, 2020 4:53 pm
Looks like it helped a bit, though when I'm sending data, nothing happens, I've captured those logs from qemu
I've read from another forum topic that I have to reverse bytes, so its 0x00a8. Reversing back (0xa800) doesn't really help much.
Code: Select all
Beginning to transfer ATAPI Packet =====================
[email protected]:ide_data_writew IDE PIO wr @ 0x170 (Data: Word); val 0x00a8; bus 0x55d903cddb80; IDEState 0x55d903cddbf8
[email protected]:ide_data_writew IDE PIO wr @ 0x170 (Data: Word); val 0x0000; bus 0x55d903cddb80; IDEState 0x55d903cddbf8
[email protected]:ide_data_writew IDE PIO wr @ 0x170 (Data: Word); val 0x0000; bus 0x55d903cddb80; IDEState 0x55d903cddbf8
[email protected]:ide_data_writew IDE PIO wr @ 0x170 (Data: Word); val 0x0000; bus 0x55d903cddb80; IDEState 0x55d903cddbf8
[email protected]:ide_data_writew IDE PIO wr @ 0x170 (Data: Word); val 0x0100; bus 0x55d903cddb80; IDEState 0x55d903cddbf8
[email protected]:ide_data_writew IDE PIO wr @ 0x170 (Data: Word); val 0x0000; bus 0x55d903cddb80; IDEState 0x55d903cddbf8
Code: Select all
s2_OutW(dev->channel->base, 0x00a8);
s2_OutW(dev->channel->base, 0x0000);
s2_OutW(dev->channel->base, 0x0000);
s2_OutW(dev->channel->base, 0x0000);
s2_OutW(dev->channel->base, 0x0100);
s2_OutW(dev->channel->base, 0x0000);