Kernel: Start work on USB stack

Current code can enumerate all xHCI devices and detect their type based
on the class code on device or interface descriptors.
This commit is contained in:
2024-07-10 12:06:00 +03:00
parent 8ddab05ed3
commit 14dce1abac
14 changed files with 2154 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
#include <kernel/Terminal/Serial.h>
#include <kernel/Terminal/VirtualTTY.h>
#include <kernel/Timer/Timer.h>
#include <kernel/USB/USBManager.h>
#include <LibInput/KeyboardLayout.h>
@@ -205,6 +206,8 @@ static void init2(void*)
MUST(NetworkManager::initialize());
MUST(USBManager::initialize());
// NOTE: PCI devices are the last ones to be initialized
// so other devices can reserve predefined interrupts
PCI::PCIManager::get().initialize_devices();