[zion] Remove temp PCI Memory Object create function.

Pass the PCI memory space to the yellowstone init process instead.
This commit is contained in:
Drew Galbraith 2023-08-01 17:13:16 -07:00
parent c70b5b0753
commit 8f84f8c3ca
9 changed files with 23 additions and 21 deletions

View file

@ -29,14 +29,3 @@ z_err_t MemoryObjectCreateContiguous(ZMemoryObjectCreateContiguousReq* req) {
*req->paddr = paddr;
return glcr::OK;
}
z_err_t TempPcieConfigObjectCreate(ZTempPcieConfigObjectCreateReq* req) {
auto& curr_proc = gScheduler->CurrentProcess();
ASSIGN_OR_RETURN(PcieConfiguration config, GetPciExtendedConfiguration());
auto vmmo_ref =
glcr::MakeRefCounted<FixedMemoryObject>(config.base, config.offset);
*req->vmmo_cap = curr_proc.AddNewCapability(
StaticCastRefPtr<MemoryObject>(vmmo_ref), ZC_WRITE);
*req->vmmo_size = config.offset;
return glcr::OK;
}