mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
PATAChannel: Alert user when no PCI device is found
This helps aid debugging of issues such as #695, where the bridge chip that controls IDE is NOT a PIIX3/4 compatible controller. Instead of just hanging when the DMA registers can't be accessed, the system will inform the user that no valid IDE controller has been found. In this case, the system will not attempt to initialise the DMA registers and instead use PIO mode.
This commit is contained in:
parent
1b2ef8582c
commit
6c1a549057
Notes:
sideshowbarker
2024-07-19 11:23:44 +09:00
Author: https://github.com/Quaker762 Commit: https://github.com/SerenityOS/serenity/commit/6c1a549057d Pull-request: https://github.com/SerenityOS/serenity/pull/710 Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ void PATAChannel::initialize()
|
|||
m_bus_master_base = PCI::get_BAR4(m_pci_address) & 0xfffc;
|
||||
m_dma_buffer_page = MM.allocate_supervisor_physical_page();
|
||||
kprintf("PATAChannel: PIIX Bus master IDE: I/O @ %x\n", m_bus_master_base);
|
||||
} else {
|
||||
kprintf("PATAChannel: Unable to find valid PATAChannel controller! Falling back to PIO mode!\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue