mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +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
|
@ -36,8 +36,8 @@ namespace Kernel {
|
|||
class AsyncBlockDeviceRequest;
|
||||
|
||||
class IDEController;
|
||||
class PCIIDEController;
|
||||
#if ARCH(I386) || ARCH(X86_64)
|
||||
class PCIIDELegacyModeController;
|
||||
class ISAIDEController;
|
||||
#endif
|
||||
class IDEChannel
|
||||
|
@ -112,8 +112,8 @@ public:
|
|||
|
||||
virtual StringView purpose() const override { return "PATA Channel"sv; }
|
||||
|
||||
ErrorOr<void> allocate_resources_for_pci_ide_controller(Badge<PCIIDEController>, bool force_pio);
|
||||
#if ARCH(I386) || ARCH(X86_64)
|
||||
ErrorOr<void> allocate_resources_for_pci_ide_controller(Badge<PCIIDELegacyModeController>, bool force_pio);
|
||||
ErrorOr<void> allocate_resources_for_isa_ide_controller(Badge<ISAIDEController>);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue