mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel: Move VirtIO code into the Bus source folder
The VirtIO code handles functionality related to the VirtIO bus, so it really should be in the Bus folder.
This commit is contained in:
parent
f641cc6470
commit
18eb262157
Notes:
sideshowbarker
2024-07-18 07:02:49 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/18eb2621578 Pull-request: https://github.com/SerenityOS/serenity/pull/9370
14 changed files with 23 additions and 23 deletions
|
@ -5,11 +5,11 @@
|
|||
*/
|
||||
|
||||
#include <Kernel/Bus/PCI/IDs.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIO.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIOConsole.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIORNG.h>
|
||||
#include <Kernel/CommandLine.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/VirtIO/VirtIO.h>
|
||||
#include <Kernel/VirtIO/VirtIOConsole.h>
|
||||
#include <Kernel/VirtIO/VirtIORNG.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -9,10 +9,10 @@
|
|||
#include <AK/NonnullOwnPtrVector.h>
|
||||
#include <Kernel/Bus/PCI/Access.h>
|
||||
#include <Kernel/Bus/PCI/Device.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIOQueue.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <Kernel/Interrupts/IRQHandler.h>
|
||||
#include <Kernel/Memory/MemoryManager.h>
|
||||
#include <Kernel/VirtIO/VirtIOQueue.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -5,8 +5,8 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/Bus/VirtIO/VirtIOConsole.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/VirtIO/VirtIOConsole.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Bus/VirtIO/VirtIO.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIOConsolePort.h>
|
||||
#include <Kernel/Memory/RingBuffer.h>
|
||||
#include <Kernel/VirtIO/VirtIO.h>
|
||||
#include <Kernel/VirtIO/VirtIOConsolePort.h>
|
||||
|
||||
namespace Kernel {
|
||||
class VirtIOConsole
|
|
@ -5,8 +5,8 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/VirtIO/VirtIOConsole.h>
|
||||
#include <Kernel/VirtIO/VirtIOConsolePort.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIOConsole.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIOConsolePort.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Bus/VirtIO/VirtIO.h>
|
||||
#include <Kernel/Devices/CharacterDevice.h>
|
||||
#include <Kernel/FileSystem/FileDescription.h>
|
||||
#include <Kernel/Memory/RingBuffer.h>
|
||||
#include <Kernel/VirtIO/VirtIO.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <AK/Atomic.h>
|
||||
#include <Kernel/VirtIO/VirtIOQueue.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIOQueue.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/Bus/VirtIO/VirtIORNG.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/VirtIO/VirtIORNG.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Bus/VirtIO/VirtIO.h>
|
||||
#include <Kernel/Devices/CharacterDevice.h>
|
||||
#include <Kernel/Random.h>
|
||||
#include <Kernel/VirtIO/VirtIO.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
@ -37,6 +37,11 @@ set(KERNEL_SOURCES
|
|||
Bus/USB/USBManagement.cpp
|
||||
Bus/USB/USBPipe.cpp
|
||||
Bus/USB/USBTransfer.cpp
|
||||
Bus/VirtIO/VirtIO.cpp
|
||||
Bus/VirtIO/VirtIOConsole.cpp
|
||||
Bus/VirtIO/VirtIOConsolePort.cpp
|
||||
Bus/VirtIO/VirtIOQueue.cpp
|
||||
Bus/VirtIO/VirtIORNG.cpp
|
||||
CMOS.cpp
|
||||
CommandLine.cpp
|
||||
ConsoleDevice.cpp
|
||||
|
@ -270,11 +275,6 @@ set(KERNEL_SOURCES
|
|||
TimerQueue.cpp
|
||||
UBSanitizer.cpp
|
||||
UserOrKernelBuffer.cpp
|
||||
VirtIO/VirtIO.cpp
|
||||
VirtIO/VirtIOConsole.cpp
|
||||
VirtIO/VirtIOConsolePort.cpp
|
||||
VirtIO/VirtIOQueue.cpp
|
||||
VirtIO/VirtIORNG.cpp
|
||||
WaitQueue.cpp
|
||||
WorkQueue.cpp
|
||||
init.cpp
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Bus/VirtIO/VirtIO.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIOQueue.h>
|
||||
#include <Kernel/Devices/BlockDevice.h>
|
||||
#include <Kernel/Graphics/VirtIOGPU/GPU.h>
|
||||
#include <Kernel/VirtIO/VirtIO.h>
|
||||
#include <Kernel/VirtIO/VirtIOQueue.h>
|
||||
|
||||
namespace Kernel::Graphics::VirtIOGPU {
|
||||
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
|
||||
#include <AK/BinaryBufferWriter.h>
|
||||
#include <AK/DistinctNumeric.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIO.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIOQueue.h>
|
||||
#include <Kernel/Devices/BlockDevice.h>
|
||||
#include <Kernel/Graphics/VirtIOGPU/Protocol.h>
|
||||
#include <Kernel/VirtIO/VirtIO.h>
|
||||
#include <Kernel/VirtIO/VirtIOQueue.h>
|
||||
|
||||
#define VIRTIO_GPU_F_VIRGL (1 << 0)
|
||||
#define VIRTIO_GPU_F_EDID (1 << 1)
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <Kernel/Bus/PCI/Access.h>
|
||||
#include <Kernel/Bus/PCI/Initializer.h>
|
||||
#include <Kernel/Bus/USB/USBManagement.h>
|
||||
#include <Kernel/Bus/VirtIO/VirtIO.h>
|
||||
#include <Kernel/CMOS.h>
|
||||
#include <Kernel/CommandLine.h>
|
||||
#include <Kernel/Devices/FullDevice.h>
|
||||
|
@ -56,7 +57,6 @@
|
|||
#include <Kernel/Tasks/FinalizerTask.h>
|
||||
#include <Kernel/Tasks/SyncTask.h>
|
||||
#include <Kernel/Time/TimeManagement.h>
|
||||
#include <Kernel/VirtIO/VirtIO.h>
|
||||
#include <Kernel/WorkQueue.h>
|
||||
#include <Kernel/kstdio.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue