Kernel: Move devices into Kernel/Devices/.

This commit is contained in:
Andreas Kling 2019-04-03 12:36:40 +02:00
parent 072ea7eece
commit ab43658c55
Notes: sideshowbarker 2024-07-19 14:50:43 +09:00
42 changed files with 53 additions and 54 deletions

View file

@ -1,5 +0,0 @@
#include <Kernel/BlockDevice.h>
BlockDevice::~BlockDevice()
{
}

View file

@ -1,5 +0,0 @@
#include <Kernel/CharacterDevice.h>
CharacterDevice::~CharacterDevice()
{
}

View file

@ -2,7 +2,7 @@
#include <AK/CircularQueue.h>
#include <AK/Vector.h>
#include <Kernel/CharacterDevice.h>
#include <Kernel/Devices/CharacterDevice.h>
class ConsoleImplementation {
public:

View file

@ -1,4 +1,4 @@
#include <Kernel/BXVGADevice.h>
#include <Kernel/Devices/BXVGADevice.h>
#include <Kernel/IO.h>
#include <Kernel/PCI.h>
#include <Kernel/MemoryManager.h>

View file

@ -4,7 +4,7 @@
#include <AK/AKString.h>
#include <SharedGraphics/Size.h>
#include <Kernel/types.h>
#include <Kernel/BlockDevice.h>
#include <Kernel/Devices/BlockDevice.h>
class BXVGADevice final : public BlockDevice {
AK_MAKE_ETERNAL

View file

@ -0,0 +1,5 @@
#include <Kernel/Devices/BlockDevice.h>
BlockDevice::~BlockDevice()
{
}

View file

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/Device.h>
#include <Kernel/Devices/Device.h>
class BlockDevice : public Device {
public:

View file

@ -0,0 +1,5 @@
#include <Kernel/Devices/CharacterDevice.h>
CharacterDevice::~CharacterDevice()
{
}

View file

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/Device.h>
#include <Kernel/Devices/Device.h>
class CharacterDevice : public Device {
public:

View file

@ -1,4 +1,4 @@
#include "DiskDevice.h"
#include <Kernel/Devices/DiskDevice.h>
DiskDevice::DiskDevice()
{

View file

@ -1,6 +1,6 @@
#define _FILE_OFFSET_BITS 64
#include "FileBackedDiskDevice.h"
#include <Kernel/Devices/FileBackedDiskDevice.h>
#include <cstring>
#include <sys/stat.h>

View file

@ -1,6 +1,6 @@
#pragma once
#include "DiskDevice.h"
#include <Kernel/Devices/DiskDevice.h>
#include <AK/RetainPtr.h>
#include <AK/AKString.h>
#include <AK/Types.h>

View file

@ -2,7 +2,7 @@
#include <Kernel/Lock.h>
#include <AK/RetainPtr.h>
#include <Kernel/DiskDevice.h>
#include <Kernel/Devices/DiskDevice.h>
#include "IRQHandler.h"
class IDEDiskDevice final : public IRQHandler, public DiskDevice {

View file

@ -2,7 +2,7 @@
#include "i386.h"
#include "IO.h"
#include "PIC.h"
#include "KeyboardDevice.h"
#include <Kernel/Devices/KeyboardDevice.h>
#include <Kernel/TTY/VirtualConsole.h>
#include <AK/Assertions.h>

View file

@ -3,7 +3,7 @@
#include <AK/Types.h>
#include <AK/DoublyLinkedList.h>
#include <AK/CircularQueue.h>
#include <Kernel/CharacterDevice.h>
#include <Kernel/Devices/CharacterDevice.h>
#include "IRQHandler.h"
#include "KeyCode.h"

View file

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/CharacterDevice.h>
#include <Kernel/Devices/CharacterDevice.h>
#include <Kernel/MousePacket.h>
#include <Kernel/IRQHandler.h>

View file

@ -1,6 +1,6 @@
#include "FileDescriptor.h"
#include <Kernel/FileSystem/FileSystem.h>
#include "CharacterDevice.h"
#include <Kernel/Devices/CharacterDevice.h>
#include <LibC/errno_numbers.h>
#include "UnixTypes.h"
#include <AK/BufferStream.h>
@ -9,7 +9,7 @@
#include <Kernel/TTY/MasterPTY.h>
#include <Kernel/Socket.h>
#include <Kernel/Process.h>
#include <Kernel/BlockDevice.h>
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/MemoryManager.h>
Retained<FileDescriptor> FileDescriptor::create(RetainPtr<Inode>&& inode)

View file

@ -1,6 +1,6 @@
#pragma once
#include "DiskDevice.h"
#include <Kernel/Devices/DiskDevice.h>
#include "InodeIdentifier.h"
#include "InodeMetadata.h"
#include "Limits.h"

View file

@ -3,7 +3,7 @@
#include "FileSystem.h"
#include <AK/FileSystemPath.h>
#include <AK/StringBuilder.h>
#include "CharacterDevice.h"
#include <Kernel/Devices/CharacterDevice.h>
#include <LibC/errno_numbers.h>
#include <Kernel/Process.h>

View file

@ -6,11 +6,11 @@ KERNEL_OBJS = \
Process.o \
Thread.o \
i8253.o \
KeyboardDevice.o \
Devices/KeyboardDevice.o \
CMOS.o \
PIC.o \
Syscall.o \
IDEDiskDevice.o \
Devices/IDEDiskDevice.o \
MemoryManager.o \
Console.o \
IRQHandler.o \
@ -28,9 +28,9 @@ KERNEL_OBJS = \
ELF/ELFLoader.o \
KSyms.o \
FileSystem/DevPtsFS.o \
BXVGADevice.o \
Devices/BXVGADevice.o \
PCI.o \
PS2MouseDevice.o \
Devices/PS2MouseDevice.o \
Socket.o \
LocalSocket.o \
Net/IPv4Socket.o \
@ -44,14 +44,14 @@ KERNEL_OBJS = \
VFS_OBJS = \
FileSystem/ProcFS.o \
DiskDevice.o \
Device.o \
CharacterDevice.o \
BlockDevice.o \
NullDevice.o \
FullDevice.o \
ZeroDevice.o \
RandomDevice.o \
Devices/DiskDevice.o \
Devices/Device.o \
Devices/CharacterDevice.o \
Devices/BlockDevice.o \
Devices/NullDevice.o \
Devices/FullDevice.o \
Devices/ZeroDevice.o \
Devices/RandomDevice.o \
FileSystem/FileSystem.o \
FileSystem/DiskBackedFileSystem.o \
FileSystem/Ext2FileSystem.o \

View file

@ -3,7 +3,7 @@
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/Net/Routing.h>
#include <Kernel/Process.h>
#include <Kernel/RandomDevice.h>
#include <Kernel/Devices/RandomDevice.h>
Lockable<HashMap<word, TCPSocket*>>& TCPSocket::sockets_by_port()
{

View file

@ -2,7 +2,7 @@
#include <Kernel/Net/UDP.h>
#include <Kernel/Net/NetworkAdapter.h>
#include <Kernel/Process.h>
#include <Kernel/RandomDevice.h>
#include <Kernel/Devices/RandomDevice.h>
#include <Kernel/Net/Routing.h>
Lockable<HashMap<word, UDPSocket*>>& UDPSocket::sockets_by_port()

View file

@ -6,7 +6,7 @@
#include "system.h"
#include <Kernel/FileDescriptor.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/NullDevice.h>
#include <Kernel/Devices/NullDevice.h>
#include <Kernel/ELF/ELFLoader.h>
#include "MemoryManager.h"
#include "i8253.h"

View file

@ -1,7 +1,7 @@
#pragma once
#include <AK/Badge.h>
#include <Kernel/CharacterDevice.h>
#include <Kernel/Devices/CharacterDevice.h>
#include <Kernel/DoubleBuffer.h>
class SlavePTY;

View file

@ -1,6 +1,6 @@
#pragma once
#include <Kernel/CharacterDevice.h>
#include <Kernel/Devices/CharacterDevice.h>
#include <AK/Badge.h>
#include <Kernel/Lock.h>

View file

@ -1,7 +1,7 @@
#pragma once
#include "DoubleBuffer.h"
#include <Kernel/CharacterDevice.h>
#include <Kernel/Devices/CharacterDevice.h>
#include <Kernel/UnixTypes.h>
class Process;

View file

@ -3,7 +3,6 @@
#include "i386.h"
#include "IO.h"
#include "StdLib.h"
#include "KeyboardDevice.h"
#include <AK/AKString.h>
static byte* s_vga_buffer;

View file

@ -1,7 +1,7 @@
#pragma once
#include <Kernel/TTY/TTY.h>
#include "KeyboardDevice.h"
#include <Kernel/Devices/KeyboardDevice.h>
#include "Console.h"
class VirtualConsole final : public TTY, public KeyboardClient, public ConsoleImplementation {

View file

@ -2,16 +2,16 @@
#include "kmalloc.h"
#include "i386.h"
#include "i8253.h"
#include "KeyboardDevice.h"
#include <Kernel/Devices/KeyboardDevice.h>
#include "Process.h"
#include "system.h"
#include "PIC.h"
#include "IDEDiskDevice.h"
#include <Kernel/Devices/IDEDiskDevice.h>
#include "KSyms.h"
#include <Kernel/NullDevice.h>
#include <Kernel/ZeroDevice.h>
#include <Kernel/FullDevice.h>
#include <Kernel/RandomDevice.h>
#include <Kernel/Devices/NullDevice.h>
#include <Kernel/Devices/ZeroDevice.h>
#include <Kernel/Devices/FullDevice.h>
#include <Kernel/Devices/RandomDevice.h>
#include <Kernel/FileSystem/Ext2FileSystem.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include "MemoryManager.h"
@ -19,10 +19,10 @@
#include "RTC.h"
#include <Kernel/TTY/VirtualConsole.h>
#include "Scheduler.h"
#include "PS2MouseDevice.h"
#include <Kernel/Devices/PS2MouseDevice.h>
#include <Kernel/TTY/PTYMultiplexer.h>
#include <Kernel/FileSystem/DevPtsFS.h>
#include "BXVGADevice.h"
#include <Kernel/Devices/BXVGADevice.h>
#include <Kernel/Net/E1000NetworkAdapter.h>
#include <Kernel/Net/NetworkTask.h>