[Voyageurs] Send USB keypress data to the keyboard driver.

This commit is contained in:
Drew Galbraith 2024-02-24 14:59:33 -08:00
parent 3c1e435e04
commit 02d4f8c80e
10 changed files with 79 additions and 20 deletions

View file

@ -5,6 +5,7 @@
#include <mammoth/util/memory_region.h>
#include <zcall.h>
#include "keyboard/keyboard_driver.h"
#include "xhci/descriptors.h"
#include "xhci/trb.h"
#include "xhci/xhci.h"
@ -75,7 +76,9 @@ void configure_device(void* void_device_slot) {
config_descriptor->configuration_value);
device_slot
->IssueConfigureDeviceCommand(config_descriptor->configuration_value)
->IssueConfigureDeviceCommand(
config_descriptor->configuration_value,
glcr::MakeUnique<mmth::PortClient>(KeyboardDriver::GetPortCap()))
.Wait();
dbgln("Configured!");