mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
Kernel: Implement a PCI Serial Device driver
This simple driver simply finds a device in a device definitions list and then sets up a SerialDevice instance based on the definition. The driver currently only supports "WCH CH382 2S" pci serial boards, as that is the only device available for me to test with, but most other pci serial devices should be as easily addable as adding a board_definitions entry.
This commit is contained in:
parent
62f69cc50f
commit
ba9b3dc656
7 changed files with 99 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <Kernel/Devices/HID/HIDManagement.h>
|
||||
#include <Kernel/Devices/MemoryDevice.h>
|
||||
#include <Kernel/Devices/NullDevice.h>
|
||||
#include <Kernel/Devices/PCISerialDevice.h>
|
||||
#include <Kernel/Devices/RandomDevice.h>
|
||||
#include <Kernel/Devices/SB16.h>
|
||||
#include <Kernel/Devices/SerialDevice.h>
|
||||
|
@ -146,6 +147,7 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init()
|
|||
|
||||
// Initialize the PCI Bus as early as possible, for early boot (PCI based) serial logging
|
||||
PCI::initialize();
|
||||
PCISerialDevice::detect();
|
||||
|
||||
VFS::initialize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue