mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:38:10 +00:00
Kernel: Move devices into Kernel/Devices/.
This commit is contained in:
parent
072ea7eece
commit
ab43658c55
42 changed files with 53 additions and 54 deletions
|
@ -1,5 +0,0 @@
|
||||||
#include <Kernel/BlockDevice.h>
|
|
||||||
|
|
||||||
BlockDevice::~BlockDevice()
|
|
||||||
{
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
#include <Kernel/CharacterDevice.h>
|
|
||||||
|
|
||||||
CharacterDevice::~CharacterDevice()
|
|
||||||
{
|
|
||||||
}
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include <AK/CircularQueue.h>
|
#include <AK/CircularQueue.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <Kernel/CharacterDevice.h>
|
#include <Kernel/Devices/CharacterDevice.h>
|
||||||
|
|
||||||
class ConsoleImplementation {
|
class ConsoleImplementation {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <Kernel/BXVGADevice.h>
|
#include <Kernel/Devices/BXVGADevice.h>
|
||||||
#include <Kernel/IO.h>
|
#include <Kernel/IO.h>
|
||||||
#include <Kernel/PCI.h>
|
#include <Kernel/PCI.h>
|
||||||
#include <Kernel/MemoryManager.h>
|
#include <Kernel/MemoryManager.h>
|
|
@ -4,7 +4,7 @@
|
||||||
#include <AK/AKString.h>
|
#include <AK/AKString.h>
|
||||||
#include <SharedGraphics/Size.h>
|
#include <SharedGraphics/Size.h>
|
||||||
#include <Kernel/types.h>
|
#include <Kernel/types.h>
|
||||||
#include <Kernel/BlockDevice.h>
|
#include <Kernel/Devices/BlockDevice.h>
|
||||||
|
|
||||||
class BXVGADevice final : public BlockDevice {
|
class BXVGADevice final : public BlockDevice {
|
||||||
AK_MAKE_ETERNAL
|
AK_MAKE_ETERNAL
|
5
Kernel/Devices/BlockDevice.cpp
Normal file
5
Kernel/Devices/BlockDevice.cpp
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#include <Kernel/Devices/BlockDevice.h>
|
||||||
|
|
||||||
|
BlockDevice::~BlockDevice()
|
||||||
|
{
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <Kernel/Device.h>
|
#include <Kernel/Devices/Device.h>
|
||||||
|
|
||||||
class BlockDevice : public Device {
|
class BlockDevice : public Device {
|
||||||
public:
|
public:
|
5
Kernel/Devices/CharacterDevice.cpp
Normal file
5
Kernel/Devices/CharacterDevice.cpp
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#include <Kernel/Devices/CharacterDevice.h>
|
||||||
|
|
||||||
|
CharacterDevice::~CharacterDevice()
|
||||||
|
{
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <Kernel/Device.h>
|
#include <Kernel/Devices/Device.h>
|
||||||
|
|
||||||
class CharacterDevice : public Device {
|
class CharacterDevice : public Device {
|
||||||
public:
|
public:
|
|
@ -1,4 +1,4 @@
|
||||||
#include "DiskDevice.h"
|
#include <Kernel/Devices/DiskDevice.h>
|
||||||
|
|
||||||
DiskDevice::DiskDevice()
|
DiskDevice::DiskDevice()
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
#define _FILE_OFFSET_BITS 64
|
#define _FILE_OFFSET_BITS 64
|
||||||
|
|
||||||
#include "FileBackedDiskDevice.h"
|
#include <Kernel/Devices/FileBackedDiskDevice.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "DiskDevice.h"
|
#include <Kernel/Devices/DiskDevice.h>
|
||||||
#include <AK/RetainPtr.h>
|
#include <AK/RetainPtr.h>
|
||||||
#include <AK/AKString.h>
|
#include <AK/AKString.h>
|
||||||
#include <AK/Types.h>
|
#include <AK/Types.h>
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include <Kernel/Lock.h>
|
#include <Kernel/Lock.h>
|
||||||
#include <AK/RetainPtr.h>
|
#include <AK/RetainPtr.h>
|
||||||
#include <Kernel/DiskDevice.h>
|
#include <Kernel/Devices/DiskDevice.h>
|
||||||
#include "IRQHandler.h"
|
#include "IRQHandler.h"
|
||||||
|
|
||||||
class IDEDiskDevice final : public IRQHandler, public DiskDevice {
|
class IDEDiskDevice final : public IRQHandler, public DiskDevice {
|
|
@ -2,7 +2,7 @@
|
||||||
#include "i386.h"
|
#include "i386.h"
|
||||||
#include "IO.h"
|
#include "IO.h"
|
||||||
#include "PIC.h"
|
#include "PIC.h"
|
||||||
#include "KeyboardDevice.h"
|
#include <Kernel/Devices/KeyboardDevice.h>
|
||||||
#include <Kernel/TTY/VirtualConsole.h>
|
#include <Kernel/TTY/VirtualConsole.h>
|
||||||
#include <AK/Assertions.h>
|
#include <AK/Assertions.h>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <AK/Types.h>
|
#include <AK/Types.h>
|
||||||
#include <AK/DoublyLinkedList.h>
|
#include <AK/DoublyLinkedList.h>
|
||||||
#include <AK/CircularQueue.h>
|
#include <AK/CircularQueue.h>
|
||||||
#include <Kernel/CharacterDevice.h>
|
#include <Kernel/Devices/CharacterDevice.h>
|
||||||
#include "IRQHandler.h"
|
#include "IRQHandler.h"
|
||||||
#include "KeyCode.h"
|
#include "KeyCode.h"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <Kernel/CharacterDevice.h>
|
#include <Kernel/Devices/CharacterDevice.h>
|
||||||
#include <Kernel/MousePacket.h>
|
#include <Kernel/MousePacket.h>
|
||||||
#include <Kernel/IRQHandler.h>
|
#include <Kernel/IRQHandler.h>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "FileDescriptor.h"
|
#include "FileDescriptor.h"
|
||||||
#include <Kernel/FileSystem/FileSystem.h>
|
#include <Kernel/FileSystem/FileSystem.h>
|
||||||
#include "CharacterDevice.h"
|
#include <Kernel/Devices/CharacterDevice.h>
|
||||||
#include <LibC/errno_numbers.h>
|
#include <LibC/errno_numbers.h>
|
||||||
#include "UnixTypes.h"
|
#include "UnixTypes.h"
|
||||||
#include <AK/BufferStream.h>
|
#include <AK/BufferStream.h>
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
#include <Kernel/TTY/MasterPTY.h>
|
#include <Kernel/TTY/MasterPTY.h>
|
||||||
#include <Kernel/Socket.h>
|
#include <Kernel/Socket.h>
|
||||||
#include <Kernel/Process.h>
|
#include <Kernel/Process.h>
|
||||||
#include <Kernel/BlockDevice.h>
|
#include <Kernel/Devices/BlockDevice.h>
|
||||||
#include <Kernel/MemoryManager.h>
|
#include <Kernel/MemoryManager.h>
|
||||||
|
|
||||||
Retained<FileDescriptor> FileDescriptor::create(RetainPtr<Inode>&& inode)
|
Retained<FileDescriptor> FileDescriptor::create(RetainPtr<Inode>&& inode)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "DiskDevice.h"
|
#include <Kernel/Devices/DiskDevice.h>
|
||||||
#include "InodeIdentifier.h"
|
#include "InodeIdentifier.h"
|
||||||
#include "InodeMetadata.h"
|
#include "InodeMetadata.h"
|
||||||
#include "Limits.h"
|
#include "Limits.h"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "FileSystem.h"
|
#include "FileSystem.h"
|
||||||
#include <AK/FileSystemPath.h>
|
#include <AK/FileSystemPath.h>
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
#include "CharacterDevice.h"
|
#include <Kernel/Devices/CharacterDevice.h>
|
||||||
#include <LibC/errno_numbers.h>
|
#include <LibC/errno_numbers.h>
|
||||||
#include <Kernel/Process.h>
|
#include <Kernel/Process.h>
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ KERNEL_OBJS = \
|
||||||
Process.o \
|
Process.o \
|
||||||
Thread.o \
|
Thread.o \
|
||||||
i8253.o \
|
i8253.o \
|
||||||
KeyboardDevice.o \
|
Devices/KeyboardDevice.o \
|
||||||
CMOS.o \
|
CMOS.o \
|
||||||
PIC.o \
|
PIC.o \
|
||||||
Syscall.o \
|
Syscall.o \
|
||||||
IDEDiskDevice.o \
|
Devices/IDEDiskDevice.o \
|
||||||
MemoryManager.o \
|
MemoryManager.o \
|
||||||
Console.o \
|
Console.o \
|
||||||
IRQHandler.o \
|
IRQHandler.o \
|
||||||
|
@ -28,9 +28,9 @@ KERNEL_OBJS = \
|
||||||
ELF/ELFLoader.o \
|
ELF/ELFLoader.o \
|
||||||
KSyms.o \
|
KSyms.o \
|
||||||
FileSystem/DevPtsFS.o \
|
FileSystem/DevPtsFS.o \
|
||||||
BXVGADevice.o \
|
Devices/BXVGADevice.o \
|
||||||
PCI.o \
|
PCI.o \
|
||||||
PS2MouseDevice.o \
|
Devices/PS2MouseDevice.o \
|
||||||
Socket.o \
|
Socket.o \
|
||||||
LocalSocket.o \
|
LocalSocket.o \
|
||||||
Net/IPv4Socket.o \
|
Net/IPv4Socket.o \
|
||||||
|
@ -44,14 +44,14 @@ KERNEL_OBJS = \
|
||||||
|
|
||||||
VFS_OBJS = \
|
VFS_OBJS = \
|
||||||
FileSystem/ProcFS.o \
|
FileSystem/ProcFS.o \
|
||||||
DiskDevice.o \
|
Devices/DiskDevice.o \
|
||||||
Device.o \
|
Devices/Device.o \
|
||||||
CharacterDevice.o \
|
Devices/CharacterDevice.o \
|
||||||
BlockDevice.o \
|
Devices/BlockDevice.o \
|
||||||
NullDevice.o \
|
Devices/NullDevice.o \
|
||||||
FullDevice.o \
|
Devices/FullDevice.o \
|
||||||
ZeroDevice.o \
|
Devices/ZeroDevice.o \
|
||||||
RandomDevice.o \
|
Devices/RandomDevice.o \
|
||||||
FileSystem/FileSystem.o \
|
FileSystem/FileSystem.o \
|
||||||
FileSystem/DiskBackedFileSystem.o \
|
FileSystem/DiskBackedFileSystem.o \
|
||||||
FileSystem/Ext2FileSystem.o \
|
FileSystem/Ext2FileSystem.o \
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <Kernel/Net/NetworkAdapter.h>
|
#include <Kernel/Net/NetworkAdapter.h>
|
||||||
#include <Kernel/Net/Routing.h>
|
#include <Kernel/Net/Routing.h>
|
||||||
#include <Kernel/Process.h>
|
#include <Kernel/Process.h>
|
||||||
#include <Kernel/RandomDevice.h>
|
#include <Kernel/Devices/RandomDevice.h>
|
||||||
|
|
||||||
Lockable<HashMap<word, TCPSocket*>>& TCPSocket::sockets_by_port()
|
Lockable<HashMap<word, TCPSocket*>>& TCPSocket::sockets_by_port()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include <Kernel/Net/UDP.h>
|
#include <Kernel/Net/UDP.h>
|
||||||
#include <Kernel/Net/NetworkAdapter.h>
|
#include <Kernel/Net/NetworkAdapter.h>
|
||||||
#include <Kernel/Process.h>
|
#include <Kernel/Process.h>
|
||||||
#include <Kernel/RandomDevice.h>
|
#include <Kernel/Devices/RandomDevice.h>
|
||||||
#include <Kernel/Net/Routing.h>
|
#include <Kernel/Net/Routing.h>
|
||||||
|
|
||||||
Lockable<HashMap<word, UDPSocket*>>& UDPSocket::sockets_by_port()
|
Lockable<HashMap<word, UDPSocket*>>& UDPSocket::sockets_by_port()
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include <Kernel/FileDescriptor.h>
|
#include <Kernel/FileDescriptor.h>
|
||||||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||||
#include <Kernel/NullDevice.h>
|
#include <Kernel/Devices/NullDevice.h>
|
||||||
#include <Kernel/ELF/ELFLoader.h>
|
#include <Kernel/ELF/ELFLoader.h>
|
||||||
#include "MemoryManager.h"
|
#include "MemoryManager.h"
|
||||||
#include "i8253.h"
|
#include "i8253.h"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/Badge.h>
|
#include <AK/Badge.h>
|
||||||
#include <Kernel/CharacterDevice.h>
|
#include <Kernel/Devices/CharacterDevice.h>
|
||||||
#include <Kernel/DoubleBuffer.h>
|
#include <Kernel/DoubleBuffer.h>
|
||||||
|
|
||||||
class SlavePTY;
|
class SlavePTY;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <Kernel/CharacterDevice.h>
|
#include <Kernel/Devices/CharacterDevice.h>
|
||||||
#include <AK/Badge.h>
|
#include <AK/Badge.h>
|
||||||
#include <Kernel/Lock.h>
|
#include <Kernel/Lock.h>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "DoubleBuffer.h"
|
#include "DoubleBuffer.h"
|
||||||
#include <Kernel/CharacterDevice.h>
|
#include <Kernel/Devices/CharacterDevice.h>
|
||||||
#include <Kernel/UnixTypes.h>
|
#include <Kernel/UnixTypes.h>
|
||||||
|
|
||||||
class Process;
|
class Process;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#include "i386.h"
|
#include "i386.h"
|
||||||
#include "IO.h"
|
#include "IO.h"
|
||||||
#include "StdLib.h"
|
#include "StdLib.h"
|
||||||
#include "KeyboardDevice.h"
|
|
||||||
#include <AK/AKString.h>
|
#include <AK/AKString.h>
|
||||||
|
|
||||||
static byte* s_vga_buffer;
|
static byte* s_vga_buffer;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <Kernel/TTY/TTY.h>
|
#include <Kernel/TTY/TTY.h>
|
||||||
#include "KeyboardDevice.h"
|
#include <Kernel/Devices/KeyboardDevice.h>
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
|
|
||||||
class VirtualConsole final : public TTY, public KeyboardClient, public ConsoleImplementation {
|
class VirtualConsole final : public TTY, public KeyboardClient, public ConsoleImplementation {
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
#include "kmalloc.h"
|
#include "kmalloc.h"
|
||||||
#include "i386.h"
|
#include "i386.h"
|
||||||
#include "i8253.h"
|
#include "i8253.h"
|
||||||
#include "KeyboardDevice.h"
|
#include <Kernel/Devices/KeyboardDevice.h>
|
||||||
#include "Process.h"
|
#include "Process.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "PIC.h"
|
#include "PIC.h"
|
||||||
#include "IDEDiskDevice.h"
|
#include <Kernel/Devices/IDEDiskDevice.h>
|
||||||
#include "KSyms.h"
|
#include "KSyms.h"
|
||||||
#include <Kernel/NullDevice.h>
|
#include <Kernel/Devices/NullDevice.h>
|
||||||
#include <Kernel/ZeroDevice.h>
|
#include <Kernel/Devices/ZeroDevice.h>
|
||||||
#include <Kernel/FullDevice.h>
|
#include <Kernel/Devices/FullDevice.h>
|
||||||
#include <Kernel/RandomDevice.h>
|
#include <Kernel/Devices/RandomDevice.h>
|
||||||
#include <Kernel/FileSystem/Ext2FileSystem.h>
|
#include <Kernel/FileSystem/Ext2FileSystem.h>
|
||||||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||||
#include "MemoryManager.h"
|
#include "MemoryManager.h"
|
||||||
|
@ -19,10 +19,10 @@
|
||||||
#include "RTC.h"
|
#include "RTC.h"
|
||||||
#include <Kernel/TTY/VirtualConsole.h>
|
#include <Kernel/TTY/VirtualConsole.h>
|
||||||
#include "Scheduler.h"
|
#include "Scheduler.h"
|
||||||
#include "PS2MouseDevice.h"
|
#include <Kernel/Devices/PS2MouseDevice.h>
|
||||||
#include <Kernel/TTY/PTYMultiplexer.h>
|
#include <Kernel/TTY/PTYMultiplexer.h>
|
||||||
#include <Kernel/FileSystem/DevPtsFS.h>
|
#include <Kernel/FileSystem/DevPtsFS.h>
|
||||||
#include "BXVGADevice.h"
|
#include <Kernel/Devices/BXVGADevice.h>
|
||||||
#include <Kernel/Net/E1000NetworkAdapter.h>
|
#include <Kernel/Net/E1000NetworkAdapter.h>
|
||||||
#include <Kernel/Net/NetworkTask.h>
|
#include <Kernel/Net/NetworkTask.h>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue