mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
Kernel: Move PCI IDE driver code to the Arch/x86 directory
That code heavily relies on x86-specific instructions, and while other CPU architectures and platforms can have PCI IDE controllers, currently we don't support those, so this code is a special case which needs to be in the Arch/x86 directory. In the future it could be put back to the original place when we make it more generic and suitable for other platforms.
This commit is contained in:
parent
8d6da9863f
commit
aeef1c52bc
Notes:
sideshowbarker
2024-07-17 06:47:16 +09:00
Author: https://github.com/supercomputer7
Commit: aeef1c52bc
Pull-request: https://github.com/SerenityOS/serenity/pull/15173
Reviewed-by: https://github.com/linusg
6 changed files with 21 additions and 19 deletions
|
@ -82,11 +82,11 @@ ErrorOr<void> IDEChannel::port_phy_reset()
|
|||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<void> IDEChannel::allocate_resources_for_pci_ide_controller(Badge<PCIIDEController>, bool force_pio)
|
||||
#if ARCH(I386) || ARCH(X86_64)
|
||||
ErrorOr<void> IDEChannel::allocate_resources_for_pci_ide_controller(Badge<PCIIDELegacyModeController>, bool force_pio)
|
||||
{
|
||||
return allocate_resources(force_pio);
|
||||
}
|
||||
#if ARCH(I386) || ARCH(X86_64)
|
||||
ErrorOr<void> IDEChannel::allocate_resources_for_isa_ide_controller(Badge<ISAIDEController>)
|
||||
{
|
||||
return allocate_resources(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue