[Voyageurs] First Pass XHCI Controller, resets the controller.

This commit is contained in:
Drew Galbraith 2024-02-06 20:51:16 -08:00
parent 3bacfea183
commit 2228b5b52e
6 changed files with 372 additions and 3 deletions

View file

@ -5,6 +5,7 @@
#include "keyboard/keyboard_driver.h"
#include "voyageurs_server.h"
#include "xhci/xhci_driver.h"
using yellowstone::RegisterEndpointRequest;
using yellowstone::YellowstoneClient;
@ -12,6 +13,10 @@ using yellowstone::YellowstoneClient;
uint64_t main(uint64_t init_port) {
ParseInitPort(init_port);
YellowstoneClient yellowstone(gInitEndpointCap);
ASSIGN_OR_RETURN(XhciDriver xhci, XhciDriver::InitiateDriver(yellowstone));
dbgln("Initializing PS/2 Driver.");
KeyboardDriver driver;
@ -24,8 +29,6 @@ uint64_t main(uint64_t init_port) {
Thread server_thread = server->RunServer();
YellowstoneClient yellowstone(gInitEndpointCap);
RegisterEndpointRequest req;
req.set_endpoint_name("voyageurs");
ASSIGN_OR_RETURN(z_cap_t client_cap, server->CreateClientCap());