mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +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
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