[Yellowstone] Add method to get XHCI configuration space.

This commit is contained in:
Drew Galbraith 2024-02-06 20:49:43 -08:00
parent 27c39d05e8
commit 3bacfea183
11 changed files with 172 additions and 4 deletions

View file

@ -52,6 +52,12 @@ glcr::Status YellowstoneServer::HandleGetAhciInfo(AhciInfo& info) {
return glcr::Status::Ok();
}
glcr::Status YellowstoneServer::HandleGetXhciInfo(XhciInfo& info) {
info.set_xhci_region(pci_reader_.GetXhciVmmo());
info.set_region_length(kPcieConfigurationSize);
return glcr::Status::Ok();
}
glcr::Status YellowstoneServer::HandleGetFramebufferInfo(
FramebufferInfo& info) {
// FIXME: Don't do this for each request.