Przeglądaj źródła

Kernel: Remove stale includes of x86 IO header file

The AHCI code doesn't rely on x86 IO at all as it only uses memory
mapped IO so we can simply remove the header.

We also simply don't use x86 IO in the Intel graphics driver, so we can
simply remove the include of the x86 IO header there too.

Everything else was a bunch of stale includes to the x86 IO header and
are actually not necessary, so let's remove them to make it easier to
compile non-x86 Kernel builds.
Liav A 2 lat temu
rodzic
commit
f510c0ba04

+ 0 - 1
Kernel/Bus/PCI/Controller/MemoryBackedHostBridge.cpp

@@ -5,7 +5,6 @@
  */
  */
 
 
 #include <AK/ByteReader.h>
 #include <AK/ByteReader.h>
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Bus/PCI/Access.h>
 #include <Kernel/Bus/PCI/Access.h>
 #include <Kernel/Bus/PCI/Controller/MemoryBackedHostBridge.h>
 #include <Kernel/Bus/PCI/Controller/MemoryBackedHostBridge.h>
 
 

+ 0 - 1
Kernel/Bus/PCI/Controller/VolumeManagementDevice.cpp

@@ -5,7 +5,6 @@
  */
  */
 
 
 #include <AK/ByteReader.h>
 #include <AK/ByteReader.h>
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Bus/PCI/API.h>
 #include <Kernel/Bus/PCI/API.h>
 #include <Kernel/Bus/PCI/Access.h>
 #include <Kernel/Bus/PCI/Access.h>
 #include <Kernel/Bus/PCI/Controller/VolumeManagementDevice.h>
 #include <Kernel/Bus/PCI/Controller/VolumeManagementDevice.h>

+ 0 - 1
Kernel/Bus/USB/USBHub.cpp

@@ -5,7 +5,6 @@
  */
  */
 
 
 #include <Kernel/Arch/Delay.h>
 #include <Kernel/Arch/Delay.h>
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Bus/USB/USBClasses.h>
 #include <Kernel/Bus/USB/USBClasses.h>
 #include <Kernel/Bus/USB/USBController.h>
 #include <Kernel/Bus/USB/USBController.h>
 #include <Kernel/Bus/USB/USBHub.h>
 #include <Kernel/Bus/USB/USBHub.h>

+ 0 - 1
Kernel/Devices/HID/PS2KeyboardDevice.cpp

@@ -6,7 +6,6 @@
  */
  */
 
 
 #include <AK/Types.h>
 #include <AK/Types.h>
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Debug.h>
 #include <Kernel/Debug.h>
 #include <Kernel/Devices/DeviceManagement.h>
 #include <Kernel/Devices/DeviceManagement.h>
 #include <Kernel/Devices/HID/HIDManagement.h>
 #include <Kernel/Devices/HID/HIDManagement.h>

+ 0 - 1
Kernel/Devices/HID/PS2MouseDevice.cpp

@@ -6,7 +6,6 @@
 
 
 #include <AK/Memory.h>
 #include <AK/Memory.h>
 #include <Kernel/Arch/x86/Hypervisor/VMWareBackdoor.h>
 #include <Kernel/Arch/x86/Hypervisor/VMWareBackdoor.h>
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Debug.h>
 #include <Kernel/Debug.h>
 #include <Kernel/Devices/DeviceManagement.h>
 #include <Kernel/Devices/DeviceManagement.h>
 #include <Kernel/Devices/HID/PS2MouseDevice.h>
 #include <Kernel/Devices/HID/PS2MouseDevice.h>

+ 0 - 1
Kernel/Graphics/Bochs/GraphicsAdapter.cpp

@@ -7,7 +7,6 @@
 #include <AK/Atomic.h>
 #include <AK/Atomic.h>
 #include <AK/Checked.h>
 #include <AK/Checked.h>
 #include <AK/Try.h>
 #include <AK/Try.h>
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Bus/PCI/API.h>
 #include <Kernel/Bus/PCI/API.h>
 #include <Kernel/Bus/PCI/IDs.h>
 #include <Kernel/Bus/PCI/IDs.h>
 #include <Kernel/Debug.h>
 #include <Kernel/Debug.h>

+ 0 - 1
Kernel/Graphics/Console/VGATextModeConsole.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  * SPDX-License-Identifier: BSD-2-Clause
  */
  */
 
 
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Graphics/Console/VGATextModeConsole.h>
 #include <Kernel/Graphics/Console/VGATextModeConsole.h>
 #include <Kernel/Graphics/GraphicsManagement.h>
 #include <Kernel/Graphics/GraphicsManagement.h>
 #include <Kernel/Sections.h>
 #include <Kernel/Sections.h>

+ 0 - 1
Kernel/Graphics/Generic/DisplayConnector.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  * SPDX-License-Identifier: BSD-2-Clause
  */
  */
 
 
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Debug.h>
 #include <Kernel/Debug.h>
 #include <Kernel/Devices/DeviceManagement.h>
 #include <Kernel/Devices/DeviceManagement.h>
 #include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h>
 #include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h>

+ 0 - 1
Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  * SPDX-License-Identifier: BSD-2-Clause
  */
  */
 
 
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Bus/PCI/API.h>
 #include <Kernel/Bus/PCI/API.h>
 #include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h>
 #include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h>
 #include <Kernel/Graphics/Definitions.h>
 #include <Kernel/Graphics/Definitions.h>

+ 0 - 1
Kernel/Graphics/VMWare/GraphicsAdapter.cpp

@@ -7,7 +7,6 @@
 #include <AK/Atomic.h>
 #include <AK/Atomic.h>
 #include <AK/Checked.h>
 #include <AK/Checked.h>
 #include <AK/Try.h>
 #include <AK/Try.h>
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Bus/PCI/API.h>
 #include <Kernel/Bus/PCI/API.h>
 #include <Kernel/Bus/PCI/IDs.h>
 #include <Kernel/Bus/PCI/IDs.h>
 #include <Kernel/Debug.h>
 #include <Kernel/Debug.h>

+ 0 - 1
Kernel/Storage/ATA/AHCI/InterruptHandler.h

@@ -6,7 +6,6 @@
 
 
 #pragma once
 #pragma once
 
 
-#include <Kernel/Arch/x86/IO.h>
 #include <Kernel/Devices/Device.h>
 #include <Kernel/Devices/Device.h>
 #include <Kernel/Interrupts/IRQHandler.h>
 #include <Kernel/Interrupts/IRQHandler.h>
 #include <Kernel/Library/LockRefPtr.h>
 #include <Kernel/Library/LockRefPtr.h>