got the meaning of configure_dma()'s return value wrong. It respected the failsafe boot option after all. fixed plus few added dprintf() messages to see what's happening. Sorry for the fault. Searching more for the real problem..

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27709 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen 2008-09-23 19:02:51 +00:00
parent 250505c99b
commit 42dfe402c0

View File

@ -57,11 +57,21 @@ get_device_dma_mode(ide_device_info *device)
bool
configure_dma(ide_device_info *device)
{
if ((device->DMA_enabled = device->DMA_supported = device->bus->can_DMA)
&& get_device_dma_mode(device) != -1)
return true;
if (get_device_dma_mode(device) != -1) {
device->DMA_enabled = device->DMA_supported = device->bus->can_DMA;
if (device->DMA_enabled) {
dprintf("IDE: enabling DMA\n");
}
else {
dprintf("IDE: disabling DMA (failsafe option selected)\n");
}
}
else {
device->DMA_enabled = false;
dprintf("IDE: DMA not possible, disabling\n");
}
return false;
return true;
}