Skip to content

Commit

Permalink
Kernel: Move VirtIO console code to the Devices/Serial/VirtIO directory
Browse files Browse the repository at this point in the history
  • Loading branch information
supercomputer7 authored and ADKaster committed May 14, 2024
1 parent cb558f4 commit bbb749a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Kernel/Bus/VirtIO/Transport/PCIe/Detect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#include <Kernel/Boot/CommandLine.h>
#include <Kernel/Bus/PCI/API.h>
#include <Kernel/Bus/PCI/IDs.h>
#include <Kernel/Bus/VirtIO/Console.h>
#include <Kernel/Bus/VirtIO/Device.h>
#include <Kernel/Bus/VirtIO/RNG.h>
#include <Kernel/Bus/VirtIO/Transport/PCIe/Detect.h>
#include <Kernel/Devices/Serial/VirtIO/Console.h>
#include <Kernel/Sections.h>

namespace Kernel::VirtIO {
Expand Down
4 changes: 2 additions & 2 deletions Kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ set(KERNEL_SOURCES
Bus/VirtIO/Transport/PCIe/TransportLink.cpp
Bus/VirtIO/Transport/Entity.cpp
Bus/VirtIO/Transport/InterruptHandler.cpp
Bus/VirtIO/Console.cpp
Bus/VirtIO/ConsolePort.cpp
Bus/VirtIO/Device.cpp
Bus/VirtIO/Queue.cpp
Bus/VirtIO/RNG.cpp
Expand Down Expand Up @@ -113,6 +111,8 @@ set(KERNEL_SOURCES
Devices/GPU/VirtIO/GPU3DDevice.cpp
Devices/GPU/VirtIO/GraphicsAdapter.cpp
Devices/Loop/LoopDevice.cpp
Devices/Serial/VirtIO/Console.cpp
Devices/Serial/VirtIO/ConsolePort.cpp
Devices/Storage/AHCI/ATADevice.cpp
Devices/Storage/AHCI/ATADiskDevice.cpp
Devices/Storage/AHCI/Controller.cpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <Kernel/Bus/VirtIO/Console.h>
#include <Kernel/Bus/VirtIO/Transport/PCIe/TransportLink.h>
#include <Kernel/Devices/DeviceManagement.h>
#include <Kernel/Devices/Serial/VirtIO/Console.h>
#include <Kernel/Sections.h>
#include <Kernel/Tasks/WorkQueue.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#pragma once

#include <Kernel/Bus/VirtIO/ConsolePort.h>
#include <Kernel/Bus/VirtIO/Device.h>
#include <Kernel/Devices/Serial/VirtIO/ConsolePort.h>
#include <Kernel/Memory/RingBuffer.h>

namespace Kernel::VirtIO {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <Kernel/Bus/VirtIO/Console.h>
#include <Kernel/Bus/VirtIO/ConsolePort.h>
#include <Kernel/Devices/Serial/VirtIO/Console.h>
#include <Kernel/Devices/Serial/VirtIO/ConsolePort.h>

namespace Kernel::VirtIO {

Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions Meta/gn/secondary/Kernel/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,6 @@ executable("Kernel_bin") {
"Bus/USB/USBManagement.cpp",
"Bus/USB/USBPipe.cpp",
"Bus/USB/USBTransfer.cpp",
"Bus/VirtIO/Console.cpp",
"Bus/VirtIO/ConsolePort.cpp",
"Bus/VirtIO/Device.cpp",
"Bus/VirtIO/Queue.cpp",
"Bus/VirtIO/RNG.cpp",
Expand Down Expand Up @@ -552,7 +550,8 @@ executable("Kernel_bin") {
"Devices/HID/PS2/MouseDevice.cpp",
"Devices/KCOVDevice.cpp",
"Devices/KCOVInstance.cpp",
"Devices/PCISerialDevice.cpp",
"Devices/Serial/VirtIO/Console.cpp",
"Devices/Serial/VirtIO/ConsolePort.cpp",
"Devices/SerialDevice.cpp",
"Devices/Storage/AHCI/ATAController.cpp",
"Devices/Storage/AHCI/ATADevice.cpp",
Expand Down

0 comments on commit bbb749a

Please sign in to comment.