increased snooze, ICH4 needs memory mapped io

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22528 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2007-10-13 10:59:22 +00:00
parent 1b442f1919
commit 75d07d42b5
2 changed files with 6 additions and 2 deletions

View File

@ -643,7 +643,11 @@ auich_setup(auich_dev * card)
cmd = (*pci->read_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2);
PRINT(("PCI command before: %x\n", cmd));
(*pci->write_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2, cmd | PCI_command_io);
if (IS_ICH4(&card->config)) {
(*pci->write_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2, cmd | PCI_command_memory);
} else {
(*pci->write_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2, cmd | PCI_command_io);
}
cmd = (*pci->read_pci_config)(card->info.bus, card->info.device, card->info.function, PCI_command, 2);
PRINT(("PCI command after: %x\n", cmd));

View File

@ -112,7 +112,7 @@ auich_codec_wait(device_config *config)
if ((auich_reg_read_8(config, AUICH_REG_ACC_SEMA) & 0x01) == 0)
return B_OK;
if (i > 100)
snooze(1);
snooze(10);
}
return B_TIMED_OUT;
}