forcing 16bit pio writes, disabling 32bit pio writes. This was already the case for read pio ever since this driver got imported. This fixes booting from IDE drives in PIO mode with both the IDE and ATA busmanagers, at least on my ASUS P5E3 mainboard. If I am stepping out of bounds here please correct and let me know..

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27884 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen
2008-10-06 06:51:21 +00:00
parent a4da9c8634
commit e1fafdf355
@@ -140,6 +140,8 @@ ide_adapter_write_pio(ide_adapter_channel_info *channel, uint16 *data,
if (channel->lost)
return B_ERROR;
force_16bit = true;
if ((count & 1) != 0 || force_16bit) {
for (; count > 0; --count)
pci->write_io_16(device, ioaddr, *(data++));